move renamining defintions from drivers/scsi/scsi.h to include/scsi
PATCH 1/1 move renamining defintions from drivers/scsi/scsi.h to include/scsi
Simple move for a bunch of defintions so driver can finally stop doing the -Idriver/scsi mess. I'd like to get it out ASAP because the distros are going to branch their first 2.6 releases soon and the vendors will want to support those basically forever.
drivers/scsi/scsi.h +0 -40
@@ -34,51 +34,11 @@#define FALSE 0#endif -#define MAX_SCSI_DEVICE_CODE 14 -extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE ]; -#ifdef DEBUG #define SCSI_TIMEOUT (5*HZ)#else #define SCSI_TIMEOUT (2*HZ)#endif - -/* -* Use these to separate status msg and our bytes -* -* These are set by: -* -* status byte = set from target device -* msg_byte = return status from host adapter itself. -* host_byte = set by low-level driver to indicate status. -* driver_byte = set by mid-level. -*/ -#define status_byte (result) (((result) >> 1) & 0x1f) -#define msg_byte (result) (((result) >> 8) & 0xff) -#define host_byte (result) (((result) >> 16) & 0xff) -#define driver_byte (result) (((result) >> 24) & 0xff) -#define suggestion (result) (driver_byte(result) & SUGGEST_MASK) - -#define sense_class (sense) (((sense) >> 4) & 0x7) -#define sense_error (sense) ((sense) & 0xf) -#define sense_valid (sense) ((sense) & 0x80); - - -#define IDENTIFY_BASE 0x80 -#define IDENTIFY (can_disconnect, lun) (IDENTIFY_BASE |\ - ((can_disconnect) ? 0x40 : 0) |\ - ((lun) & 0x07)) - -/* -* SCSI command sets -*/ - -#define SCSI_UNKNOWN 0 -#define SCSI_1 1 -#define SCSI_1_CCS 2 -#define SCSI_2 3 -#define SCSI_3 4 -struct Scsi_Host ;struct scsi_cmnd ;
===== include/scsi/scsi.h 1.16 vs edited =====
include/scsi/scsi.h +44 -1
63 lines not on this page · raw message