1ATA_TIMING_CYCLE2MOD(9)         libata Library         ATA_TIMING_CYCLE2MOD(9)
2
3
4

NAME

6       ata_timing_cycle2mode - find xfer mode for the specified cycle duration
7

SYNOPSIS

9       u8 ata_timing_cycle2mode(unsigned int xfer_shift, int cycle);
10

ARGUMENTS

12       xfer_shift
13           ATA_SHIFT_* value for transfer type to examine.
14
15       cycle
16           cycle duration in ns
17

DESCRIPTION

19       Return matching xfer mode for cycle. The returned mode is of the
20       transfer type specified by xfer_shift. If cycle is too slow for
21       xfer_shift, 0xff is returned. If cycle is faster than the fastest known
22       mode, the fasted mode is returned.
23

LOCKING

25       None.
26

RETURNS

28       Matching xfer_mode, 0xff if no match found.
29

AUTHOR

31       Jeff Garzik
32           Author.
33
35Kernel Hackers Manual 2.6.       November 2011         ATA_TIMING_CYCLE2MOD(9)
Impressum