1. NAME

ata_dev_read_id - Read ID data from the specified device

2. SYNOPSIS

int ata_dev_read_id(struct ata_device *  dev , unsigned int *  p_class , unsigned int  flags , u16 *  id );

3. ARGUMENTS

dev
    target device

p_class
    pointer to class of the target device (may be changed)

flags
    ATA_READID_* flags

id
    buffer to read IDENTIFY data into

4. DESCRIPTION

Read ID data from the specified device. ATA_CMD_ID_ATA is performed on ATA devices and ATA_CMD_ID_ATAPI on ATAPI devices. This function also issues ATA_CMD_INIT_DEV_PARAMS for pre-ATA4 drives.

5. FIXME

ATA_CMD_ID_ATA is optional for early drives and right now we abort if we hit that case.

6. LOCKING

Kernel thread context (may sleep)

7. RETURNS

0 on success, -errno otherwise.

8. AUTHOR

Jeff Garzik
    Author.

9. COPYRIGHT