aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ata.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ata.h')
-rw-r--r--include/linux/ata.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/ata.h b/include/linux/ata.h
index c17e9404c88d..bc55471a4b2c 100644
--- a/include/linux/ata.h
+++ b/include/linux/ata.h
@@ -341,9 +341,9 @@ enum ata_tf_protocols {
341 ATA_PROT_PIO, /* PIO data xfer */ 341 ATA_PROT_PIO, /* PIO data xfer */
342 ATA_PROT_DMA, /* DMA */ 342 ATA_PROT_DMA, /* DMA */
343 ATA_PROT_NCQ, /* NCQ */ 343 ATA_PROT_NCQ, /* NCQ */
344 ATA_PROT_ATAPI, /* packet command, PIO data xfer*/ 344 ATAPI_PROT_NODATA, /* packet command, no data */
345 ATA_PROT_ATAPI_NODATA, /* packet command, no data */ 345 ATAPI_PROT_PIO, /* packet command, PIO data xfer*/
346 ATA_PROT_ATAPI_DMA, /* packet command with special DMA sauce */ 346 ATAPI_PROT_DMA, /* packet command with special DMA sauce */
347}; 347};
348 348
349enum ata_ioctls { 349enum ata_ioctls {
@@ -395,11 +395,11 @@ static inline unsigned int ata_prot_flags(u8 prot)
395 return ATA_PROT_FLAG_DMA; 395 return ATA_PROT_FLAG_DMA;
396 case ATA_PROT_NCQ: 396 case ATA_PROT_NCQ:
397 return ATA_PROT_FLAG_DMA | ATA_PROT_FLAG_NCQ; 397 return ATA_PROT_FLAG_DMA | ATA_PROT_FLAG_NCQ;
398 case ATA_PROT_ATAPI_NODATA: 398 case ATAPI_PROT_NODATA:
399 return ATA_PROT_FLAG_ATAPI; 399 return ATA_PROT_FLAG_ATAPI;
400 case ATA_PROT_ATAPI: 400 case ATAPI_PROT_PIO:
401 return ATA_PROT_FLAG_ATAPI | ATA_PROT_FLAG_PIO; 401 return ATA_PROT_FLAG_ATAPI | ATA_PROT_FLAG_PIO;
402 case ATA_PROT_ATAPI_DMA: 402 case ATAPI_PROT_DMA:
403 return ATA_PROT_FLAG_ATAPI | ATA_PROT_FLAG_DMA; 403 return ATA_PROT_FLAG_ATAPI | ATA_PROT_FLAG_DMA;
404 } 404 }
405 return 0; 405 return 0;