drivers/char/mem.c: avoid OOM lockup during large reads from /dev/zero
[safe/jmp/linux-2.6] / drivers / staging / rspiusb / rspiusb.h
1 #ifndef __RSPIUSB_H
2 #define __RSPIUSB_H
3
4 #define PIUSB_MAGIC             'm'
5 #define PIUSB_IOCTL_BASE        192
6 #define PIUSB_GETVNDCMD         _IOR(PIUSB_MAGIC, PIUSB_IOCTL_BASE + 1, struct ioctl_struct)
7 #define PIUSB_SETVNDCMD         _IOW(PIUSB_MAGIC, PIUSB_IOCTL_BASE + 2, struct ioctl_struct)
8 #define PIUSB_WRITEPIPE         _IOW(PIUSB_MAGIC, PIUSB_IOCTL_BASE + 3, struct ioctl_struct)
9 #define PIUSB_READPIPE          _IOR(PIUSB_MAGIC, PIUSB_IOCTL_BASE + 4, struct ioctl_struct)
10 #define PIUSB_SETFRAMESIZE      _IOW(PIUSB_MAGIC, PIUSB_IOCTL_BASE + 5, struct ioctl_struct)
11 #define PIUSB_WHATCAMERA        _IO(PIUSB_MAGIC,  PIUSB_IOCTL_BASE + 6)
12 #define PIUSB_USERBUFFER        _IOW(PIUSB_MAGIC, PIUSB_IOCTL_BASE + 7, struct ioctl_struct)
13 #define PIUSB_ISHIGHSPEED       _IO(PIUSB_MAGIC,  PIUSB_IOCTL_BASE + 8)
14 #define PIUSB_UNMAP_USERBUFFER  _IOW(PIUSB_MAGIC, PIUSB_IOCTL_BASE + 9, struct ioctl_struct)
15
16 struct ioctl_struct {
17         unsigned char cmd;
18         unsigned long numbytes;
19         unsigned char dir;      //1=out;0=in
20         int endpoint;
21         int numFrames;
22         unsigned char *pData;
23 };
24
25 #endif