]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/pwc/pwc-ioctl.h
USB: pwc-if loop fix
[linux-2.6-omap-h63xx.git] / drivers / media / video / pwc / pwc-ioctl.h
index 5f9cb08bc02e5de6d578f9f150742f99622aa184..784bc72521fa507e806c9b84b28046e1883ef146 100644 (file)
 /*
    Changes
    2001/08/03  Alvarado   Added ioctl constants to access methods for
-                          changing white balance and red/blue gains
+                         changing white balance and red/blue gains
    2002/12/15  G. H. Fernandez-Toribio   VIDIOCGREALSIZE
    2003/12/13  Nemosft Unv. Some modifications to make interfacing to
-               PWCX easier
+              PWCX easier
  */
 
 /* These are private ioctl() commands, specific for the Philips webcams.
 
    The #define names are built up like follows:
    VIDIOC              VIDeo IOCtl prefix
-         PWC           Philps WebCam
-            G           optional: Get
-            S           optional: Set
-             ...       the function
+        PWC            Philps WebCam
+           G           optional: Get
+           S           optional: Set
+            ...        the function
  */
 
 
@@ -94,7 +94,7 @@ struct pwc_serial
 {
        char serial[30];        /* String with serial number. Contains terminating 0 */
 };
-       
+
 /* pwc_whitebalance.mode values */
 #define PWC_WB_INDOOR          0
 #define PWC_WB_OUTDOOR         1
@@ -102,14 +102,14 @@ struct pwc_serial
 #define PWC_WB_MANUAL          3
 #define PWC_WB_AUTO            4
 
-/* Used with VIDIOCPWC[SG]AWB (Auto White Balance). 
+/* Used with VIDIOCPWC[SG]AWB (Auto White Balance).
    Set mode to one of the PWC_WB_* values above.
-   *red and *blue are the respective gains of these colour components inside 
+   *red and *blue are the respective gains of these colour components inside
    the camera; range 0..65535
-   When 'mode' == PWC_WB_MANUAL, 'manual_red' and 'manual_blue' are set or read; 
+   When 'mode' == PWC_WB_MANUAL, 'manual_red' and 'manual_blue' are set or read;
    otherwise undefined.
    'read_red' and 'read_blue' are read-only.
-*/   
+*/
 struct pwc_whitebalance
 {
        int mode;
@@ -117,9 +117,9 @@ struct pwc_whitebalance
        int read_red, read_blue;        /* R/O */
 };
 
-/* 
+/*
    'control_speed' and 'control_delay' are used in automatic whitebalance mode,
-   and tell the camera how fast it should react to changes in lighting, and 
+   and tell the camera how fast it should react to changes in lighting, and
    with how much delay. Valid values are 0..65535.
 */
 struct pwc_wb_speed
@@ -148,11 +148,11 @@ struct pwc_imagesize
 #define PWC_MPT_TILT           0x02
 #define PWC_MPT_TIMEOUT                0x04 /* for status */
 
-/* Set angles; when absolute != 0, the angle is absolute and the 
+/* Set angles; when absolute != 0, the angle is absolute and the
    driver calculates the relative offset for you. This can only
    be used with VIDIOCPWCSANGLE; VIDIOCPWCGANGLE always returns
    absolute angles.
- */   
+ */
 struct pwc_mpt_angles
 {
        int absolute;           /* write-only */
@@ -179,14 +179,14 @@ struct pwc_mpt_status
 /* This is used for out-of-kernel decompression. With it, you can get
    all the necessary information to initialize and use the decompressor
    routines in standalone applications.
- */   
+ */
 struct pwc_video_command
 {
        int type;               /* camera type (645, 675, 730, etc.) */
        int release;            /* release number */
 
-        int size;              /* one of PSZ_* */
-        int alternate;
+       int size;               /* one of PSZ_* */
+       int alternate;
        int command_len;        /* length of USB video command */
        unsigned char command_buf[13];  /* Actual USB video command */
        int bandlength;         /* >0 = compressed */
@@ -264,7 +264,7 @@ struct pwc_video_command
 
   /* Flickerless mode; = 0 off, otherwise on */
 #define VIDIOCPWCSFLICKER      _IOW('v', 208, int)
-#define VIDIOCPWCGFLICKER      _IOR('v', 208, int)  
+#define VIDIOCPWCGFLICKER      _IOR('v', 208, int)
 
   /* Dynamic noise reduction; 0 off, 3 = high noise reduction */
 #define VIDIOCPWCSDYNNOISE     _IOW('v', 209, int)
@@ -273,7 +273,7 @@ struct pwc_video_command
  /* Real image size as used by the camera; tells you whether or not there's a gray border around the image */
 #define VIDIOCPWCGREALSIZE     _IOR('v', 210, struct pwc_imagesize)
 
- /* Motorized pan & tilt functions */ 
+ /* Motorized pan & tilt functions */
 #define VIDIOCPWCMPTRESET      _IOW('v', 211, int)
 #define VIDIOCPWCMPTGRANGE     _IOR('v', 211, struct pwc_mpt_range)
 #define VIDIOCPWCMPTSANGLE     _IOW('v', 212, struct pwc_mpt_angles)