HAM_Return_Device_Status (Function 0x0B)
Mandatory function. Allows the CDM to discover certain status information about the device.
The following table lists return values and descriptions.
For all devices, the device's queue state is returned in the hacbCompletion field of the HACB.
For IDE/ATAPI devices, the following register information is also returned in the controlInfo field of the HACB:
Parameter |
Byte Order |
Description |
---|---|---|
controlInfo |
MSB |
ATA Bus Number |
|
|
ATA Drive Number |
|
|
Alternate-Status Register |
|
LSB |
Error Register |
For Serial ATA (SATA) devices, the following register information is also returned in the controlInfo field of the HACB: