diff options
author | Chris Johns <chrisj@rtems.org> | 2009-08-05 00:00:54 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2009-08-05 00:00:54 +0000 |
commit | 0d15414ed6c144f7f7e4ce63476b3eb9b94acceb (patch) | |
tree | d403db6ba0eae020e8613bb81a0427ca1ab85867 /cpukit/libblock/include/rtems/diskdevs.h | |
parent | 2009-08-04 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-0d15414ed6c144f7f7e4ce63476b3eb9b94acceb.tar.bz2 |
009-08-05 Chris Johns <chrisj@rtems.org>
* libmisc/dummy/dummy-networking.c: New.
* libmisc/dummy/dummy.c, libmisc/Makefile.am: Move
trhe networking configuration into a separate file so
configuration varations do not cause conflicts.
* score/inline/rtems/score/object.inl,
score/include/rtems/score/object.h: Remove warnings.
* score/inline/rtems/score/object.inl: Add _Chain_First,
_Chain_Last, _Chain_Mext, and _Chain_Previous.
* sapi/inline/rtems/chain.inl: Add rtems_chain_first,
rtems_chain_last, rtems_chain_mext, and rtems_chain_previous.
* libblock/include/rtems/diskdevs.h: Remove the bdbuf pool id and
block_size_log2. Add media_block_size.
* libblock/src/diskdevs.c: Remove size restrictions on block
size. Add media block size initialisation. Remove comment to clean
up the bdbuf cache.
* libblock/src/blkdev.c: Remove references to
block_size_log2. Allow any block size.
* libblock/include/rtems/bdbuf.h, libblock/src/bdbuf.c: Remove all
references to pools and make the cache handle demand driver
variable buffer size allocation. Added worker threads support the
swapout task.
* sapi/include/confdefs.h: Updated the bdbuf configutation.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libblock/include/rtems/diskdevs.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/cpukit/libblock/include/rtems/diskdevs.h b/cpukit/libblock/include/rtems/diskdevs.h index e48b61e53c..89e85fb6d7 100644 --- a/cpukit/libblock/include/rtems/diskdevs.h +++ b/cpukit/libblock/include/rtems/diskdevs.h @@ -20,13 +20,6 @@ #include <rtems/libio.h> #include <stdlib.h> -/** - * @ingroup rtems_bdbuf - * - * Buffer pool identifier. - */ -typedef int rtems_bdpool_id; - #include <rtems/blkdev.h> #ifdef __cplusplus @@ -107,19 +100,16 @@ typedef struct rtems_disk_device { /** * Device block size in bytes. * - * This is the minimum transfer unit and must be power of two. + * This is the minimum transfer unit. It can be any size. */ uint32_t block_size; /** - * Binary logarithm of the block size. - */ - uint32_t block_size_log2; - - /** - * Buffer pool assigned to this disk. + * Device media block size in bytes. + * + * This is the media transfer unit the hardware defaults to. */ - rtems_bdpool_id pool; + uint32_t media_block_size; /** * IO control handler for this disk. |