1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPICCISS_IOCTLH
8 #define _UAPICCISS_IOCTLH
9 #include <linux/types.h>
10 #include <linux/ioctl.h>
11 #include <linux/cciss_defs.h>
12 #define CCISS_IOC_MAGIC 'B'
13 typedef struct _cciss_pci_info_struct {
14   unsigned char bus;
15   unsigned char dev_fn;
16   unsigned short domain;
17   __u32 board_id;
18 } cciss_pci_info_struct;
19 typedef struct _cciss_coalint_struct {
20   __u32 delay;
21   __u32 count;
22 } cciss_coalint_struct;
23 typedef char NodeName_type[16];
24 typedef __u32 Heartbeat_type;
25 #define CISS_PARSCSIU2 0x0001
26 #define CISS_PARCSCIU3 0x0002
27 #define CISS_FIBRE1G 0x0100
28 #define CISS_FIBRE2G 0x0200
29 typedef __u32 BusTypes_type;
30 typedef char FirmwareVer_type[4];
31 typedef __u32 DriverVer_type;
32 #define MAX_KMALLOC_SIZE 128000
33 typedef struct _IOCTL_Command_struct {
34   LUNAddr_struct LUN_info;
35   RequestBlock_struct Request;
36   ErrorInfo_struct error_info;
37   WORD buf_size;
38   BYTE  * buf;
39 } IOCTL_Command_struct;
40 typedef struct _BIG_IOCTL_Command_struct {
41   LUNAddr_struct LUN_info;
42   RequestBlock_struct Request;
43   ErrorInfo_struct error_info;
44   DWORD malloc_size;
45   DWORD buf_size;
46   BYTE  * buf;
47 } BIG_IOCTL_Command_struct;
48 typedef struct _LogvolInfo_struct {
49   __u32 LunID;
50   int num_opens;
51   int num_parts;
52 } LogvolInfo_struct;
53 #define CCISS_GETPCIINFO _IOR(CCISS_IOC_MAGIC, 1, cciss_pci_info_struct)
54 #define CCISS_GETINTINFO _IOR(CCISS_IOC_MAGIC, 2, cciss_coalint_struct)
55 #define CCISS_SETINTINFO _IOW(CCISS_IOC_MAGIC, 3, cciss_coalint_struct)
56 #define CCISS_GETNODENAME _IOR(CCISS_IOC_MAGIC, 4, NodeName_type)
57 #define CCISS_SETNODENAME _IOW(CCISS_IOC_MAGIC, 5, NodeName_type)
58 #define CCISS_GETHEARTBEAT _IOR(CCISS_IOC_MAGIC, 6, Heartbeat_type)
59 #define CCISS_GETBUSTYPES _IOR(CCISS_IOC_MAGIC, 7, BusTypes_type)
60 #define CCISS_GETFIRMVER _IOR(CCISS_IOC_MAGIC, 8, FirmwareVer_type)
61 #define CCISS_GETDRIVVER _IOR(CCISS_IOC_MAGIC, 9, DriverVer_type)
62 #define CCISS_REVALIDVOLS _IO(CCISS_IOC_MAGIC, 10)
63 #define CCISS_PASSTHRU _IOWR(CCISS_IOC_MAGIC, 11, IOCTL_Command_struct)
64 #define CCISS_DEREGDISK _IO(CCISS_IOC_MAGIC, 12)
65 #define CCISS_REGNEWDISK _IOW(CCISS_IOC_MAGIC, 13, int)
66 #define CCISS_REGNEWD _IO(CCISS_IOC_MAGIC, 14)
67 #define CCISS_RESCANDISK _IO(CCISS_IOC_MAGIC, 16)
68 #define CCISS_GETLUNINFO _IOR(CCISS_IOC_MAGIC, 17, LogvolInfo_struct)
69 #define CCISS_BIG_PASSTHRU _IOWR(CCISS_IOC_MAGIC, 18, BIG_IOCTL_Command_struct)
70 #endif
71