ata_timing_cycle2mode - find xfer mode for the specified cycle duration
2. SYNOPSIS ▲
u8 ata_timing_cycle2mode(unsigned int xfer_shift , int cycle );
3. ARGUMENTS ▲
ATA_SHIFT_* value for transfer type to examine.
cycle duration in ns
4. DESCRIPTION ▲
Return matching xfer mode for cycle. The returned mode is of the transfer type specified by xfer_shift. If cycle is too slow for xfer_shift, 0xff is returned. If cycle is faster than the fastest known mode, the fasted mode is returned.
5. LOCKING ▲
6. RETURNS ▲
Matching xfer_mode, 0xff if no match found.
7. AUTHOR ▲
8. COPYRIGHT ▲