diff options
| author | Jeff Garzik <jgarzik@redhat.com> | 2004-03-24 15:44:08 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@redhat.com> | 2004-03-24 15:44:08 -0500 |
| commit | 263924d7cd3f91ccdee34bc79216dc520aa6e046 (patch) | |
| tree | 9f45b01d08c0df9a415a99e0733ff8b7fc465ac2 /include/linux/ata.h | |
| parent | 3b64bb0c7a16402f8614754bf3424c579cd0e1a6 (diff) | |
[libata] consolidate data transfer mode handling
The various ways you can send data to/from your ATA device is
known as the ATA taskfile protocol: PIO single sector, PIO
multiple sector, DMA, DMA TCQ, DMA NCQ, ...
Prior to this change, the data direction (read/write) was encoded
implicitly into the ATA_PROT_xxx value itself. This increased
complexity in some areas, and inhibited flexibility in others.
This change separates data direction from taskfile protocol, and also
moves the data direction flag (ATA_QCFLAG_WRITE) down to a lower
level (ATA_TFLAG_WRITE).
Diffstat (limited to 'include/linux/ata.h')
| -rw-r--r-- | include/linux/ata.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/ata.h b/include/linux/ata.h index 968d54214248..2858d0c02c24 100644 --- a/include/linux/ata.h +++ b/include/linux/ata.h @@ -105,10 +105,8 @@ enum { /* ATA taskfile protocols */ ATA_PROT_UNKNOWN = 0, ATA_PROT_NODATA = 1, - ATA_PROT_PIO_READ = 2, - ATA_PROT_PIO_WRITE = 3, - ATA_PROT_DMA_READ = 4, - ATA_PROT_DMA_WRITE = 5, + ATA_PROT_PIO = 2, + ATA_PROT_DMA = 4, ATA_PROT_ATAPI = 6, ATA_PROT_ATAPI_DMA = 7, |
