Changeset 3ee7b84 in rtems


Ignore:
Timestamp:
Mar 5, 2012, 10:47:56 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
291c9264
Parents:
796967c
git-author:
Sebastian Huber <sebastian.huber@…> (03/05/12 10:47:56)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/13/12 11:24:18)
Message:

libblock: New support functions

Add

o rtems_disk_get_block_size(),
o rtems_disk_get_block_begin(), and
o rtems_disk_get_block_count().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/include/rtems/diskdevs.h

    r796967c r3ee7b84  
    177177{
    178178  return dd->media_block_size;
     179}
     180
     181static inline uint32_t rtems_disk_get_block_size(
     182  const rtems_disk_device *dd
     183)
     184{
     185  return dd->block_size;
     186}
     187
     188static inline rtems_blkdev_bnum rtems_disk_get_block_begin(
     189  const rtems_disk_device *dd
     190)
     191{
     192  return dd->start;
     193}
     194
     195static inline rtems_blkdev_bnum rtems_disk_get_block_count(
     196  const rtems_disk_device *dd
     197)
     198{
     199  return dd->size;
    179200}
    180201
Note: See TracChangeset for help on using the changeset viewer.