summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Convert to using "bool".Ralf Corsepius2008-09-015-129/+129
|
* 2008-09-01 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2008-09-011-0/+4
| | | | * libblock/src/nvdisk-sram.c: Add missing HAVE_CONFIG_H.
* s/rtems_boolean/bool/g.Ralf Corsepius2008-08-254-7/+7
|
* 2008-08-21 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-08-214-27/+27
| | | | | | * 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.
* Remove bool, true, false.Ralf Corsepius2008-08-211-7/+0
|
* 2008-08-2008 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2008-08-201-7/+0
| | | | | * libblock/src/nvdisk.c: Remove bool, true, false (unused, clashes with C99/POSIX).
* 2008-08-06 Chris Johns <chrisj@rtems.org>Chris Johns2008-08-061-2/+2
| | | | | * libblock/src/bdbuf.c: PR1272. Fixed similar possible issues in the new bdbuf code.
* 2008-08-06 Brett Swimley <brett.swimley@aedbozeman.com>Chris Johns2008-08-061-0/+1
| | | | | * libblock/src/diskdevs.c: PR1192. Update the disktap pointer after the realloc.
* 2008-08-06 Till Straumann <strauman@slac.stanford.edu>Chris Johns2008-08-061-1/+1
| | | | | * libblock/src/diskdevs.c: PR1269. Delete the semaphore rather than release it.
* 2008-08-02 Chris Johns (chrisj@rtems.org>Chris Johns2008-08-024-32/+55
| | | | | | | | | | | | | * 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.
* Add missing prototypes.Ralf Corsepius2008-08-011-2/+2
|
* 2008-07-29 Chris Johns <chrisj@rtems.org>Chris Johns2008-07-291-2/+2
| | | | * libblock/src/nvdisk.c: Fix block compile bug.
* 2008-07-29 Chris Johns <chrisj@rtems.org>Chris Johns2008-07-291-360/+390
| | | | | * libblock/include/rtems/bdbuf.h, cpukit/libblock/src/bdbuf.c: Update the comments.
* 2008-07-29 Chris Johns <chrisj@rtems.org>Chris Johns2008-07-297-1688/+2282
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-03 Chris Johns <chrisj@rtems.org>Chris Johns2008-07-031-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Added const qualifier to various pointers and data tables toThomas Doerfler2008-05-271-2/+2
| | | | | | 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-01 Chris Johns <chrisj@rtems.org>Chris Johns2008-05-012-0/+948
| | | | | | | | | * 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-01-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-05 Chris Johns <chrisj@rtems.org>Chris Johns2008-01-051-243/+340
| | | | | | | | | | | | | | * 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.
* 2007-12-22 Chris Johns <chrisj@rtems.org>Chris Johns2007-12-221-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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-12 Chris Johns <chrisj@rtems.org>Chris Johns2007-12-141-0/+4
| | | | | * libblock/include/rtems/flashdisk.h, libblock/src/flashdisk.c: Add RTEMS license details.
* 2007-12-12 Chris Johns <chrisj@rtems.org>Chris Johns2007-12-141-0/+2475
| | | | | | | | * 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-05-08 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2007-05-081-0/+5
| | | | * libblock/src/show_bdbuf.c: Add HAVE_CONFIG_H magic.
* 2007-01-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2007-01-301-11/+11
| | | | * libblock/src/show_bdbuf.c: Use inttypes.h macros.
* 2007-01-27 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2007-01-271-904/+904
| | | | * libblock/src/show_bdbuf.c: Convert from DOS to UNIX.
* mproved gen5200 MSCAN driverThomas Doerfler2007-01-212-67/+937
| | | | fixed synchronization bug between ata.c and bdbuf.c
* applied patches for PR1117/1118/1119/1120Thomas Doerfler2006-07-091-5/+6
|
* 2006-03-07 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>Joel Sherrill2006-03-071-76/+342
| | | | | | | 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.
* 2005-05-06 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2005-05-061-2/+2
| | | | | | | | * 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-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-02-171-2/+3
| | | | | | * libblock/include/rtems/ramdisk.h: size_t rtems_ramdisk_configuration_size. * libblock/src/ramdisk.c: Adaptations for 16bit target compliance.
* 2005-02-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2005-02-021-2/+2
| | | | | | | | * 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.
* Fix typo.Ralf Corsepius2005-01-051-1/+1
|
* 2004-04-17 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-04-171-1/+1
| | | | | * libblock/src/ide_part_table.c: Use fprintf(stdout,...) instead of printf.
* Remove stray white spaces.Ralf Corsepius2004-04-175-72/+72
|
* Remove stray white spaces.Ralf Corsepius2004-04-155-145/+145
|
* Unused.Ralf Corsepius2004-03-081-2/+0
|
* 2004-03-05 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2004-03-051-1/+2
| | | | * libblock/src/bdbuf.c: Initialize pointer to avoid warning.
* 2004-03-05 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2004-03-052-8/+1
| | | | | | | | | | | | | | | | | | | | | * libblock/src/bdbuf.c, libblock/src/ramdisk.c, libcsupport/src/newlibc.c, libcsupport/src/sync.c, libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-symbols.c, libmisc/shell/cmds.c, libmisc/shell/shell.c, libnetworking/kern/kern_sysctl.c, libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c, libnetworking/libc/gethostbydns.c, libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c, libnetworking/libc/getnetbyht.c, libnetworking/libc/getnetnamadr.c, libnetworking/libc/inet_addr.c, libnetworking/libc/linkaddr.c, libnetworking/libc/map_v4v6.c, libnetworking/libc/ns_print.c, libnetworking/libc/ns_ttl.c, libnetworking/libc/nsap_addr.c, libnetworking/libc/rcmd.c, libnetworking/libc/res_debug.c, libnetworking/libc/res_mkupdate.c, libnetworking/libc/res_query.c, libnetworking/libc/res_send.c, libnetworking/libc/res_update.c, libnetworking/net/radix.c, libnetworking/rtems/mkrootfs.c, librpc/src/rpc/clnt_perror.c, librpc/src/rpc/svc.c, score/macros/rtems/score/chain.inl, score/src/objectidtoname.c: Too much was accidentally committed -- revert.
* 2004-03-05 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2004-03-052-1/+8
| | | | | | | | | | | | | | | | | | | | | * libblock/src/bdbuf.c, libblock/src/ramdisk.c, libcsupport/src/newlibc.c, libcsupport/src/sync.c, libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-symbols.c, libmisc/shell/cmds.c, libmisc/shell/shell.c, libnetworking/kern/kern_sysctl.c, libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c, libnetworking/libc/gethostbydns.c, libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c, libnetworking/libc/getnetbyht.c, libnetworking/libc/getnetnamadr.c, libnetworking/libc/inet_addr.c, libnetworking/libc/linkaddr.c, libnetworking/libc/map_v4v6.c, libnetworking/libc/ns_print.c, libnetworking/libc/ns_ttl.c, libnetworking/libc/nsap_addr.c, libnetworking/libc/rcmd.c, libnetworking/libc/res_debug.c, libnetworking/libc/res_mkupdate.c, libnetworking/libc/res_query.c, libnetworking/libc/res_send.c, libnetworking/libc/res_update.c, libnetworking/net/radix.c, libnetworking/rtems/mkrootfs.c, librpc/src/rpc/clnt_perror.c, librpc/src/rpc/rtems_rpc.c, librpc/src/rpc/svc.c, sapi/include/confdefs.h, score/macros/rtems/score/chain.inl, score/src/objectidtoname.c:
* 2004-01-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2004-01-093-18/+18
| | | | | | * include/rtems/blkdev.h, include/rtems/ide_part_table.h, src/bdbuf.c, src/ide_part_table.c, src/ramdisk.c: Switch to using c99 fixed size types instead of RTEMS-types.
* 2003-12-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2003-12-041-1321/+0
| | | | * src/ata.c: Remove.
* 2003-11-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2003-11-206-1/+26
| | | | | | | | | | | * 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-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2003-09-042-2/+2
| | | | | * include/rtems/ide_part_table.h, src/ata.c, src/ide_part_table.c: URL for license changed.
* 2003-06-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2003-06-041-1/+1
| | | | * src/ide_part_table.c: Removed warnings.
* 2002-04-10 Victor V. Vengerov <vvv@oktet.ru>Joel Sherrill2003-04-161-0/+2
| | | | | | | | | | | | | | PR 385/filesystem * src/ramdisk.c: The "from" and "to" locations are calculated as the start of the block within the ram that data is to be transferred from/to for reads and writes respectively. However, within the loops, the "from" and "to" locations are never updated. The loop should have been updated as: from += rd->block_size; and to += rd->block_size; within the for loops in the ramdisk_read and ramdisk_write routines, respectively.
* 2003-03-25 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>Joel Sherrill2003-03-252-35/+59
| | | | | | | | | | 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-01-27 Eugeny S. Mints <Eugeny.Mints@oktet.ru>Joel Sherrill2003-01-271-1/+1
| | | | | * src/blkdev.c: Per PR331 fix bug which is tripped by writing 512 byte blocks to 512 byte aligned positions.
* 2003-01-03 Eugeny S. Mints <Eugeny.Mints@oktet.ru>Joel Sherrill2003-01-032-4/+4
| | | | | * src/ata.c, src/bdbuf.c: Correct invocation of rtems_task_mode() so the task's preemption mode setting is properly maintained.
* 2002-12-02 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-12-021-1/+1
| | | | * src/bdbuf.c: Added cast to remove warning.
* 2002-11-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2002-11-151-0/+1
| | | | * src/diskdevs.c: Include <unistd.h> to remove warning.