HAM_Return_Device_Status (Function 0x0B)

Mandatory function. Allows the CDM to discover certain status information about the device.

Parameters

function
0x0B
parameter0
0
parameter1
0
parameter2
0

Return Values

The following table lists return values and descriptions.

Parameter

Value

Meaning

hacbCompletion

0x00000000

Queue is active

 

0x80000000

Queue is frozen

Remarks

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:

Parameter

Byte Order

Description

controlInfo

MSB

SATA Adapter Number

 

 

SATA Port Number

 

 

SATA Task File Data Error Register (PxTFD.ERR)

 

LSB

SATA Task File Data Status Register (PxTFD.STS)