From 263924d7cd3f91ccdee34bc79216dc520aa6e046 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Wed, 24 Mar 2004 15:44:08 -0500 Subject: [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). --- include/linux/ata.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/linux/ata.h') 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, -- cgit v1.2.3