1. NAME

ata_to_sense_error - convert ATA error to SCSI error

2. SYNOPSIS

void ata_to_sense_error(unsigned  id , u8  drv_stat , u8  drv_err , u8 *  sk , u8 *  asc , u8 *  ascq , int  verbose );

3. ARGUMENTS

id
    ATA device number

drv_stat
    value contained in ATA status register

drv_err
    value contained in ATA error register

sk
    the sense key weAqll fill out

asc
    the additional sense code weAqll fill out

ascq
    the additional sense code qualifier weAqll fill out

verbose
    be verbose

4. DESCRIPTION

Converts an ATA error into a SCSI error. Fill out pointers to SK, ASC, and ASCQ bytes for later use in fixed or descriptor format sense blocks.

5. LOCKING

spin_lock_irqsave(host lock)

6. AUTHOR

Jeff Garzik
    Author.

7. COPYRIGHT