ATA device definitions
ATA device definitions
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.
- Note
- Many times, the value returned by the g1_ata_select_device() function will have other bits set than the constants below. You should AND the value returned from that function with 0x10 if you really need to know what device is actually selected. If the value returned is true when ANDed with 0x10, then the slave device was selected, otherwise the master device was. The other bits are either command-specific or are reserved for compatibility sake.