Commit Graph

86 Commits

Author SHA1 Message Date
Ralf Corsepius
de93598d19 2010-06-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/rtems/tar.h, libcsupport/include/tar.h: Remove.
	* configure.ac: Require toolchain to provide tar.h.
	* libfs/src/imfs/imfs_load_tar.c, libmisc/untar/untar.h:
	Use <tar.h> instead of <rtems/tar.h>.
2010-06-13 03:36:58 +00:00
Chris Johns
29e92b090c 2010-05-31 Chris Johns <chrisj@rtems.org>
* libcsupport/Makefile.am: Add mount-mgr.c.
        * libcsupport/src/mount-mgr.c: New.
        * include/rtems/fs.h: Added rtems_filesystem_location_mount.
        * libcsupport/include/rtems/libio.h, libcsupport/src/mount.c: New
        mount interface. It is similar to Linux.
        * libcsupport/include/rtems/libio_.h: Remove the
        init_fs_mount_table call.
        * libcsupport/src/base_fs.c: Remove init_fs_mount_table_call. Use
        the new mount call. Remove setting the root node in the global
        pathloc. Mount does this now.
        * libcsupport/src/privateenv.c: Remove the hack to set the root
        mount table entry in the environment.
        * libcsupport/src/unmount.cL Free the target string.
        * libblock/src/bdpart-mount.c: New mount API.

        * libfs/src/devfs/devfs.h, libfs/src/devfs/devfs_init.c,
        libfs/src/dosfs/dosfs.h, libfs/src/dosfs/msdos.h,
        libfs/src/dosfs/msdos_init.c, libfs/src/imfs/imfs.h,
        libfs/src/imfs/imfs_eval.c, libfs/src/imfs/imfs_init.c,
        libfs/src/imfs/miniimfs_init.c,
        libfs/src/nfsclient/src/librtemsNfs.h,
        libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs.h,
        libnetworking/lib/ftpfs.c, libnetworking/rtems/ftpfs.h,
        libnetworking/rtems/tftp.h: New mount_h API.

        * libfs/src/devfs/devfs_eval.c: Local include of extern ops.
        * libfs/src/nfsclient/src/nfs.c: New mount API. Removed the mount
        me call and fixed the initialisation to happen when mounting.

        * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Remove mount
        filesystem files.

        * libmisc/fsmount/fsmount.c, libmisc/fsmount/fsmount.h: Updated to
        the new mount table values.

        * libmisc/shell/main_mount_ftp.c,
        libmisc/shell/main_mount_msdos.c, libmisc/shell/main_mount_rfs.c,
        libmisc/shell/main_mount_tftp.c: Removed.

        * libmisc/shell/main_mount.c: Use the new mount API. Also access
        the file system table for the file system types.

        * libnetworking/lib/tftpDriver.c: Updated to the new mount
        API. Fixed to allow mounting from any mount point. Also can now
        have more than file system mounted.

        * sapi/include/confdefs.h: Add file system configuration support.
2010-05-31 13:56:37 +00:00
Ralf Corsepius
4045c26e51 2009-12-11 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1483/cpukit
	* include/rtems/pci.h: Rename pci_config into rtems_pci_config_t.
