patch-2.4.21 linux-2.4.21/include/linux/cciss_ioctl.h

Next file: linux-2.4.21/include/linux/com20020.h
Previous file: linux-2.4.21/include/linux/blkdev.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/include/linux/cciss_ioctl.h linux-2.4.21/include/linux/cciss_ioctl.h
@@ -73,10 +73,10 @@
 #define TYPE_MSG				0x01
 
 // Type defs used in the following structs
-#define BYTE __u8
-#define WORD __u16
-#define HWORD __u16
-#define DWORD __u32
+typedef __u8 BYTE;
+typedef __u16 WORD; 
+typedef __u16 HWORD; 
+typedef __u32 DWORD; 
 
 #define CISS_MAX_LUN	16	
 
@@ -169,6 +169,18 @@
   BYTE			   *buf;
 } IOCTL_Command_struct;
 
+#define MAX_KMALLOC_SIZE 128000
+
+typedef struct _BIG_IOCTL_Command_struct {
+  LUNAddr_struct	   LUN_info;
+  RequestBlock_struct      Request;
+  ErrorInfo_struct  	   error_info; 
+  DWORD			   malloc_size; /* < MAX_KMALLOC_SIZE in cciss.c */
+  DWORD			   buf_size;    /* size in bytes of the buf */
+  				        /* < malloc_size * MAXSGENTRIES */
+  BYTE			   *buf;
+} BIG_IOCTL_Command_struct;
+
 typedef struct _LogvolInfo_struct{
    __u32	LunID;
    int		num_opens;  /* number of opens on the logical volume */
@@ -189,7 +201,11 @@
 #define CCISS_GETDRIVVER   _IOR(CCISS_IOC_MAGIC, 9, DriverVer_type)
 #define CCISS_REVALIDVOLS  _IO(CCISS_IOC_MAGIC, 10) /* obsolete */
 #define CCISS_PASSTHRU	   _IOWR(CCISS_IOC_MAGIC, 11, IOCTL_Command_struct)
+#define CCISS_DEREGDISK	   _IO(CCISS_IOC_MAGIC, 12)
+#define CCISS_REGNEWDISK  _IOW(CCISS_IOC_MAGIC, 13, __u64)
+#define CCISS_REGNEWD	   _IO(CCISS_IOC_MAGIC, 14)
+#define CCISS_RESCANDISK   _IO(CCISS_IOC_MAGIC, 16)
 #define CCISS_GETLUNINFO  _IOR(CCISS_IOC_MAGIC, 17, LogvolInfo_struct)
-
+#define CCISS_BIG_PASSTHRU _IOWR(CCISS_IOC_MAGIC, 18, BIG_IOCTL_Command_struct)
 
 #endif  

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)