14 #ifndef _RTEMS_DISKDEVS_H 15 #define _RTEMS_DISKDEVS_H 59 #define RTEMS_DISK_READ_AHEAD_NO_TRIGGER ((rtems_blkdev_bnum) -1) 281 RTEMS_DEPRECATED
static inline dev_t rtems_disk_get_device_identifier(
289 RTEMS_DEPRECATED
static inline rtems_device_major_number rtems_disk_get_major_number(
293 return rtems_filesystem_dev_major_t(dd->
dev);
297 RTEMS_DEPRECATED
static inline rtems_device_minor_number rtems_disk_get_minor_number(
301 return rtems_filesystem_dev_minor_t(dd->
dev);
304 static inline void *rtems_disk_get_driver_data(
311 static inline uint32_t rtems_disk_get_media_block_size(
318 static inline uint32_t rtems_disk_get_block_size(
uint32_t block_size
Block size in bytes.
Definition: diskdevs.h:214
Block device read-ahead control.
Definition: diskdevs.h:64
uint32_t rtems_blkdev_bnum
Block device block index type.
Definition: diskdevs.h:45
size_t bds_per_group
Buffer descriptors per group count.
Definition: diskdevs.h:246
rtems_blkdev_stats stats
Device statistics for this disk.
Definition: diskdevs.h:267
rtems_chain_node node
Chain node for the read-ahead request queue of the read-ahead task.
Definition: diskdevs.h:68
int(* rtems_block_device_ioctl)(rtems_disk_device *dd, uint32_t req, void *argp)
Block device IO control handler type.
Definition: diskdevs.h:50
uint32_t capabilities
Driver capabilities.
Definition: diskdevs.h:172
uint32_t media_block_size
Media block size in bytes.
Definition: diskdevs.h:204
char * name
Disk device name.
Definition: diskdevs.h:177
dev_t dev
Device identifier (concatenation of major and minor number).
Definition: diskdevs.h:161
rtems_blkdev_bnum size
Size of the physical or logical disk in media blocks.
Definition: diskdevs.h:197
rtems_blkdev_read_ahead read_ahead
Read-ahead control for this disk.
Definition: diskdevs.h:272
uint32_t read_blocks
Count of blocks transfered from the device.
Definition: diskdevs.h:120
Block device statistics.
Definition: diskdevs.h:92
Description of a disk device (logical and physical disks).
Definition: diskdevs.h:157
uint32_t read_errors
Read error count.
Definition: diskdevs.h:127
uint32_t read_ahead_transfers
Read-ahead transfer count.
Definition: diskdevs.h:115
rtems_blkdev_bnum block_count
Block count.
Definition: diskdevs.h:221
rtems_status_code
Classic API Status.
Definition: status.h:43
uint32_t media_blocks_per_block
Media blocks per device blocks.
Definition: diskdevs.h:228
uint32_t write_errors
Write error count.
Definition: diskdevs.h:146
uint32_t write_blocks
Count of blocks transfered to the device.
Definition: diskdevs.h:139
void * driver_data
Private data for the disk driver.
Definition: diskdevs.h:256
int block_to_media_block_shift
Block to media block shift.
Definition: diskdevs.h:239
rtems_blkdev_bnum trigger
Block value to trigger the read-ahead request.
Definition: diskdevs.h:76
rtems_blkdev_bnum start
Start media block number.
Definition: diskdevs.h:192
rtems_disk_device * phys_dev
Physical device identifier (equals the dev entry if it specifies a physical device).
Definition: diskdevs.h:167
unsigned uses
Usage counter.
Definition: diskdevs.h:184
uint32_t read_misses
Read miss count.
Definition: diskdevs.h:108
rtems_blkdev_bnum next
Start block for the next read-ahead request.
Definition: diskdevs.h:84
rtems_block_device_ioctl ioctl
IO control handler for this disk.
Definition: diskdevs.h:251
uint32_t read_hits
Read hit count.
Definition: diskdevs.h:99
bool deleted
Indicates that this disk should be deleted as soon as the last user releases this disk.
Definition: diskdevs.h:262
uint32_t write_transfers
Write transfer count.
Definition: diskdevs.h:134