Commit 63508ee9 authored by Linus Torvalds's avatar Linus Torvalds

Move SCSI command size information into <scsi/scsi.h>, where

the commands themselves already are.
parent e06c9771
...@@ -164,8 +164,6 @@ extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE]; ...@@ -164,8 +164,6 @@ extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE];
#define SCSI_OWNER_BH_HANDLER 0x104 #define SCSI_OWNER_BH_HANDLER 0x104
#define SCSI_OWNER_NOBODY 0x105 #define SCSI_OWNER_NOBODY 0x105
#define COMMAND_SIZE(opcode) scsi_command_size[((opcode) >> 5) & 7]
#define IDENTIFY_BASE 0x80 #define IDENTIFY_BASE 0x80
#define IDENTIFY(can_disconnect, lun) (IDENTIFY_BASE |\ #define IDENTIFY(can_disconnect, lun) (IDENTIFY_BASE |\
((can_disconnect) ? 0x40 : 0) |\ ((can_disconnect) ? 0x40 : 0) |\
...@@ -415,7 +413,6 @@ extern unsigned int scsi_dma_free_sectors; /* How much room do we have left */ ...@@ -415,7 +413,6 @@ extern unsigned int scsi_dma_free_sectors; /* How much room do we have left */
extern unsigned int scsi_need_isa_buffer; /* True if some devices need indirection extern unsigned int scsi_need_isa_buffer; /* True if some devices need indirection
* buffers */ * buffers */
extern volatile int in_scan_scsis; extern volatile int in_scan_scsis;
extern const unsigned char scsi_command_size[8];
extern struct bus_type scsi_driverfs_bus_type; extern struct bus_type scsi_driverfs_bus_type;
......
...@@ -14,6 +14,13 @@ ...@@ -14,6 +14,13 @@
*/ */
/*
* SCSI command lengths
*/
extern const unsigned char scsi_command_size[8];
#define COMMAND_SIZE(opcode) scsi_command_size[((opcode) >> 5) & 7]
/* /*
* SCSI opcodes * SCSI opcodes
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment