ata_timing_cycle2mode — find xfer mode for the specified cycle duration
|unsigned int xfer_shift,|
unsigned int xfer_shift
ATA_SHIFT_* value for transfer type to examine.
cycle duration in ns
Return matching xfer mode for
cycle. The returned mode is of
the transfer type specified by
cycle is too
xfer_shift, 0xff is returned. If
cycle is faster
than the fastest known mode, the fasted mode is returned.