Commit Graph

116 Commits

Author SHA1 Message Date
Ralf Corsepius
31e2698797 Add __attribute__((unused)) to unused function args. 2009-01-02 12:43:07 +00:00
Joel Sherrill
eb96196183 2008-12-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/src/ide_part_table.c: Fixed NULL pointer access.
	* libmisc/monitor/mon-command.c, libmisc/monitor/mon-editor.c,
	libmisc/monitor/mon-monitor.c, libmisc/monitor/monitor.h,
	libmisc/shell/cmds.c: The list of registered monitor commands is now
	private and only accessible via a lookup and iterate function.
2008-12-19 14:59:35 +00:00
Joel Sherrill
26fb4aadcd 2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libblock/src/bdbuf.c, libmisc/capture/capture-cli.c,
	libmisc/capture/capture.c, libmisc/mw-fb/mw_uid.c,
	rtems/include/rtems/rtems/support.h, score/Makefile.am,
	score/include/rtems/score/tod.h, score/src/coretod.c,
	score/src/coretodtickle.c: Eliminate all public use of TOD conversion
	routines. Eliminate _TOD_Microseconds_per_tick and let every place
	use the field directly from the Configuration Table. This required
	moving some methods from macros to bodies.
	* score/src/coretodmsecstoticks.c, score/src/coretodtickspersec.c,
	score/src/coretodusectoticks.c: New files.
2008-12-16 20:53:34 +00:00
Ralf Corsepius
8c5d374340 2008-12-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/src/bdbuf.c: Fix typo having crept in during
	  boolean->bool transition.
2008-12-09 14:44:07 +00:00
Ralf Corsepius
90b2c07205 Use "#include <..>" to include public headers. 2008-09-07 18:06:27 +00:00
Ralf Corsepius
d7001e476b Convert to Unix file format. 2008-09-06 04:25:51 +00:00
Ralf Corsepius
4f971343a5 Convert to using "bool". 2008-09-01 07:44:48 +00:00
Ralf Corsepius
48c566019e 2008-09-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/src/nvdisk-sram.c: Add missing HAVE_CONFIG_H.
2008-09-01 07:21:18 +00:00
Ralf Corsepius
e03c37ae5b s/rtems_boolean/bool/g. 2008-08-25 15:07:58 +00:00
Joel Sherrill
cec5c069b0 2008-08-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* libblock/include/rtems/bdbuf.h, libblock/include/rtems/diskdevs.h,
	libblock/src/bdbuf.c, libblock/src/blkdev.c, libblock/src/diskdevs.c,
	libblock/src/ramdisk.c: Eliminate sign mismatch warnings.
2008-08-21 16:17:35 +00:00
Ralf Corsepius
5c0d4fd8ab Remove bool, true, false. 2008-08-21 04:32:11 +00:00
Ralf Corsepius
291557bba2 2008-08-2008 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/src/nvdisk.c: Remove bool, true, false (unused, clashes
	with C99/POSIX).
2008-08-20 07:16:02 +00:00
Chris Johns
6f162ed27a 2008-08-06 Chris Johns <chrisj@rtems.org>
* libblock/src/bdbuf.c: PR1272. Fixed similar possible issues in
	the new bdbuf code.
2008-08-06 04:38:53 +00:00
Chris Johns
b7898e271c 2008-08-06 Brett Swimley <brett.swimley@aedbozeman.com>
* libblock/src/diskdevs.c: PR1192. Update the disktap pointer
	after the realloc.
2008-08-06 04:17:46 +00:00
Chris Johns
904ced08bb 2008-08-06 Till Straumann <strauman@slac.stanford.edu>
* libblock/src/diskdevs.c: PR1269. Delete the semaphore rather
	than release it.
