diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-03-02 04:38:36 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2003-03-02 04:38:36 -0800 |
| commit | 2a6975350e07cb487932b74defeb07e0ee3e43e4 (patch) | |
| tree | bc96ba74d10a1450e4169cafc9f469f8da2a74c3 /include/linux/cciss_ioctl.h | |
| parent | ce7fe909ae348cbcf14fd83480572d283a226ad4 (diff) | |
[PATCH] cciss: add passthrough ioctl
Patch from Stephen Cameron <steve.cameron@hp.com>
Add new big passthrough ioctl to allow large buffers. Used by e.g. online
array controller firmware flash utility.
Diffstat (limited to 'include/linux/cciss_ioctl.h')
| -rw-r--r-- | include/linux/cciss_ioctl.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/cciss_ioctl.h b/include/linux/cciss_ioctl.h index e706b9406ef7..a49828277d3c 100644 --- a/include/linux/cciss_ioctl.h +++ b/include/linux/cciss_ioctl.h @@ -33,6 +33,18 @@ typedef __u32 BusTypes_type; typedef char FirmwareVer_type[4]; typedef __u32 DriverVer_type; +#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; + #ifndef CCISS_CMD_H // This defines are duplicated in cciss_cmd.h in the driver directory @@ -196,5 +208,6 @@ typedef struct _LogvolInfo_struct{ #define CCISS_REGNEWD _IO(CCISS_IOC_MAGIC, 14) #define CCISS_GETLUNINFO _IOR(CCISS_IOC_MAGIC, 17, LogvolInfo_struct) +#define CCISS_BIG_PASSTHRU _IOWR(CCISS_IOC_MAGIC, 18, BIG_IOCTL_Command_struct) #endif |
