diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-07-10 14:03:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 15:43:15 -0400 |
commit | bbafc0cb6c52c40647f561854db5fbac4d608186 (patch) | |
tree | d10c23e4e0a7ae5e169f7b7c627c6a762b0a2d56 /drivers/usb/gadget/uvc.h | |
parent | c89f66f629f0e94806e3ec6f8f77b61a8feed39f (diff) |
V4L/DVB: uvc: Move constants and structures definitions to linux/usb/video.h
The UVC host and gadget drivers both define constants and structures in
private header files. Move all those definitions to linux/usb/video.h
where they can be shared by the two drivers (and be available for
userspace applications).
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/usb/gadget/uvc.h')
-rw-r--r-- | drivers/usb/gadget/uvc.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/drivers/usb/gadget/uvc.h b/drivers/usb/gadget/uvc.h index e92454cddd7d..5b7919460fd2 100644 --- a/drivers/usb/gadget/uvc.h +++ b/drivers/usb/gadget/uvc.h | |||
@@ -48,39 +48,6 @@ struct uvc_event | |||
48 | #define UVC_INTF_STREAMING 1 | 48 | #define UVC_INTF_STREAMING 1 |
49 | 49 | ||
50 | /* ------------------------------------------------------------------------ | 50 | /* ------------------------------------------------------------------------ |
51 | * UVC constants & structures | ||
52 | */ | ||
53 | |||
54 | /* Values for bmHeaderInfo (Video and Still Image Payload Headers, 2.4.3.3) */ | ||
55 | #define UVC_STREAM_EOH (1 << 7) | ||
56 | #define UVC_STREAM_ERR (1 << 6) | ||
57 | #define UVC_STREAM_STI (1 << 5) | ||
58 | #define UVC_STREAM_RES (1 << 4) | ||
59 | #define UVC_STREAM_SCR (1 << 3) | ||
60 | #define UVC_STREAM_PTS (1 << 2) | ||
61 | #define UVC_STREAM_EOF (1 << 1) | ||
62 | #define UVC_STREAM_FID (1 << 0) | ||
63 | |||
64 | struct uvc_streaming_control { | ||
65 | __u16 bmHint; | ||
66 | __u8 bFormatIndex; | ||
67 | __u8 bFrameIndex; | ||
68 | __u32 dwFrameInterval; | ||
69 | __u16 wKeyFrameRate; | ||
70 | __u16 wPFrameRate; | ||
71 | __u16 wCompQuality; | ||
72 | __u16 wCompWindowSize; | ||
73 | __u16 wDelay; | ||
74 | __u32 dwMaxVideoFrameSize; | ||
75 | __u32 dwMaxPayloadTransferSize; | ||
76 | __u32 dwClockFrequency; | ||
77 | __u8 bmFramingInfo; | ||
78 | __u8 bPreferedVersion; | ||
79 | __u8 bMinVersion; | ||
80 | __u8 bMaxVersion; | ||
81 | } __attribute__((__packed__)); | ||
82 | |||
83 | /* ------------------------------------------------------------------------ | ||
84 | * Debugging, printing and logging | 51 | * Debugging, printing and logging |
85 | */ | 52 | */ |
86 | 53 | ||
@@ -137,9 +104,6 @@ extern unsigned int uvc_gadget_trace_param; | |||
137 | #define UVC_MAX_REQUEST_SIZE 64 | 104 | #define UVC_MAX_REQUEST_SIZE 64 |
138 | #define UVC_MAX_EVENTS 4 | 105 | #define UVC_MAX_EVENTS 4 |
139 | 106 | ||
140 | #define USB_DT_INTERFACE_ASSOCIATION_SIZE 8 | ||
141 | #define USB_CLASS_MISC 0xef | ||
142 | |||
143 | /* ------------------------------------------------------------------------ | 107 | /* ------------------------------------------------------------------------ |
144 | * Structures | 108 | * Structures |
145 | */ | 109 | */ |