Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef CCISS_IOCTLH
0003 #define CCISS_IOCTLH
0004 
0005 #include <uapi/linux/cciss_ioctl.h>
0006 
0007 #ifdef CONFIG_COMPAT
0008 
0009 /* 32 bit compatible ioctl structs */
0010 typedef struct _IOCTL32_Command_struct {
0011   LUNAddr_struct       LUN_info;
0012   RequestBlock_struct      Request;
0013   ErrorInfo_struct         error_info;
0014   WORD             buf_size;  /* size in bytes of the buf */
0015   __u32            buf; /* 32 bit pointer to data buffer */
0016 } IOCTL32_Command_struct;
0017 
0018 typedef struct _BIG_IOCTL32_Command_struct {
0019   LUNAddr_struct       LUN_info;
0020   RequestBlock_struct      Request;
0021   ErrorInfo_struct         error_info;
0022   DWORD            malloc_size; /* < MAX_KMALLOC_SIZE in cciss.c */
0023   DWORD            buf_size;    /* size in bytes of the buf */
0024                         /* < malloc_size * MAXSGENTRIES */
0025   __u32         buf;    /* 32 bit pointer to data buffer */
0026 } BIG_IOCTL32_Command_struct;
0027 
0028 #define CCISS_PASSTHRU32   _IOWR(CCISS_IOC_MAGIC, 11, IOCTL32_Command_struct)
0029 #define CCISS_BIG_PASSTHRU32 _IOWR(CCISS_IOC_MAGIC, 18, BIG_IOCTL32_Command_struct)
0030 
0031 #endif /* CONFIG_COMPAT */
0032 #endif