2009-12-11 12:53:48 +00:00
Ralf Corsepius
33c3b54d57 Whitespace removal. 2009-11-29 11:57:23 +00:00
Thomas Doerfler
60e5832e23 interrupt handler type change 2009-10-21 13:24:35 +00:00
Chris Johns
eb649786c8 2009-10-08 Chris Johns <chrisj@rtems.org>
* Makefile.am, preinstall.am: Added statvfs.h.
        * libcsupport/Makefile.am: Add statvfs.c.
        * libcsupport/include/sys/statvfs.h, libcsupport/src/statvfs.c:
        New.
        * libcsupport/include/rtems/libio.h: Add a file system handler for
        the statvfs call.
        * libfs/src/devfs/devfs_init.c, libfs/src/dosfs/msdos_init.c,
        libfs/src/imfs/imfs_init.c, libfs/src/nfsclient/src/nfs.c: Set the
        statvfs handler to NULL.
        * include/rtems/fs.h: Add a second node access field for the RFS
        file system to hold a directory offset while the existing field
        holds the inode number. This save a rescan of the directory when
        working with directories.
        * libblock/include/rtems/bdbuf.h: Added references and user fields
        to the buffer descriptor.
        * libblock/src/bdbuf.c: Added dynamic buffer support for different
        block sizes. Fixed a number of bugs.
        * libblock/src/blkdev.c: Release the disk device on an error.
        * libblock/src/diskdevs.c: Set the block size to the media block
        size during initialisation of the disk device.
        * libblock/src/flashdisk.c, libblock/src/nvdisk.c,
        libblock/src/ramdisk.c: Updated the drivers to handle variable
        block sizes.
        * libfs/src/dosfs/fat.c, libfs/src/dosfs/fat.h: Release any
        buffers when an error occurs. The FAT buffer layer hangs onto a
        single buffer while mounted. This should be fixed.
        * sapi/inline/rtems/chain.inl: Added rtems_chain_set_off_chain,
        rtems_chain_is_node_off_chain, and rtems_chain_previous.
        * score/inline/rtems/score/chain.inl: Added _Chain_Set_off_chain,
        and _Chain_Is_node_off_chain.
        * libmisc/shell/main_ln.c, libmisc/shell/main_mknod.c,
        libmisc/shell/mknod-pack_dev.c, libmisc/shell/mknod-pack_dev.h:
        New shell commands.
        * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Added ln and
        mknod commands.
        * libmisc/shell/hexdump-display.c: Fixed the reopen bug which
        showed up as a free with a bad pointer.
        * libmisc/shell/main_mount.c: List the user adding file system
        when listing the available file systems to mount.
        * libmisc/shell/utils-cp.c: Remove the fixed static copy buffer
        and use a large dynamic buffer.
        * score/inline/rtems/score/address.inl, score/src/coremsgsubmit.c,
        score/src/objectallocate.c, score/src/objectfree.c: Remove
        warnings.
2009-10-08 07:07:36 +00:00
Ralf Corsepius
607d272570 Make pci_[read|write]_config* static inline, again. 2009-10-01 12:20:28 +00:00
Ralf Corsepius
0392f9779f 2009-10-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/rtems/pci.h: Add another missing prototype.
2009-10-01 12:17:36 +00:00
Ralf Corsepius
199037b404 2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/rtems/pci.h: Add missing prototype.
2009-09-30 13:25:07 +00:00
Joel Sherrill
1b0c122b5b 2009-09-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems/pci.h: Revert extern inline patch.
2009-09-28 21:00:47 +00:00
Joel Sherrill
e1c9abde95 2009-09-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems/pci.h: Change extern inline to static inline.
2009-09-25 17:52:06 +00:00
Joel Sherrill
c85ab23ab7 2009-08-05 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/libio_.h,
	libcsupport/src/fs_null_handlers.c: Null handlers are now const.
	* libi2c/libi2c.c, libi2c/libi2c.h: Documentation. Do not create
	semaphores on the fly.
	* cpukit/libblock/src/bdpart.c: Fixed format specifier.
	* cpukit/libblock/include/rtems/bdbuf.h, rtems/include/rtems.h,
	rtems/include/rtems/rtems/asr.h, rtems/include/rtems/rtems/attr.h,
	rtems/include/rtems/rtems/barrier.h,
	rtems/include/rtems/rtems/barriermp.h,
	rtems/include/rtems/rtems/cache.h, rtems/include/rtems/rtems/clock.h,
	rtems/include/rtems/rtems/config.h, rtems/include/rtems/rtems/dpmem.h,
	rtems/include/rtems/rtems/event.h,
	rtems/include/rtems/rtems/eventmp.h,
	rtems/include/rtems/rtems/eventset.h,
	rtems/include/rtems/rtems/intr.h, rtems/include/rtems/rtems/message.h,
	rtems/include/rtems/rtems/modes.h, rtems/include/rtems/rtems/mp.h,
	rtems/include/rtems/rtems/msgmp.h, rtems/include/rtems/rtems/object.h,
	rtems/include/rtems/rtems/part.h, rtems/include/rtems/rtems/partmp.h,
	rtems/include/rtems/rtems/ratemon.h,
	rtems/include/rtems/rtems/region.h,
	rtems/include/rtems/rtems/regionmp.h,
	rtems/include/rtems/rtems/rtemsapi.h, rtems/include/rtems/rtems/sem.h,
	rtems/include/rtems/rtems/semmp.h, rtems/include/rtems/rtems/signal.h,
	rtems/include/rtems/rtems/signalmp.h,
	rtems/include/rtems/rtems/status.h,
	rtems/include/rtems/rtems/support.h,
	rtems/include/rtems/rtems/taskmp.h, rtems/include/rtems/rtems/tasks.h,
	rtems/include/rtems/rtems/timer.h, rtems/include/rtems/rtems/types.h,
	rtems/inline/rtems/rtems/support.inl: Documentation.
	* include/rtems/irq-extension.h: Documentation. Added API for
	interrupt servers.
