KallistiOS
##version##
|
Macros | |
#define | G1_ATA_MASTER 0x00 |
ATA master device. More... | |
#define | G1_ATA_MASTER_ALT 0x90 |
ATA master device (compatible with old drives). More... | |
#define | G1_ATA_SLAVE 0xB0 |
ATA slave device. More... | |
#define | G1_ATA_LBA_MODE 0x40 |
Select LBA addressing mode. More... | |
The constants here represent the valid values that can be set as the active device on the ATA bus. You should pass one of these values to the g1_ata_select_device() function to select the appropriate device.
#define G1_ATA_LBA_MODE 0x40 |
Select LBA addressing mode.
OR this constant with one of the device constants (G1_ATA_MASTER or G1_ATA_SLAVE) to select LBA addressing mode. The various g1_ata_* functions all do this as appropriate already, so you shouldn't have to worry about this one at all. This bit is irrelevant for packet devices.
#define G1_ATA_MASTER 0x00 |
ATA master device.
This constant selects the master device on the ATA bus. This is normally the GD-ROM drive.
#define G1_ATA_MASTER_ALT 0x90 |
ATA master device (compatible with old drives).
This constant selects the master device on the ATA bus, with the old reserved bits set to 1. If you have a drive that predates ATA-2, then this will probably be the constant you want to access it as the master device.
#define G1_ATA_SLAVE 0xB0 |
ATA slave device.
This constant selects the slave device on the ATA bus. This is where you would find a hard drive, if the user has an adapter installed.