1. NAME▲

ata_do_set_mode - Program timings and issue SET FEATURES - XFER

2. SYNOPSIS ▲

int ata_do_set_mode(struct ata_link *  link , struct ata_device **  r_failed_dev );

3. ARGUMENTS ▲

link
    link on which timings will be programmed

r_failed_dev
    out parameter for failed device

4. DESCRIPTION ▲

Standard implementation of the function used to tune and set ATA device disk transfer mode (PIO3, UDMA6, etc.). If ata_dev_set_mode fails, pointer to the failing device is returned in r_failed_dev.

5. LOCKING ▲

PCI/etc. bus probe sem.

6. RETURNS ▲

0 on success, negative errno otherwise

7. AUTHOR ▲

Jeff Garzik
    Author.

8. COPYRIGHT ▲