diff options
Diffstat (limited to 'include/linux/ata.h')
| -rw-r--r-- | include/linux/ata.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/include/linux/ata.h b/include/linux/ata.h index fed36418dd1c..d2992bfa1706 100644 --- a/include/linux/ata.h +++ b/include/linux/ata.h | |||
| @@ -45,6 +45,7 @@ enum { | |||
| 45 | ATA_SECT_SIZE = 512, | 45 | ATA_SECT_SIZE = 512, |
| 46 | ATA_MAX_SECTORS_128 = 128, | 46 | ATA_MAX_SECTORS_128 = 128, |
| 47 | ATA_MAX_SECTORS = 256, | 47 | ATA_MAX_SECTORS = 256, |
| 48 | ATA_MAX_SECTORS_1024 = 1024, | ||
| 48 | ATA_MAX_SECTORS_LBA48 = 65535,/* TODO: 65536? */ | 49 | ATA_MAX_SECTORS_LBA48 = 65535,/* TODO: 65536? */ |
| 49 | ATA_MAX_SECTORS_TAPE = 65535, | 50 | ATA_MAX_SECTORS_TAPE = 65535, |
| 50 | 51 | ||
| @@ -384,8 +385,6 @@ enum { | |||
| 384 | SATA_SSP = 0x06, /* Software Settings Preservation */ | 385 | SATA_SSP = 0x06, /* Software Settings Preservation */ |
| 385 | SATA_DEVSLP = 0x09, /* Device Sleep */ | 386 | SATA_DEVSLP = 0x09, /* Device Sleep */ |
| 386 | 387 | ||
| 387 | SETFEATURE_SENSE_DATA = 0xC3, /* Sense Data Reporting feature */ | ||
| 388 | |||
| 389 | /* feature values for SET_MAX */ | 388 | /* feature values for SET_MAX */ |
| 390 | ATA_SET_MAX_ADDR = 0x00, | 389 | ATA_SET_MAX_ADDR = 0x00, |
| 391 | ATA_SET_MAX_PASSWD = 0x01, | 390 | ATA_SET_MAX_PASSWD = 0x01, |
| @@ -529,8 +528,6 @@ struct ata_bmdma_prd { | |||
| 529 | #define ata_id_cdb_intr(id) (((id)[ATA_ID_CONFIG] & 0x60) == 0x20) | 528 | #define ata_id_cdb_intr(id) (((id)[ATA_ID_CONFIG] & 0x60) == 0x20) |
| 530 | #define ata_id_has_da(id) ((id)[ATA_ID_SATA_CAPABILITY_2] & (1 << 4)) | 529 | #define ata_id_has_da(id) ((id)[ATA_ID_SATA_CAPABILITY_2] & (1 << 4)) |
| 531 | #define ata_id_has_devslp(id) ((id)[ATA_ID_FEATURE_SUPP] & (1 << 8)) | 530 | #define ata_id_has_devslp(id) ((id)[ATA_ID_FEATURE_SUPP] & (1 << 8)) |
| 532 | #define ata_id_has_ncq_autosense(id) \ | ||
| 533 | ((id)[ATA_ID_FEATURE_SUPP] & (1 << 7)) | ||
| 534 | 531 | ||
| 535 | static inline bool ata_id_has_hipm(const u16 *id) | 532 | static inline bool ata_id_has_hipm(const u16 *id) |
| 536 | { | 533 | { |
| @@ -719,20 +716,6 @@ static inline bool ata_id_has_read_log_dma_ext(const u16 *id) | |||
| 719 | return false; | 716 | return false; |
| 720 | } | 717 | } |
| 721 | 718 | ||
| 722 | static inline bool ata_id_has_sense_reporting(const u16 *id) | ||
| 723 | { | ||
| 724 | if (!(id[ATA_ID_CFS_ENABLE_2] & (1 << 15))) | ||
| 725 | return false; | ||
| 726 | return id[ATA_ID_COMMAND_SET_3] & (1 << 6); | ||
| 727 | } | ||
| 728 | |||
| 729 | static inline bool ata_id_sense_reporting_enabled(const u16 *id) | ||
| 730 | { | ||
| 731 | if (!(id[ATA_ID_CFS_ENABLE_2] & (1 << 15))) | ||
| 732 | return false; | ||
| 733 | return id[ATA_ID_COMMAND_SET_4] & (1 << 6); | ||
| 734 | } | ||
| 735 | |||
| 736 | /** | 719 | /** |
| 737 | * ata_id_major_version - get ATA level of drive | 720 | * ata_id_major_version - get ATA level of drive |
| 738 | * @id: Identify data | 721 | * @id: Identify data |
