[libata] ATA passthru (arbitrary ATA command execution)

Authors:
Brett Russ <russb@emc.com>
John W. Linville <linville@tuxdriver.com>
Andy Warner <andyw@pobox.com>
This commit is contained in:
Jeff Garzik 2005-05-12 15:45:22 -04:00
parent 88d7bd8cb9
commit b095518ef5
3 changed files with 556 additions and 109 deletions

View file

@ -113,6 +113,9 @@ extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE];
/* values for service action in */
#define SAI_READ_CAPACITY_16 0x10
/* Values for T10/04-262r7 */
#define ATA_16 0x85 /* 16-byte pass-thru */
#define ATA_12 0xa1 /* 12-byte pass-thru */
/*
* SCSI Architecture Model (SAM) Status codes. Taken from SAM-3 draft