2008-08-06 04:04:59 +00:00
Chris Johns
2eb89adc33 2008-08-02 Chris Johns (chrisj@rtems.org>
* libblock/include/rtems/blkdev.h: Remove count and start from
	rtems_blkdev_request. Add RTEMS_BLKDEV_START_BLOCK macro.

	* libblock/src/bdbuf.c: Add read ahead blocks always consecutive
	comment. Change count to bufnum and remove start references. Sort
	the transfer list so blocks are consecutive where possible.

	* libblock/src/blkdev.c, libblock/src/nvdisk.c,
	libblock/src/ramdisk.c: Change count to bufnum and remove start
	references.
2008-08-02 06:23:45 +00:00
Ralf Corsepius
a5fb40cf68 Add missing prototypes. 2008-08-01 05:01:28 +00:00
Chris Johns
021cf6b58b 2008-07-29 Chris Johns <chrisj@rtems.org>
* libblock/src/nvdisk.c: Fix block compile bug.
2008-07-29 03:55:03 +00:00
Chris Johns
c21c850ec7 2008-07-29 Chris Johns <chrisj@rtems.org>
* libblock/include/rtems/bdbuf.h, cpukit/libblock/src/bdbuf.c:
	Update the comments.
2008-07-29 03:15:09 +00:00
Chris Johns
3899a5379f 2008-07-29 Chris Johns <chrisj@rtems.org>
* libblock/Makefile.am: Removed src/show_bdbuf.c.

	* libblock/src/show_bdbuf.c: Removed.

	* libblock/include/rtems/bdbuf.h, cpukit/libblock/src/bdbuf.c:
	Rewritten the bdbuf code. Remove pre-emption disable, score
	access, fixed many bugs and increased performance.

	* libblock/include/rtems/blkdev.h: Added
	RTEMS_BLKDEV_CAPABILITIES block device request. Cleaned up
	comments. Added block and user fields to the sg buffer
	request. Move to rtems_* namespace.

	* libblock/include/rtems/diskdevs.h,
	cpukit/libblock/src/diskdevs.c: Move to rtems_* namespace. Add a
	capabilities field for drivers. Change rtems_disk_lookup to
	rtems_disk_obtain to match the release call. You do not lookup and
	release a disk, you obtain and release a disk.

	* libblock/include/rtems/ide_part_table.h,
	libblock/include/rtems/ramdisk.h, libblock/src/ide_part_table.c:
	Move to rtems_* namespace.

	* libblock/include/rtems/nvdisk.h: Formatting change.

	* libblock/src/blkdev.c: Move to rtems_* namespace. Change
	rtems_disk_lookup to rtems_disk_obtain

	* libblock/src/flashdisk.c: Move to rtems_* namespace. Use the new
	support for the block number in the scatter/grather request
	struct. This allows non-continuous buffer requests for those
	drivers that can support increasing performance.

	* libblock/src/nvdisk.c: Move to rtems_* namespace. Removed
	warnings. Added better error checking. Fixed some comments.

	* libblock/src/ramdisk.c: Move to rtems_* namespace. Added some
	trace functions to help debugging upper layers. Use the new
	support for the block number in the scatter/grather request
	struct. This allows non-continuous buffer requests for those
	drivers that can support increasing performance.

	* libfs/src/dosfs/fat.c, libfs/src/dosfs/fat.h: Use new chains
	API. Removed temporary hack and changed
	set_errno_and_return_minus_one to
	rtems_set_errno_and_return_minus_one. Move fat_buf_access from
	header and stopped it being inlined. Updated to libblock changes.

	* libfs/src/dosfs/fat_fat_operations.c,
	libfs/src/dosfs/fat_file.c, libfs/src/dosfs/msdos_create.c,
	libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c,
	libfs/src/dosfs/msdos_file.c, libfs/src/dosfs/msdos_format.c,
	libfs/src/dosfs/msdos_free.c, libfs/src/dosfs/msdos_initsupp.c,
	libfs/src/dosfs/msdos_misc.c, libfs/src/dosfs/msdos_mknod.c: Use
	new chains API. Removed temporary hack and changed
	set_errno_and_return_minus_one to
	rtems_set_errno_and_return_minus_one. Updated to libblock changes.

	* libmisc/Makefile.am: Add new ls and rm command files.

	* libmisc/shell/cmp-ls.c, libmisc/shell/extern-ls.h,
	libmisc/shell/filemode.c, libmisc/shell/print-ls.c,
	libmisc/shell/pwcache.c, libmisc/shell/utils-ls.c,
	libmisc/shell/vis.c, shell/vis.h: New.

	* libmisc/shell/extern-cp.h, libmisc/shell/main_cp.c,
	libmisc/shell/utils-cp.c: Fixed the usage call bug.

	* libmisc/shell/main_blksync.c: Updated to the new block IO ioctl
	command.

	* libmisc/shell/main_ls.c, libmisc/shell/main_rm.c: Updated to BSD
	commands with more features.

	* score/src/coremutex.c: Fix the strick order mutex code.

	* libmisc/shell/shell.c: Change shell tasks mode to be timeslice
	and no ASR.

	* sapi/include/confdefs.h: Change ata_driver_task_priority to
	rtems_ata_driver_task_priority. Add the new BD buf cache
	parameters with defaults.

	* score/src/interr.c: Do not return if the CPU halt call returns.
2008-07-29 02:21:15 +00:00
Chris Johns
72d2ec4da4 2008-07-03 Chris Johns <chrisj@rtems.org>
* cpukit/libcsupport/include/chain.h: Removed. Use the SAPI
	interface that is supported.

	* cpukit/libcsupport/Makefile.am,
	cpukit/libcsupport/preinstall.am: Remove chain.h header
	references.

	* cpukit/sapi/include/rtems/chain.h,
	cpukit/sapi/inline/rtems/chain.inl: New. A supported chains
	interface.

	* cpukit/sapi/Makefile.am, cpukit/sapi/preinstall.am: Updated to
	include the new chains interface.

	* cpukit/libfs/src/imfs/imfs.h,
	cpukit/libfs/src/imfs/imfs_creat.c,
	cpukit/libfs/src/imfs/imfs_debug.c,
	cpukit/libfs/src/imfs/imfs_directory.c,
	cpukit/libfs/src/imfs/imfs_fsunmount.c,
	cpukit/libfs/src/imfs/imfs_getchild.c,
	cpukit/libfs/src/imfs/imfs_load_tar.c,
	cpukit/libfs/src/imfs/imfs_rmnod.c,
	cpukit/libfs/src/imfs/memfile.c,
	cpukit/libfs/src/nfsclient/src/nfs.c,
	cpukit/libcsupport/include/rtems/libio.h,
	cpukit/libcsupport/src/malloc_deferred.c,
	cpukit/libcsupport/src/mount.c,
	cpukit/libcsupport/src/privateenv.c,
	cpukit/libcsupport/src/unmount.c: Change to the new chains
	interface.

	* cpukit/libcsupport/src/malloc_boundary.c: Remove warning.
2008-07-03 01:37:38 +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
Chris Johns
5a2b5b22c8 2008-05-01 Chris Johns <chrisj@rtems.org>
* libblock/include/rtems/nvdisk-sram.h,
	libblock/include/rtems/nvdisk.h,
	libblock/src/nvdisk-sram.c,
	libblock/src/nvdisk.c: New. A Non-volatile memory disk drive.
	* Makefile.am, preinstall.am, libblock/Makefile.am: Updated for
	the NV disk driver.
2008-05-01 04:15:36 +00:00
Joel Sherrill
ce19f1fa3b 2008-01-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* itron/include/rtems/itron/object.h, itron/src/cre_tsk.c,
	libblock/src/show_bdbuf.c, libmisc/capture/capture-cli.c,
	libmisc/capture/capture.c, libmisc/monitor/mon-manager.c,
	libmisc/stackchk/check.c, posix/src/condinit.c,
	posix/src/keycreate.c, posix/src/mqueuecreatesupp.c,
	posix/src/mqueuedeletesupp.c, posix/src/mqueuenametoid.c,
	posix/src/mqueueopen.c, posix/src/mqueueunlink.c,
	posix/src/mutexinit.c, posix/src/pbarrierinit.c,
	posix/src/prwlockinit.c, posix/src/pspininit.c,
	posix/src/pthreadcreate.c, posix/src/pthreadexit.c,
	posix/src/semaphorecreatesupp.c, posix/src/semaphorenametoid.c,
	posix/src/timercreate.c, rtems/src/barrierident.c,
	rtems/src/dpmemident.c, rtems/src/msgqident.c, rtems/src/partident.c,
	rtems/src/ratemonident.c, rtems/src/regionident.c,
	rtems/src/semident.c, rtems/src/taskident.c, rtems/src/timerident.c,
	sapi/src/extensionident.c, score/Makefile.am,
	score/include/rtems/score/object.h,
	score/inline/rtems/score/object.inl, score/src/apimutexallocate.c,
	score/src/objectextendinformation.c,
	score/src/objectgetnameasstring.c, score/src/objectmp.c,
	score/src/objectnametoid.c: Convert the Objects_Name type from a
	simple type to a union of an unsigned 32 bit integer and a pointer.
	This should help eliminate weird casts between u32 and pointers in
	various places. The APIs now have to explicitly call _u32 or _string
	versions of helper routines. This should also simplify things and
	eliminate the need for ugly casts in some cases.
	* score/src/objectclearname.c, score/src/objectcomparenameraw.c,
	score/src/objectcomparenamestring.c, score/src/objectcopynameraw.c,
	score/src/objectcopynamestring.c: Removed.
2008-01-23 22:57:43 +00:00
Chris Johns
a5de1ef5fc 2008-01-05 Chris Johns <chrisj@rtems.org>
* configure.ac: Fix typo in the strict order mutex CPU OPTs test.
	* libmisc/shell/shell.c: Handle '#' comment characters correctly.
	* libblock/include/rtems/flashdisk.h: Add docmentation about the
	control fields. Add more control fields to handle the flash when
	full.
	* libblock/src/flashdisk.c: Fix the descriptor erase test so it
	detects a descriptor is erased. Add support for unavailable blocks
	the user can configure. Print the used list as a diag. Fix the bug
	when a page is detected as failed and present on more than one
	queue. Add a count to the queues so queue length can be used to
	manage compaction.
2008-01-05 06:57:17 +00:00
Chris Johns
1ff9922df0 2007-12-22 Chris Johns <chrisj@rtems.org>
* configure.ac: fixed bug that always enabled strict order
	mutexes.
	* score/inline/rtems/score/coremutex.inl: Fixed coding standard.
	* score/src/coremutex.c: Add the holder's thread to the lock_mutex
	list if the mutex is initialised locked.
	* libnetworking/rtems/rtems_glue.c: Changed semaphore error
	message to show the error is an rtems-net error.
	* libmisc/monitor/mon-network.c: Removed warnings.
	* telnetd/icmds.c: Changed shell_* to rtems_shell_*.
	* score/Makefile.am: Fixed typo that stopped 'make tags' working.
	* libmisc/shell/err.c, libmisc/shell/err.h, libmisc/shell/errx.c,
	libmisc/shell/extern-cp.h, libmisc/shell/fts.c,
	libmisc/shell/fts.h, libmisc/shell/main_cp.c,
	libmisc/shell/utils-cp.c, libmisc/shell/verr.c,
	libmisc/shell/verrx.c, libmisc/shell/vwarn.c,
	libmisc/shell/vwarnx.c, libmisc/shell/warn.c,
	libmisc/shell/warnx.c: New. Ported from BSD.
	* libmisc/shell/shellconfig.h: Add the cp command.
	* libmisc/Makefile.am: Add the new files to the shell.
	* libmisc/shell/shell.c, libmisc/shell/shell.h: Add scripting
	support.
	* libblock/src/flashdisk.c: Fixed disk drive count size setting
	bug.
2007-12-22 08:27:18 +00:00
Chris Johns
30088aac5b 2007-12-12 Chris Johns <chrisj@rtems.org>
* libblock/include/rtems/flashdisk.h, libblock/src/flashdisk.c:
	Add RTEMS license details.
2007-12-14 06:02:42 +00:00
Chris Johns
3c68c6c8b7 2007-12-12 Chris Johns <chrisj@rtems.org>
* Makefile.am, preinstall.am: Added
	libblock/include/rtems/flashdisk.h to the installed header list.
	* libblock/Makefile.am: Add flashdisk.c to the files to build.
	* libblock/include/rtems/flashdisk.h, libblock/src/flashdisk.c:
	New.
2007-12-14 04:58:04 +00:00
Ralf Corsepius
69d5809acc 2007-05-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/src/show_bdbuf.c: Add HAVE_CONFIG_H magic.
2007-05-08 15:30:53 +00:00
Ralf Corsepius
53cd606ebd 2007-01-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/src/show_bdbuf.c: Use inttypes.h macros.
2007-01-30 07:55:58 +00:00
Ralf Corsepius
460175ef10 2007-01-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/src/show_bdbuf.c: Convert from DOS to UNIX.
2007-01-27 18:18:05 +00:00
Thomas Doerfler
3d14a451e9 mproved gen5200 MSCAN driver
fixed synchronization bug between ata.c and bdbuf.c
2007-01-21 18:25:31 +00:00
Ralf Corsepius
b4bf2897a2 2006-11-21 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/Makefile.am: Don't include preinstall.am.
	* libblock/preinstall.am: Remove.
2006-11-21 11:07:04 +00:00
Ralf Corsepius
1a741fdce6 Remove (unused). 2006-11-21 11:06:31 +00:00
Thomas Doerfler
c9b005a9d2 applied patches for PR1117/1118/1119/1120 2006-07-09 10:05:27 +00:00
Joel Sherrill
0ebfac198c 2006-03-07 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
PR 852/filesystem
	* libblock/src/bdbuf.c: Increase performance of MSDOS file accesses by
	using a simple read-ahead and write-combining scheme. Improvement is
	dramatic.
2006-03-07 21:26:23 +00:00
Ralf Corsepius
6be04ed043 New. 2006-01-12 10:01:38 +00:00
Ralf Corsepius
4e971660a1 Remove all-local. 2006-01-12 09:57:43 +00:00
Ralf Corsepius
f1397380bb 2005-07-05 Ralf Corsepius <ralf.corsepius@rtems.org>
* libblock/include/rtems/ide_part_table.h: Add C++ guards.
2005-07-05 09:25:37 +00:00
Joel Sherrill
b17ff4913c 2005-05-06 Joel Sherrill <joel@OARcorp.com>
* libblock/src/blkdev.c, libfs/src/dosfs/fat_file.c,
	libfs/src/dosfs/fat_file.h, libfs/src/dosfs/msdos.h,
	libfs/src/dosfs/msdos_create.c, libfs/src/dosfs/msdos_dir.c,
	libfs/src/dosfs/msdos_initsupp.c, libfs/src/dosfs/msdos_misc.c:
	Removed warnings.
2005-05-06 14:57:43 +00:00
Ralf Corsepius
e0820e07cd 2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
* libblock/include/rtems/diskdevs.h: Use uint32_t for ictrl req
	argument (16bit target compliance).
2005-02-17 08:38:59 +00:00
Ralf Corsepius
f6a8433dc6 2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
* libblock/include/rtems/ramdisk.h: size_t
	rtems_ramdisk_configuration_size.
	* libblock/src/ramdisk.c: Adaptations for 16bit target compliance.
2005-02-17 07:24:46 +00:00
Ralf Corsepius
fa73ccb0b8 2005-02-08 Ralf Corsepius <ralf.corsepius@rtems.org>
* configure.ac: Add new header guard to cpuopts.h.
	* Makefile.am: Add libfs, libblock, ftpd header install rules.
	* libfs/Makefile.am, libblock/Makefile.am, ftpd/Makefile.am: Remove
	header install rules.
2005-02-08 04:04:46 +00:00
Joel Sherrill
ce92867bea 2005-02-01 Joel Sherrill <joel@OARcorp.com>
* libblock/include/rtems/bdbuf.h,
	libblock/include/rtems/ide_part_table.h, libblock/src/blkdev.c,
	libcsupport/include/rtems/termiostypes.h, libcsupport/src/termios.c,
	posix/macros/rtems/posix/cond.inl,
	posix/macros/rtems/posix/mutex.inl : Remove warnings.
2005-02-02 00:06:18 +00:00
Ralf Corsepius
a6f5d896f3 New header guard. 2005-01-28 08:44:51 +00:00
Ralf Corsepius
05b37c50d0 2005-01-28 Ralf Corsepius <ralf.corsepius@rtems.org>
* itron/Makefile.am, libblock/Makefile.am, libcsupport/Makefile.am,
	libfs/Makefile.am, libmisc/Makefile.am, posix/Makefile.am,
	rtems/Makefile.am, sapi/Makefile.am:
	Remove AM_CPPFLAGS += -I$(top_builddir).
2005-01-28 02:32:38 +00:00
Ralf Corsepius
a369ade90d 2005-01-07 Ralf Corsepius <ralf.corsepius@rtems.org>
* httpd/Makefile.am, itron/Makefile.am, libblock/Makefile.am,
	libcsupport/Makefile.am, libfs/Makefile.am, libmisc/Makefile.am,
	libnetworking/Makefile.am, librpc/Makefile.am, posix/Makefile.am,
	rtems/Makefile.am, sapi/Makefile.am, score/Makefile.am:
	Eliminate CFLAGS_OPTIMIZE_V.
2005-01-07 06:05:49 +00:00
Ralf Corsepius
08885d631d Fix typo. 2005-01-05 18:17:01 +00:00
Ralf Corsepius
846a4af893 2005-01-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* automake/compile.am, httpd/Makefile.am, itron/Makefile.am,
	libblock/Makefile.am, libcsupport/Makefile.am, libfs/Makefile.am,
	libmisc/Makefile.am, libnetworking/Makefile.am, librpc/Makefile.am,
	posix/Makefile.am, rtems/Makefile.am, sapi/Makefile.am,
	score/Makefile.am, wrapup/Makefile.am:
	Remove build-variant support.
2005-01-01 10:41:29 +00:00
Ralf Corsepius
b80dd59dd2 2004-11-22 Ralf Corsepius <ralf.corsepius@rtems.org>
* libblock/include/rtems/bdbuf.h,
	libblock/include/rtems/blkdev.h,
	libblock/include/rtems/diskdevs.h,
	libblock/include/rtems/ide_part_table.h,
	libblock/include/rtems/ramdisk.h:
	Add doxygen preamble.
2004-11-22 03:48:05 +00:00