#include <block_driver.hpp>


Public Types | |
| enum | state_flags_constants { READONLY = 0x01, FLUSHABLE = 0x02, READY = 0x04, ALL_MASK = READONLY | FLUSHABLE | READY } |
|
typedef bitmask< uint_value_t < ALL_MASK >::least > | state_flags |
Public Member Functions | |
| static_assert (is_unsigned< l4_sector_t >::conforms,"l4_sector_t must be an unsigned integer") | |
| static_assert (integer_traits< state_flags::word_type >::const_max >=ALL_MASK,"state_flags's max value is too small") | |
Static Public Attributes | |
| static const l4_sector_t | MIN_SECTOR_NUMBER = 1024 |
| static const uint16_t | SECTOR_SIZE = 512 |
| READONLY | The driver is in read-only mode. |
| FLUSHABLE | The driver supports to flush data. |
| READY | The driver is ready (i.e. the medium/backend has been opened). |
| ALL_MASK | Mask containing all used bits. |
Reimplemented in ata_drive.