--- linux/kernel/blk_drv/scsi/scsi.h 2018/04/24 18:08:13 1.1.1.1 +++ linux/kernel/blk_drv/scsi/scsi.h 2018/04/24 18:13:29 1.1.1.2 @@ -9,7 +9,7 @@ #ifndef _SCSI_H #define _SCSI_H /* - $Header: /var/lib/cvsd/linux/linux/kernel/blk_drv/scsi/scsi.h,v 1.1.1.1 2018/04/24 18:08:13 root Exp $ + $Header: /var/lib/cvsd/linux/linux/kernel/blk_drv/scsi/scsi.h,v 1.1.1.2 2018/04/24 18:13:29 root Exp $ For documentation on the OPCODES, MESSAGES, and SENSE values, please consult the SCSI standard. @@ -71,7 +71,12 @@ #define LINKED_CMD_COMPLETE 0x0a #define LINKED_FLG_CMD_COMPLETE 0x0b #define BUS_DEVICE_RESET 0x0c -#define IDENTIFY 0x80 +#define IDENTIFY_BASE 0x80 +#define IDENTIFY(can_disconnect, lun) (IDENTIFY_BASE |\ + ((can_disconnect) ? 0x40 : 0) |\ + ((lun) & 0x07)) + + /* Status codes */ @@ -129,6 +134,10 @@ Reset by somebody. */ #define DID_RESET 0x08 +/* + Got an interrupt we weren't expecting. +*/ +#define DID_BAD_INTR 0x09 /* Driver status @@ -226,7 +235,7 @@ typedef struct scsi_device { These are the SCSI devices available on the system. */ -#define MAX_SCSI_DEVICE 2 +#define MAX_SCSI_DEVICE 4 extern int NR_SCSI_DEVICES; extern Scsi_Device scsi_devices[MAX_SCSI_DEVICE]; /* @@ -253,5 +262,5 @@ extern void scsi_do_cmd (int host, unsi void *buffer, unsigned bufflen, void (*done)(int,int), int timeout, unsigned char *sense_buffer, int retries); -int scsi_reset (int host); +extern int scsi_reset (int host); #endif