Documentation for all the disk device drivers.
More...
|
| file | disk.h |
| | Header file defining the disk device driver API.
|
| |
Documentation for all the disk device drivers.
Generic disk I/O control commands.
| Enumerator |
|---|
| DISK_IOCTL_CTRL_SYNC |
Synchronize the cached writes to persistent storage.
|
| DISK_IOCTL_GET_SECTOR_COUNT |
Get the sector count through the uint32_t pointed to by buff.
|
| DISK_IOCTL_GET_SECTOR_SIZE |
Get the sector size through the uint16_t pointed to by buff.
|
| DISK_IOCTL_GET_BLOCK_SIZE |
Get the erase block size (in sectors) through the uint32_t pointed to by buff.
|
| DISK_IOCTL_CTRL_TRIM |
Trim the sector range within the uint32_t boundaries pointed to by buff.
|
Definition at line 56 of file disk.h.
Disk access result codes.
| Enumerator |
|---|
| DISK_RESULT_OK |
Success.
|
| DISK_RESULT_IO_ERROR |
Unrecoverable I/O error.
|
| DISK_RESULT_WR_PROTECTED |
Write-protected medium.
|
| DISK_RESULT_NO_INIT |
Device not initialized.
|
| DISK_RESULT_INVALID_ARG |
Invalid argument.
|
Definition at line 65 of file disk.h.
Disk status flags.
| Enumerator |
|---|
| DISK_STATUS_INIT |
Device initialized and ready to work.
|
| DISK_STATUS_DISK |
Medium present in the drive.
|
| DISK_STATUS_WRITABLE |
Writable medium.
|
Definition at line 49 of file disk.h.