1 #ifndef quickcam_messenger_h
2 #define quickcam_messenger_h
5 /* if we're not using input we dummy out these functions */
6 #define qcm_register_input(...)
7 #define qcm_unregister_input(...)
8 #define qcm_report_buttonstat(...)
9 #define qcm_setup_input_int(...) 0
10 #define qcm_stop_int_data(...)
11 #define qcm_alloc_int_urb(...) 0
12 #define qcm_free_int(...)
16 #define CHECK_RET(ret, expr) \
17 if ((ret = expr) < 0) return ret
19 /* Control Registers for the STVV6422 ASIC
20 * - this define is taken from the qc-usb-messenger code
22 #define STV_ISO_ENABLE 0x1440
23 #define ISOC_PACKET_SIZE 1023
25 /* Chip identification number including revision indicator */
26 #define CMOS_SENSOR_IDREV 0xE00A
45 #error not byte order defined
57 #error not byte order defined
67 static const struct cam_size camera_sizes[] = {
77 #define MAX_FRAME_SIZE SIZE_320X240
90 struct urb *button_urb;
95 struct input_dev *input;
96 char input_physname[64];
104 /* this table is derived from the
105 qc-usb-messenger code */
106 static const struct regval regval_table[] = {
107 { STV_ISO_ENABLE, 0x00 },
108 { 0x1436, 0x00 }, { 0x1432, 0x03 },
109 { 0x143a, 0xF9 }, { 0x0509, 0x38 },
110 { 0x050a, 0x38 }, { 0x050b, 0x38 },
111 { 0x050c, 0x2A }, { 0x050d, 0x01 },
112 { 0x1431, 0x00 }, { 0x1433, 0x34 },
113 { 0x1438, 0x18 }, { 0x1439, 0x00 },
114 { 0x143b, 0x05 }, { 0x143c, 0x00 },
115 { 0x143e, 0x01 }, { 0x143d, 0x00 },
116 { 0x1442, 0xe2 }, { 0x1500, 0xd0 },
117 { 0x1500, 0xd0 }, { 0x1500, 0x50 },
118 { 0x1501, 0xaf }, { 0x1502, 0xc2 },
119 { 0x1503, 0x45 }, { 0x1505, 0x02 },
120 { 0x150e, 0x8e }, { 0x150f, 0x37 },
124 static const unsigned char marker[] = { 0x00, 0xff, 0x00, 0xFF };
126 #endif /* quickcam_messenger_h */