Commit Graph

48 Commits

Author SHA1 Message Date
Sebastian Huber
9f527308d7 libblock: Add block device statistics 2012-06-12 10:12:40 +02:00
Sebastian Huber
73c09b3b8e libblock: Simplify disk management
Add block_count and media_blocks_per_block to rtems_disk_device.  Add
and use rtems_disk_init_phys() and rtems_disk_init_log().
2012-05-31 11:05:48 +02:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Joel Sherrill
33a105fb69 Revert: Remove CVS Ids
See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html
for details.
2012-05-07 11:08:48 -05:00
Ralf Corsépius
ee32f67a6f Remove CVS-Ids. 2012-05-04 09:36:25 +02:00
Sebastian Huber
01211720ec libblock: Add generic IMFS block device nodes
New functions
 o rtems_blkdev_create(), and
 o rtems_blkdev_create_partition().

New test libtests/block11.
2012-03-13 12:24:18 +01:00
Sebastian Huber
291c926449 libblock: Split file and simplify 2012-03-13 12:24:18 +01:00
Sebastian Huber
5e88538f97 libblock: Split file 2012-03-13 12:24:17 +01:00
Sebastian Huber
1680638ab6 2011-01-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/src/blkdev-ops.c: New file.
	* libblock/Makefile.am: Reflect change from above.
	* libblock/include/rtems/blkdev.h: Declare rtems_blkdev_generic_ops.
2011-01-21 09:43:24 +00:00
Sebastian Huber
d91e3a71bb 2010-08-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/include/rtems/media.h, libblock/src/media-desc.c,
	libblock/src/media-dev-ident.c, libblock/src/media-path.c,
	libblock/src/media-server.c, libblock/src/media.c: New files.
	* Makefile.am, preinstall.am, libblock/Makefile.am: Reflect changes
	above.
2010-08-13 12:40:16 +00:00
Sebastian Huber
6780829037 2010-04-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/src/bdpart.c: Removed file.
	* libblock/src/bdpart-create.c, libblock/src/bdpart-dump.c,
	libblock/src/bdpart-mount.c, libblock/src/bdpart-read.c,
	libblock/src/bdpart-register.c, libblock/src/bdpart-sort.c,
	libblock/src/bdpart-write.c: New files.
	* libblock/include/rtems/bdpart.h: Moved some definitions from bdpart.c.
	* libblock/Makefile.am: Update for file changes.
2010-04-30 08:42:13 +00:00
Thomas Doerfler
1560d12d01 restructuring of ramdisk code 2009-10-16 08:44:51 +00:00
Ralf Corsepius
809e91e1d6 2009-10-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/Makefile.am: Unconditionall build libblock.
2009-10-14 14:55:15 +00:00
Thomas Doerfler
870d0a22ff Update 2009-05-05 12:52:29 +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
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
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
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
4e971660a1 Remove all-local. 2006-01-12 09:57:43 +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
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
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
bceb652ff9 2004-04-09 Ralf Corsepius <ralf_corsepius@rtems.org>
* libblock/Makefile.am: Build libblock for !UNIX only.
	* libcsupport/Makefile.am: Build $(TERMIOS_C_FILES) for !UNIX only.
2004-04-09 02:47:48 +00:00
Ralf Corsepius
35afb17e15 2004-04-09 Ralf Corsepius <ralf_corsepius@rtems.org>
* libblock/Makefile.am: Remove LIBC_DEFINES (Unsupported).
	* libfs/Makefile.am: Remove LIBC_DEFINES (Unsupported).
2004-04-09 02:22:39 +00:00
Ralf Corsepius
3d1de205f6 2004-01-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Add PREINSTALL_DIRS.
2004-01-19 07:29:05 +00:00
Ralf Corsepius
8a2c17969e 2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Re-add dirstamps to PREINSTALL_FILES.
	Add PREINSTALL_FILES to CLEANFILES.
2004-01-14 05:21:56 +00:00
Ralf Corsepius
6ac4e84f89 2004-01-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Include compile.am, again.
	Eliminate C_FILES. Reformat.
2004-01-11 05:53:50 +00:00
Ralf Corsepius
b71e8d050a 2004-01-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Add libs to CLEANFILES
	Set lib*_g_a_SOURCES = lib*_a_SOURCES.
2004-01-09 18:22:16 +00:00
Ralf Corsepius
dfd7c2553a 2004-01-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Build libblock$(LIB_VARIANT).a instead of
	$(ARCH)/libblock.a.
