blob: 0de724acf387c99493cbf71b4f1ce11af46281da [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPICCISS_IOCTLH
8#define _UAPICCISS_IOCTLH
9#include <linux/types.h>
10#include <linux/ioctl.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070011#include <linux/cciss_defs.h>
12#define CCISS_IOC_MAGIC 'B'
Tao Baod7db5942015-01-28 10:07:51 -080013typedef struct _cciss_pci_info_struct {
14 unsigned char bus;
Tao Baod7db5942015-01-28 10:07:51 -080015 unsigned char dev_fn;
16 unsigned short domain;
17 __u32 board_id;
Ben Cheng655a7c02013-10-16 16:09:24 -070018} cciss_pci_info_struct;
Tao Baod7db5942015-01-28 10:07:51 -080019typedef struct _cciss_coalint_struct {
20 __u32 delay;
21 __u32 count;
Ben Cheng655a7c02013-10-16 16:09:24 -070022} cciss_coalint_struct;
23typedef char NodeName_type[16];
24typedef __u32 Heartbeat_type;
Ben Cheng655a7c02013-10-16 16:09:24 -070025#define CISS_PARSCSIU2 0x0001
26#define CISS_PARCSCIU3 0x0002
27#define CISS_FIBRE1G 0x0100
28#define CISS_FIBRE2G 0x0200
Ben Cheng655a7c02013-10-16 16:09:24 -070029typedef __u32 BusTypes_type;
30typedef char FirmwareVer_type[4];
31typedef __u32 DriverVer_type;
32#define MAX_KMALLOC_SIZE 128000
Ben Cheng655a7c02013-10-16 16:09:24 -070033typedef struct _IOCTL_Command_struct {
Tao Baod7db5942015-01-28 10:07:51 -080034 LUNAddr_struct LUN_info;
Tao Baod7db5942015-01-28 10:07:51 -080035 RequestBlock_struct Request;
36 ErrorInfo_struct error_info;
37 WORD buf_size;
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070038 BYTE * buf;
Ben Cheng655a7c02013-10-16 16:09:24 -070039} IOCTL_Command_struct;
40typedef struct _BIG_IOCTL_Command_struct {
Tao Baod7db5942015-01-28 10:07:51 -080041 LUNAddr_struct LUN_info;
42 RequestBlock_struct Request;
Tao Baod7db5942015-01-28 10:07:51 -080043 ErrorInfo_struct error_info;
44 DWORD malloc_size;
45 DWORD buf_size;
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070046 BYTE * buf;
Ben Cheng655a7c02013-10-16 16:09:24 -070047} BIG_IOCTL_Command_struct;
Tao Baod7db5942015-01-28 10:07:51 -080048typedef struct _LogvolInfo_struct {
49 __u32 LunID;
50 int num_opens;
Tao Baod7db5942015-01-28 10:07:51 -080051 int num_parts;
Ben Cheng655a7c02013-10-16 16:09:24 -070052} LogvolInfo_struct;
Ben Cheng655a7c02013-10-16 16:09:24 -070053#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)
Ben Cheng655a7c02013-10-16 16:09:24 -070057#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)
Ben Cheng655a7c02013-10-16 16:09:24 -070061#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)
Ben Cheng655a7c02013-10-16 16:09:24 -070065#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)
Ben Cheng655a7c02013-10-16 16:09:24 -070069#define CCISS_BIG_PASSTHRU _IOWR(CCISS_IOC_MAGIC, 18, BIG_IOCTL_Command_struct)
70#endif