1. NAME

ata_xfer_mask2mode - Find matching XFER_* for the given xfer_mask

2. SYNOPSIS

u8 ata_xfer_mask2mode(unsigned long  xfer_mask );

3. ARGUMENTS

xfer_mask
    xfer_mask of interest

4. DESCRIPTION

Return matching XFER_* value for xfer_mask. Only the highest bit of xfer_mask is considered.

5. LOCKING

None.

6. RETURNS

Matching XFER_* value, 0xff if no match found.

7. AUTHOR

Jeff Garzik
    Author.

8. COPYRIGHT