NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Partition Class Reference
Inheritance diagram for Partition:
Disk

Classes

struct  mbr
struct  partition

Public Member Functions

 Partition (Disk *parent, uint64 start, uint64 length, const char *names[])
virtual bool do_read_write (op op, unsigned long usertag, unsigned long long sector, unsigned dmacount, DmaDescriptor *dma, unsigned long physoffset, unsigned long physsize)
virtual bool flush ()
virtual bool get_params (DiskParameter &params)
- Public Member Functions inherited from Disk
 Disk (const char *anames[])
 Disk (const char *format,...) __attribute__((format(printf

Static Public Member Functions

static unsigned add_extended_partitions (MyDiskHelper *disk, unsigned disknum, struct partition *e)
static bool find (MyDiskHelper *disk, unsigned disknum)

Private Types

enum  { SECTOR_SHIFT = 9L, SECTOR_SIZE = 1L << SECTOR_SHIFT }

Private Member Functions

struct Partition::partition __attribute__ ((packed))
struct Partition::mbr __attribute__ ((packed))
 static_assert (sizeof(mbr)==SECTOR_SIZE,"Wrong size of MBR")

Private Attributes

Diskparent
uint64 start
uint64 length

Additional Inherited Members

- Public Types inherited from Disk
enum  op { READ, WRITE }
- Public Attributes inherited from Disk
List< Namenames
struct Disk::stats stats
Disknext

Member Enumeration Documentation

anonymous enum
private
Enumerator:
SECTOR_SHIFT 
SECTOR_SIZE 

Constructor & Destructor Documentation

Partition::Partition ( Disk parent,
uint64  start,
uint64  length,
const char *  names[] 
)
inline

Member Function Documentation

struct Partition::partition Partition::__attribute__ ( (packed)  )
private
struct Partition::mbr Partition::__attribute__ ( (packed)  )
private
static unsigned Partition::add_extended_partitions ( MyDiskHelper disk,
unsigned  disknum,
struct partition e 
)
inlinestatic
virtual bool Partition::do_read_write ( op op  ,
unsigned long  usertag,
unsigned long long  sector,
unsigned  dmacount,
DmaDescriptor dma,
unsigned long  physoffset,
unsigned long  physsize 
)
inlinevirtual
static bool Partition::find ( MyDiskHelper disk,
unsigned  disknum 
)
inlinestatic
virtual bool Partition::flush ( )
inlinevirtual
virtual bool Partition::get_params ( DiskParameter params)
inlinevirtual

Implements Disk.

Partition::static_assert ( sizeof(mbr = =SECTOR_SIZE,
"Wrong size of MBR"   
)
private

Member Data Documentation

uint64 Partition::length
private
Disk* Partition::parent
private
uint64 Partition::start
private

The documentation for this class was generated from the following files: