diff options
author | Michal Nazarewicz <mina86@mina86.com> | 2010-10-07 08:46:15 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:22:07 -0400 |
commit | 0a6a717ceff67f887b16783ce891f5dcf846f1fc (patch) | |
tree | 0c8ed32e970e9cbbb4cc64981cba9ae2694f6377 /include/scsi/scsi.h | |
parent | 0a2b8a0d1101179fdebc974a7c72b514aede9d9d (diff) |
USB: gadget: storage: reuse definitions from scsi.h header file
This commit changes storage_common.h, file_storage.c and
f_mass_storage.c to use definitions of SCSI commands from
scsi/scsi.h file instead of redefining the commands in
storage_common.c.
scsi/scsi.h header file was missing READ_FORMAT_CAPACITIES and
READ_HEADER so this commit also add those to the header.
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/scsi/scsi.h')
-rw-r--r-- | include/scsi/scsi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h index 8fcb6e0e9e72..1418e9010f3e 100644 --- a/include/scsi/scsi.h +++ b/include/scsi/scsi.h | |||
@@ -67,6 +67,7 @@ struct scsi_cmnd; | |||
67 | #define SEND_DIAGNOSTIC 0x1d | 67 | #define SEND_DIAGNOSTIC 0x1d |
68 | #define ALLOW_MEDIUM_REMOVAL 0x1e | 68 | #define ALLOW_MEDIUM_REMOVAL 0x1e |
69 | 69 | ||
70 | #define READ_FORMAT_CAPACITIES 0x23 | ||
70 | #define SET_WINDOW 0x24 | 71 | #define SET_WINDOW 0x24 |
71 | #define READ_CAPACITY 0x25 | 72 | #define READ_CAPACITY 0x25 |
72 | #define READ_10 0x28 | 73 | #define READ_10 0x28 |
@@ -96,6 +97,7 @@ struct scsi_cmnd; | |||
96 | #define WRITE_SAME 0x41 | 97 | #define WRITE_SAME 0x41 |
97 | #define UNMAP 0x42 | 98 | #define UNMAP 0x42 |
98 | #define READ_TOC 0x43 | 99 | #define READ_TOC 0x43 |
100 | #define READ_HEADER 0x44 | ||
99 | #define LOG_SELECT 0x4c | 101 | #define LOG_SELECT 0x4c |
100 | #define LOG_SENSE 0x4d | 102 | #define LOG_SENSE 0x4d |
101 | #define XDWRITEREAD_10 0x53 | 103 | #define XDWRITEREAD_10 0x53 |