Provides the means to issue an identify device command to an Integrated Device Electronics (IDE) ATA or ATAPI device.
The IDEIOIDENT operation allows the caller to issue an IDE identify device command to a selected device. This command can be used by system management routines to aid in configuration of IDE devices.
The arg parameter for the IDEIOIDENT operation is the address of an identify_device structure. This structure is defined in the /usr/include/sys/ide.h file. The identify_device parameter block allows the caller to select the IDE device ID to be queried.
If successful, the returned device data can be found at the address specified by the caller in the identify_device structure. Successful completion occurs if a device responds at the requested IDE deivce ID. Refer to the ATA Specification or the ATA Packet Interface for CD-ROMs Specification or the ATA Packet Interface for Streaming Tapes Specification for the applicable device for the format of the returned data. The data within the identify_deivce structure is in little endian format; it normally will need to be byte swapped in order to correctly interpret the data. Each 16-bit word, at 16-bit offsets, will need to swap the most significant 8-bit byte with the least significant 8-bit byte.
Note: The IDE adapter device driver performs normal error-recovery procedures during execution of this command.
When completed successfully this operation returns a value of 0. Otherwise, a value of -1 is returned and the errno global variable is set to 1 of the following values:
/dev/ide0, /dev/ide1, ..., /dev/iden | Provide an interface to allow IDE device drivers to access IDE devices or adapters. |
idedisk IDE device driver or idecdrom IDE device driver.