2009-08-05 18:17:12 +00:00
Joel Sherrill
ce57509cbd 2009-06-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems/bspIo.h, libcsupport/Makefile.am: Add putk().
	* libcsupport/src/putk.c: New file.
2009-06-16 13:34:35 +00:00
Joel Sherrill
4670d91898 2009-05-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
* Doxygen.in: Fixed project name.  Added project number.  Enabled auto
	brief.  Disabled include graphs.
	* include/rtems/irq-extension.h, libblock/include/rtems/bdpart.h,
	libblock/include/rtems/bdbuf.h, libblock/include/rtems/bdpart.h,
	libblock/include/rtems/blkdev.h, libblock/include/rtems/diskdevs.h,
	libblock/include/rtems/ramdisk.h, libblock/src/bdbuf.c,
	libblock/src/blkdev.c, libblock/src/diskdevs.c, libblock/src/ramdisk.c:
	Documentation.
	* libblock/src/bdpart.c: Documentation.  Fixed NULL pointer access.
2009-05-15 12:52:12 +00:00
Thomas Doerfler
b074e80e19 Added functions to translate integers to/from byte streams. 2009-05-05 12:50:43 +00:00
Ralf Corsepius
0bff7f84c8 New. 2009-02-20 16:12:53 +00:00
Joel Sherrill
aad655835a 2009-02-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems/irq-extension.h, include/rtems/irq.h: Spelling errors
	and spacing.
2009-02-19 19:29:19 +00:00
Ralf Corsepius
5726c42b3f Remove (Abandoned). 2008-12-17 06:41:21 +00:00
Thomas Doerfler
06c3530efc libnetworking/rtems/rtems_glue.c: Copy nothing if rtems_bsdnet_parse_driver_name() if namep is NULL.
include/rtems/status-checks.h: Added prefix "RTEMS" for all macros. Doxygen style comments.  Cleanup.
2008-10-10 15:56:32 +00:00
Joel Sherrill
23c3f72e4d 2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems/bspIo.h, libcsupport/Makefile.am: Add genchark() for
	polled debug input from the same device as printk().
	* libcsupport/src/getchark.c: New file.
2008-09-22 21:47:04 +00:00
Joel Sherrill
85bca3f228 2008-08-20 Sebastian Huber <sebastian.huber@embedded-brains.de>
* include/rtems/status-checks.h: Fixed integer conversion warning.
2008-08-20 17:29:37 +00:00
Thomas Doerfler
075d81772d New function rtems_interrupt_handler_iterate()
for system information and diagnostics
2008-07-24 12:45:23 +00:00
Thomas Doerfler
224aebb3b8 added BSP to m68k
adapted PPC exception code
2008-07-11 10:07:00 +00:00
Joel Sherrill
a5d5c746f0 2008-07-10 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/rtems/status-checks.h: Fix style.
2008-07-10 15:05:31 +00:00
Thomas Doerfler
eed0491225 added irq-extension.h declarations 2008-07-10 12:56:31 +00:00
Thomas Doerfler
3210dcb39d Macros for status code and return value checks. 2008-07-10 06:05:12 +00:00
Thomas Doerfler
bf95ccb506 Added const qualifier to various pointers and data tables to
reduce size of data area.
	IMFS: Fixed creation of symbolic links to avoid a compiler warning.
	DOSFS: Use LibBlock instead of read() to read the boot record.
2008-05-27 10:34:15 +00:00
Joel Sherrill
90a5d194a2 2007-09-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am, libcsupport/src/printk.c:
	* libcsupport/src/printk_plugin.c: New file.
	include/rtems/bspIo.h, libmisc/cpuuse/cpuusagereport.c,
	libmisc/cpuuse/cpuuse.h, libmisc/stackchk/check.c,
	libmisc/stackchk/stackchk.h: rtems/include/rtems/rtems/ratemon.h,
	rtems/src/ratemonreportstatistics.c: Added capability to specify
	your own "printf" routine to various reporting functions.  This
	added an XXX_with_plugin as the underlying implementation for
	  + rtems_rate_monotonic_report_statistics
	  + rtems_stack_checker_report_usage
	  + rtems_cpu_usage_report
	As demonstration, the http netdemo can now print out stack
	and cpu usage reports.
2007-09-06 22:51:25 +00:00
Ralf Corsepius
8eea24b8d3 2007-07-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/rtems/bspIo.h, include/rtems/pci.h:
	Add extern "C" guards. Reported by
	Robert S. Grimes <rsg@alum.mit.edu>.
