diff options
-rw-r--r-- | drivers/scsi/constants.c | 1 | ||||
-rw-r--r-- | include/scsi/scsi.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/constants.c b/drivers/scsi/constants.c index 63abb06c4edb..9129bcf117cf 100644 --- a/drivers/scsi/constants.c +++ b/drivers/scsi/constants.c | |||
@@ -141,6 +141,7 @@ static const struct value_name_pair serv_out12_arr[] = { | |||
141 | static const struct value_name_pair serv_in16_arr[] = { | 141 | static const struct value_name_pair serv_in16_arr[] = { |
142 | {0x10, "Read capacity(16)"}, | 142 | {0x10, "Read capacity(16)"}, |
143 | {0x11, "Read long(16)"}, | 143 | {0x11, "Read long(16)"}, |
144 | {0x12, "Get LBA status"}, | ||
144 | }; | 145 | }; |
145 | #define SERV_IN16_SZ ARRAY_SIZE(serv_in16_arr) | 146 | #define SERV_IN16_SZ ARRAY_SIZE(serv_in16_arr) |
146 | 147 | ||
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h index 34c46ab5c31b..8b4deca996ad 100644 --- a/include/scsi/scsi.h +++ b/include/scsi/scsi.h | |||
@@ -94,6 +94,7 @@ struct scsi_cmnd; | |||
94 | #define WRITE_LONG 0x3f | 94 | #define WRITE_LONG 0x3f |
95 | #define CHANGE_DEFINITION 0x40 | 95 | #define CHANGE_DEFINITION 0x40 |
96 | #define WRITE_SAME 0x41 | 96 | #define WRITE_SAME 0x41 |
97 | #define UNMAP 0x42 | ||
97 | #define READ_TOC 0x43 | 98 | #define READ_TOC 0x43 |
98 | #define LOG_SELECT 0x4c | 99 | #define LOG_SELECT 0x4c |
99 | #define LOG_SENSE 0x4d | 100 | #define LOG_SENSE 0x4d |
@@ -122,9 +123,11 @@ struct scsi_cmnd; | |||
122 | #define READ_16 0x88 | 123 | #define READ_16 0x88 |
123 | #define WRITE_16 0x8a | 124 | #define WRITE_16 0x8a |
124 | #define VERIFY_16 0x8f | 125 | #define VERIFY_16 0x8f |
126 | #define WRITE_SAME_16 0x93 | ||
125 | #define SERVICE_ACTION_IN 0x9e | 127 | #define SERVICE_ACTION_IN 0x9e |
126 | /* values for service action in */ | 128 | /* values for service action in */ |
127 | #define SAI_READ_CAPACITY_16 0x10 | 129 | #define SAI_READ_CAPACITY_16 0x10 |
130 | #define SAI_GET_LBA_STATUS 0x12 | ||
128 | /* values for maintenance in */ | 131 | /* values for maintenance in */ |
129 | #define MI_REPORT_TARGET_PGS 0x0a | 132 | #define MI_REPORT_TARGET_PGS 0x0a |
130 | /* values for maintenance out */ | 133 | /* values for maintenance out */ |
@@ -132,6 +135,7 @@ struct scsi_cmnd; | |||
132 | /* values for variable length command */ | 135 | /* values for variable length command */ |
133 | #define READ_32 0x09 | 136 | #define READ_32 0x09 |
134 | #define WRITE_32 0x0b | 137 | #define WRITE_32 0x0b |
138 | #define WRITE_SAME_32 0x0d | ||
135 | 139 | ||
136 | /* Values for T10/04-262r7 */ | 140 | /* Values for T10/04-262r7 */ |
137 | #define ATA_16 0x85 /* 16-byte pass-thru */ | 141 | #define ATA_16 0x85 /* 16-byte pass-thru */ |