ata_choose_xfer_mode

Name

ata_choose_xfer_mode --  attempt to find best transfer mode

Synopsis

int ata_choose_xfer_mode (struct ata_port * ap, u8 * xfer_mode_out, unsigned int * xfer_shift_out);

Arguments

ap

Port for which an xfer mode will be selected

xfer_mode_out

(output) SET FEATURES - XFER MODE code

xfer_shift_out

(output) bit shift that selects this mode

LOCKING

RETURNS

Zero on success, negative on error.