perf report: Fix help text typo
[linux-2.6/verdex.git] / drivers / staging / rspiusb / rspiusb.h
blob3fc1db7b1c4c329e301dfd31df01e1b74ab34b3e
1 #ifndef __RSPIUSB_H
2 #define __RSPIUSB_H
4 #define PIUSB_MAGIC 'm'
5 #define PIUSB_IOCTL_BASE 192
7 #define PIUSB_IOR(offset) \
8 _IOR(PIUSB_MAGIC, PIUSB_IOCTL_BASE + offset, struct ioctl_struct)
9 #define PIUSB_IOW(offset) \
10 _IOW(PIUSB_MAGIC, PIUSB_IOCTL_BASE + offset, struct ioctl_struct)
11 #define PIUSB_IO(offset) \
12 _IO(PIUSB_MAGIC, PIUSB_IOCTL_BASE + offset)
14 #define PIUSB_GETVNDCMD PIUSB_IOR(1)
15 #define PIUSB_SETVNDCMD PIUSB_IOW(2)
16 #define PIUSB_WRITEPIPE PIUSB_IOW(3)
17 #define PIUSB_READPIPE PIUSB_IOR(4)
18 #define PIUSB_SETFRAMESIZE PIUSB_IOW(5)
19 #define PIUSB_WHATCAMERA PIUSB_IO(6)
20 #define PIUSB_USERBUFFER PIUSB_IOW(7)
21 #define PIUSB_ISHIGHSPEED PIUSB_IO(8)
22 #define PIUSB_UNMAP_USERBUFFER PIUSB_IOW(9)
24 struct ioctl_struct {
25 unsigned char cmd;
26 unsigned long numbytes;
27 unsigned char dir; /* 1=out; 0=in */
28 int endpoint;
29 int numFrames;
30 unsigned char *pData;
33 #endif