patch-2.4.19 linux-2.4.19/drivers/block/cciss_cmd.h
Next file: linux-2.4.19/drivers/block/cciss_scsi.c
Previous file: linux-2.4.19/drivers/block/cciss.h
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/drivers/block/cciss_cmd.h
- Orig date:
Fri Nov 2 17:45:42 2001
diff -urN linux-2.4.18/drivers/block/cciss_cmd.h linux-2.4.19/drivers/block/cciss_cmd.h
@@ -89,6 +89,7 @@
//STRUCTURES
//###########################################################################
#define CISS_MAX_LUN 16
+#define CISS_MAX_PHYS_LUN 1024
// SCSI-3 Cmmands
#pragma pack(1)
@@ -101,6 +102,7 @@
} InquiryData_struct;
#define CISS_REPORT_LOG 0xc2 /* Report Logical LUNs */
+#define CISS_REPORT_PHYS 0xc3 /* Report Physical LUNs */
// Data returned
typedef struct _ReportLUNdata_struct
{
@@ -122,6 +124,12 @@
#define CCISS_READ 0x28 // Read(10)
#define CCISS_WRITE 0x2a // Write(10)
+// BMIC commands
+#define BMIC_READ 0x26
+#define BMIC_WRITE 0x27
+#define BMIC_CACHE_FLUSH 0xc2
+#define CCISS_CACHE_FLUSH 0x01 //C2 was already being used by CCISS
+
//Command List Structure
typedef union _SCSI3Addr_struct {
struct {
@@ -214,7 +222,9 @@
/* Command types */
#define CMD_RWREQ 0x00
#define CMD_IOCTL_PEND 0x01
-#define CMD_IOCTL_DONE 0x02
+#define CMD_SCSI 0x03
+#define CMD_MSG_DONE 0x04
+#define CMD_MSG_TIMEOUT 0x05
typedef struct _CommandList_struct {
CommandListHeader_struct Header;
@@ -229,6 +239,10 @@
struct _CommandList_struct *prev;
struct _CommandList_struct *next;
struct request * rq;
+ struct completion *waiting;
+#ifdef CONFIG_CISS_SCSI_TAPE
+ void * scsi_cmd;
+#endif
} CommandList_struct;
//Configuration Table Structure
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)