2007-07-26 06:12:29 +00:00
Ralf Corsepius
cd9564e1cd Include <rtems/bsd/sys/cdefs.h> instead of <sys/cdefs.h>. 2007-05-10 07:29:14 +00:00
Ralf Corsepius
b8a6285b67 New. 2007-05-10 07:19:35 +00:00
Ralf Corsepius
5515a75820 2007-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/rtems/bsd/sys/queue.h: New (Copied from
	  libnetworking/sys/queue.h).
2007-05-10 04:35:41 +00:00
Ralf Corsepius
7a4e32f453 2007-05-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/rtems/endian.h: New (Copied from
	  libnetworking/machine/endian.h).
2007-05-09 16:27:09 +00:00
Thomas Doerfler
d59cae9773 adapted BSP "motorola_powerpc" to support MVME24xx 2007-04-09 14:30:49 +00:00
Ralf Corsepius
f2a6ee017c 2007-03-31 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/rtems/pci.h: Further stdint.h fixed-size types.
2007-03-31 01:10:35 +00:00
Ralf Corsepius
ee2371896d 2007-03-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/rtems/pci.h: Use stdint.h fixed size-types.
2007-03-30 07:23:12 +00:00
Ralf Corsepius
7ecaafa0d8 Abandon DEPRECATED_TYPES. 2006-12-13 07:21:53 +00:00
Ralf Corsepius
cc349f036a 2005-11-10 Ralf Corsepius <ralf.corsepius@rtems.org>
* include/rtems/stdint.h: Disable RTEMS proprietary fixed-size types.
2005-11-10 05:26:07 +00:00
Ralf Corsepius
1a58501609 2005-10-31 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 840/rtems:
	* include/rtems/irq.h: Fix several typos.
2005-10-31 14:14:32 +00:00
Ralf Corsepius
585cba912e 2005-10-27 Ralf Corsepius <ralf.corsepius@rtems.org>
* include/rtems/concat.h: Add EXPAND0, CONCAT0.
2005-10-27 07:23:53 +00:00
Jennifer Averett
e01c480dfa 2005-05-17 Jennifer Averett <jennifer.averett@oarcorp.com>
* Makefile.am, preinstall.am: Added a common irq.h
	* include/rtems/irq.h: New file.
2005-05-17 14:38:37 +00:00
Jennifer Averett
b3b6c41d66 2005-05-04 Jennifer Averett <jennifer.averett@oarcorp.com>
* include/rtems/pci.h: Name change to support common PCI interface
2005-05-04 19:42:12 +00:00
Joel Sherrill
4b9d865afe 2005-03-14 Joel Sherrill <joel@OARcorp.com>
* include/rtems/pci.h: Continue PCI API unification. All use
	pci_find_device().
2005-03-14 21:48:18 +00:00
Joel Sherrill
b3f80031c7 2005-03-04 Joel Sherrill <joel@OARcorp.com>
* include/rtems/pci.h: Clean up and reformatting. Make PCI initialize
	function part of the unified PCI API.
2005-03-04 21:47:36 +00:00
Joel Sherrill
a71e623822 2005-02-17 Joel Sherrill <joel@OARcorp.com>
* include/rtems/pci.h: Merge differences from
	libbsp/powerpc/shared/pci/pci.h.
2005-02-17 16:30:00 +00:00
Ralf Corsepius
4d3b1bb254 2005-02-07 Ralf Corsepius <ralf.corsepius@rtems.org>
* include/rtems/tar.h: New.
2005-02-07 13:16:15 +00:00
Ralf Corsepius
8ff51798d0 New header guards. 2005-01-28 05:14:20 +00:00
Ralf Corsepius
36e925891d 2005-01-28 Ralf Corsepius <ralf.corsepius@rtems.org>
* include/rtems/userenv.h: Set up LOGIN_NAME_MAX iff not having been
	defined before.
2005-01-28 02:07:41 +00:00
Ralf Corsepius
9d7259a7cf 2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
* include/rtems/stdint.h: Add signed8, signed16, signed32,
	unsigned8, unsigned16, unsigned32.
2005-01-24 16:13:15 +00:00
Joel Sherrill
bd6566e6ad 2004-11-10 Joel Sherrill <joel@oarcorp.com>
* include/rtems/pci.h: BSPs use the name BSP_pci_configuration not pci.
	Also need to address that this largely duplicates
	libbsp/powerpc/pci/pci.h but that file is not used when both are
	included due to the same double inclusion protection.
2004-11-10 23:57:58 +00:00