ata_set_mode(9)

ata_set_mode9

Program timings and issue set features - xfer

Usage

int ata_set_mode(struct ata_port * ap, struct ata_device ** r_failed_dev);

Arguments

ap

port on which timings will be programmed

r_failed_dev

out paramter for failed device

Overview

Set ATA device disk transfer mode (PIO3, UDMA6, etc.). If ata_set_mode fails, pointer to the failing device is returned in r_failed_dev.

Locking

PCI/etc. bus probe sem.

Returns

0 on success, negative errno otherwise

Author

Jeff Garzik

Author.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Also shipped by linux-manual-2.6.24. Parsed by carta from the page's man source.