Overview   API Reference  

ata_drive::geometry Struct Reference

Struct/Attribute to store and compute the drive's physical geometry. More...

#include <ata_drive.hpp>

Collaboration diagram for ata_drive::geometry:

Collaboration graph
[legend]

List of all members.

Public Types

enum  chs_constants { MAX_CYLINDERS = 65536, MAX_HEADS = 16, MAX_SECTORS = 255 }

Public Member Functions

uint32_t get_cylinders (const uint16_t heads, const uint8_t sectors)
int operator() (const l4_sector_t total_sectors)
int operator() (const uint16_t heads, const uint8_t sectors)
uint16_t total_sectors_word (const uint8_t index)

Public Attributes

l4_sector_t total_sectors
 Number of sectors in LBA address mode.
uint32_t cylinders
 Number of cylinders in CHS address mode (indexed from 0 to 65535).
uint16_t heads
 Number of heads in CHS address mode (indexed from 0 to 15?).
uint8_t sectors
 Number of sectors in CHS address mode (indexed from 1 to 255?).


Detailed Description

Struct/Attribute to store and compute the drive's physical geometry.
The documentation for this struct was generated from the following file:

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