Crate atapi

Crate atapi 

Source

Structs§

ATAPI
R - Read, W - Write, B - Byte, W - Word LBA48
ControlRegisters
IORegisters

Enums§

ATADMACommands
B - byte, W - word
ATANoneCommands
B - byte, W - word
ATAOtherCommands
B - byte, W - word
ATAPIOCommands
B - byte, W - word
ControlDeviceRegister
DMAOrPIO
IODeviceOrHeadRegister
IOErrorRegister
construction of ErrorRegister each field contain value matched with name EXAMPLE: AddressMarkNotFound = 1 << 0, you can match value of your register with this enum
IOStatusRegister
construction of StatusRegister each field contain value matched with name EXAMPLE: AddressMarkNotFound = 1 << 0, you can match value of your register with this enum
LBAOrCHS
MasterOrSlave
PrimaryOrSecondary
SCSICommands
List of all SCSI comamnds with repr(u8) Example: SCSCICommands::TestUnitReady as u8 -> 0x00

Functions§

inb
function to get 8 bit data from port
inw
function to get 16 bit data from port
outb
function for write to port 1 byte data
outw
function for write to port 1 byte data