2004-01-09 14:45:38 +00:00
Ralf Corsepius
07347cb5e7 2004-01-07 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Build library using EXTRA_LIBRARIES and automake rules.
2004-01-07 17:48:16 +00:00
Ralf Corsepius
53a895846c 2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
2003-12-12 13:39:43 +00:00
Ralf Corsepius
0998f21c44 2003-11-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Add $(dirstamp) to compilation rules.
2003-12-01 04:04:54 +00:00
Ralf Corsepius
9e7e53bf1e 2003-11-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Add $(dirstamp) to preinstallation rules.
2003-11-30 08:01:23 +00:00
Ralf Corsepius
f2954e0cd4 2003-11-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Reworked.
2003-11-22 12:51:28 +00:00
Ralf Corsepius
006fa1ef77 2003-11-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: AM_CPPFLAGS += -I$(top_builddir).
	Use AM_CPPFLAGS instead of AM_CFLAGS.
	* src/ata.c: Include config.h.
	* src/bdbuf.c: Ditto.
	* src/blkdev.c: Ditto.
	* src/diskdevs.c: Ditto.
	* src/ide_part_table.c: Ditto.
	* src/ramdisk.c: Ditto.
2003-11-20 12:14:50 +00:00
Ralf Corsepius
f3f0c916d5 2003-07-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove (Merged into ../configure.ac).
	* Makefile.am: Reflect having merged configure.ac into
	../configure.ac.
2003-07-08 08:12:59 +00:00
Joel Sherrill
8bdf1d6ac2 2003-03-27 Joel Sherrill <joel@OARcorp.com>
* ChangeLog, Makefile.am: ATA code depends upon libchip/ide which is
	not allowed in the cpukit source code since it must be buildable
	independent of any BSP. These files were moved to libchip/ide.
	* include/rtems/ata.h, include/rtems/ata_internal.h: Removed.
2003-03-27 15:20:19 +00:00
Joel Sherrill
dbe06865bf 2003-03-25 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR 367/filesystem
	* Makefile.am, include/rtems/ide_part_table.h, src/ata.c,
	src/ide_part_table.c: Some bugs were still present in the DOSFS
	implementation:
	    - FAT12 did not work properly on Big-Endian machines
	    - Some synchronization and error handling problems were present
	    - Some legal codings for EOC were not recognized
2003-03-25 17:01:52 +00:00
Ralf Corsepius
bb89189ab5 2002-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Eliminate C_O_FILES.
	Eliminate SRCS.
2002-12-12 06:11:14 +00:00
Ralf Corsepius
c321496181 2002-07-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Merge src/Makefile.am.
	* src/Makefile.am: Remove.
	* configure.ac: Remove src/Makefile.am
2002-07-31 05:48:15 +00:00
Ralf Corsepius
ef73563f54 2002-07-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Eliminate LIBNAME. Cosmetical cleanups.
2002-07-22 06:35:08 +00:00
Ralf Corsepius
9909f34c49 2002-06-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Merge-in include/Makefile.am.
	* include/Makefile.am: Remove.
	* configure.ac: Reflect changes above.
2002-06-18 12:36:40 +00:00
Ralf Corsepius
6e183f18cd 2002-06-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* Makefile.am: Include $(top_srcdir)/../automake/*.am.
	Use ../aclocal.
	* src/Makefile.am: Include $(top_srcdir)/../automake/*.am.
2002-06-17 09:10:09 +00:00
Joel Sherrill
279ec4e8b5 2002-05-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Move from c/src/libblock to c/src/exec/libblock
	* configure.ac: Reflect move.
	* Makefile.am: Ditto.
	* include/Makefile.am: Ditto.
	* src/Makefile.am: Ditto.
2002-05-28 17:21:09 +00:00
Joel Sherrill
ae5a0ce158 2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac:
	AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS).
	AM_INIT_AUTOMAKE([no-define foreign 1.6]).
	* include/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* Makefile.am: Remove AUTOMAKE_OPTIONS.
	* src/Makefile.am: Remove AUTOMAKE_OPTIONS.
2002-03-28 00:49:53 +00:00
Joel Sherrill
e51bd967cd 2002-02-28 Joel Sherrill <joel@OARcorp.com>
* Submitted by Victor V. Vengerov <vvv@oktet.ru> and merged
	into the RTEMS source.
	* ChangeLog, Makefile.am, README, configure.ac, include/Makefile.am,
	include/rtems/bdbuf.h, include/rtems/blkdev.h, include/rtems/diskdevs.h,
	include/rtems/ramdisk.h, include/rtems/.cvsignore, include/.cvsignore,
	src/Makefile.am, src/bdbuf.c, src/blkdev.c, src/diskdevs.c,
	src/ramdisk.c, src/.cvsignore, .cvsignore: New files.
2002-02-28 20:39:54 +00:00