Overview   API Reference  

block_driver_constants Struct Reference

Class defining constants for the block driver interface. More...

#include <block_driver.hpp>

Inheritance diagram for block_driver_constants:

Inheritance graph
[legend]
Collaboration diagram for block_driver_constants:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Class defining constants for the block driver interface.

Member Enumeration Documentation

Enumerator:
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.


The documentation for this struct was generated from the following file:

L4vmm Reference Manual, written by Mario Schwalbe  © 2006-2008