aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pwc/pwc.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/pwc/pwc.h')
-rw-r--r--drivers/media/video/pwc/pwc.h36
1 files changed, 24 insertions, 12 deletions
diff --git a/drivers/media/video/pwc/pwc.h b/drivers/media/video/pwc/pwc.h
index ae0b7bf12e07..19c692c186fe 100644
--- a/drivers/media/video/pwc/pwc.h
+++ b/drivers/media/video/pwc/pwc.h
@@ -45,8 +45,6 @@
45#include <linux/input.h> 45#include <linux/input.h>
46#endif 46#endif
47 47
48#include <media/pwc-ioctl.h>
49
50/* Version block */ 48/* Version block */
51#define PWC_VERSION "10.0.15" 49#define PWC_VERSION "10.0.15"
52#define PWC_NAME "pwc" 50#define PWC_NAME "pwc"
@@ -189,6 +187,30 @@
189#define PT_RESET_CONTROL_FORMATTER 0x02 187#define PT_RESET_CONTROL_FORMATTER 0x02
190#define PT_STATUS_FORMATTER 0x03 188#define PT_STATUS_FORMATTER 0x03
191 189
190/* Enumeration of image sizes */
191#define PSZ_SQCIF 0x00
192#define PSZ_QSIF 0x01
193#define PSZ_QCIF 0x02
194#define PSZ_SIF 0x03
195#define PSZ_CIF 0x04
196#define PSZ_VGA 0x05
197#define PSZ_MAX 6
198
199struct pwc_raw_frame {
200 __le16 type; /* type of the webcam */
201 __le16 vbandlength; /* Size of 4 lines compressed (used by the
202 decompressor) */
203 __u8 cmd[4]; /* the four byte of the command (in case of
204 nala, only the first 3 bytes is filled) */
205 __u8 rawframe[0]; /* frame_size = H / 4 * vbandlength */
206} __packed;
207
208/* structure for transferring x & y coordinates */
209struct pwc_coord {
210 int x, y; /* guess what */
211 int size; /* size, or offset */
212};
213
192/* intermediate buffers with raw data from the USB cam */ 214/* intermediate buffers with raw data from the USB cam */
193struct pwc_frame_buf 215struct pwc_frame_buf
194{ 216{
@@ -269,11 +291,6 @@ struct pwc_device
269 struct pwc_coord image, view; /* image and viewport size */ 291 struct pwc_coord image, view; /* image and viewport size */
270 struct pwc_coord offset; /* offset of the viewport */ 292 struct pwc_coord offset; /* offset of the viewport */
271 293
272 /*** motorized pan/tilt feature */
273 struct pwc_mpt_range angle_range;
274 int pan_angle; /* in degrees * 100 */
275 int tilt_angle; /* absolute angle; 0,0 is home */
276
277#ifdef CONFIG_USB_PWC_INPUT_EVDEV 294#ifdef CONFIG_USB_PWC_INPUT_EVDEV
278 struct input_dev *button_dev; /* webcam snapshot button input */ 295 struct input_dev *button_dev; /* webcam snapshot button input */
279 char button_phys[64]; 296 char button_phys[64];
@@ -357,8 +374,6 @@ void pwc_construct(struct pwc_device *pdev);
357extern int pwc_set_video_mode(struct pwc_device *pdev, int width, int height, 374extern int pwc_set_video_mode(struct pwc_device *pdev, int width, int height,
358 int frames, int compression); 375 int frames, int compression);
359extern unsigned int pwc_get_fps(struct pwc_device *pdev, unsigned int index, unsigned int size); 376extern unsigned int pwc_get_fps(struct pwc_device *pdev, unsigned int index, unsigned int size);
360extern int pwc_mpt_reset(struct pwc_device *pdev, int flags);
361extern int pwc_mpt_set_angle(struct pwc_device *pdev, int pan, int tilt);
362extern int pwc_set_leds(struct pwc_device *pdev, int on_value, int off_value); 377extern int pwc_set_leds(struct pwc_device *pdev, int on_value, int off_value);
363extern int pwc_get_cmos_sensor(struct pwc_device *pdev, int *sensor); 378extern int pwc_get_cmos_sensor(struct pwc_device *pdev, int *sensor);
364extern int send_control_msg(struct pwc_device *pdev, 379extern int send_control_msg(struct pwc_device *pdev,
@@ -377,9 +392,6 @@ int pwc_init_controls(struct pwc_device *pdev);
377/* Power down or up the camera; not supported by all models */ 392/* Power down or up the camera; not supported by all models */
378extern void pwc_camera_power(struct pwc_device *pdev, int power); 393extern void pwc_camera_power(struct pwc_device *pdev, int power);
379 394
380/* Private ioctl()s; see pwc-ioctl.h */
381extern long pwc_ioctl(struct pwc_device *pdev, unsigned int cmd, void *arg);
382
383extern const struct v4l2_ioctl_ops pwc_ioctl_ops; 395extern const struct v4l2_ioctl_ops pwc_ioctl_ops;
384 396
385/** pwc-uncompress.c */ 397/** pwc-uncompress.c */