diff options
Diffstat (limited to 'include/linux/ata.h')
| -rw-r--r-- | include/linux/ata.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/ata.h b/include/linux/ata.h index 128dc7ad4901..61535e72834d 100644 --- a/include/linux/ata.h +++ b/include/linux/ata.h | |||
| @@ -43,6 +43,7 @@ enum { | |||
| 43 | ATA_MAX_SECTORS_128 = 128, | 43 | ATA_MAX_SECTORS_128 = 128, |
| 44 | ATA_MAX_SECTORS = 256, | 44 | ATA_MAX_SECTORS = 256, |
| 45 | ATA_MAX_SECTORS_LBA48 = 65535,/* TODO: 65536? */ | 45 | ATA_MAX_SECTORS_LBA48 = 65535,/* TODO: 65536? */ |
| 46 | ATA_MAX_SECTORS_TAPE = 65535, | ||
| 46 | 47 | ||
| 47 | ATA_ID_WORDS = 256, | 48 | ATA_ID_WORDS = 256, |
| 48 | ATA_ID_SERNO = 10, | 49 | ATA_ID_SERNO = 10, |
| @@ -544,6 +545,11 @@ static inline int atapi_cdb_len(const u16 *dev_id) | |||
| 544 | } | 545 | } |
| 545 | } | 546 | } |
| 546 | 547 | ||
| 548 | static inline int atapi_command_packet_set(const u16 *dev_id) | ||
| 549 | { | ||
| 550 | return (dev_id[0] >> 8) & 0x1f; | ||
| 551 | } | ||
| 552 | |||
| 547 | static inline int is_atapi_taskfile(const struct ata_taskfile *tf) | 553 | static inline int is_atapi_taskfile(const struct ata_taskfile *tf) |
| 548 | { | 554 | { |
| 549 | return (tf->protocol == ATA_PROT_ATAPI) || | 555 | return (tf->protocol == ATA_PROT_ATAPI) || |
