Linux kernel & device driver programming

Cross-Referenced Linux and Device Driver Code

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]
Version: [ 2.6.11.8 ] [ 2.6.25 ] [ 2.6.25.8 ] [ 2.6.31.13 ] Architecture: [ i386 ]
  1 #ifndef __RSPIUSB_H
  2 #define __RSPIUSB_H
  3 
  4 #define PIUSB_MAGIC             'm'
  5 #define PIUSB_IOCTL_BASE        192
  6 
  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)
 13 
 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)
 23 
 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;
 31 };
 32 
 33 #endif
 34 
  This page was automatically generated by the LXR engine.