Go to the documentation of this file.
34 #include <linux/videodev2.h>
36 #include <linux/poll.h>
51 #define ALLOW_CORRUPT 0
58 #define USBIF_CMDONLY 0
68 #define NEVER_FLICKER 0
74 #define DEBUG_REG 0x00000001
75 #define DEBUG_DUMP_PATCH 0x00000002
76 #define DEBUG_DUMP_REGS 0x00000004
92 #define STV_IMAGE_CIF_ROWS 288
93 #define STV_IMAGE_CIF_COLS 352
95 #define STV_IMAGE_QCIF_ROWS 144
96 #define STV_IMAGE_QCIF_COLS 176
98 #define STV_IMAGE_VGA_ROWS 480
99 #define STV_IMAGE_VGA_COLS 640
101 #define STV_IMAGE_QVGA_ROWS 240
102 #define STV_IMAGE_QVGA_COLS 320
104 #define JPEG_MARKER_COM (1<<6)
116 #define CPIA2_ASIC_672 0x67
119 #define DEVICE_STV_672 0x0001
120 #define DEVICE_STV_676 0x0002
139 #define CAMERAACCESS_TYPE_BLOCK 0x00
140 #define CAMERAACCESS_TYPE_RANDOM 0x04
141 #define CAMERAACCESS_TYPE_MASK 0x08
142 #define CAMERAACCESS_TYPE_REPEAT 0x0C
144 #define TRANSFER_READ 0
145 #define TRANSFER_WRITE 1
147 #define DEFAULT_ALT USBIF_ISO_6
148 #define DEFAULT_BRIGHTNESS 0x46
149 #define DEFAULT_CONTRAST 0x93
150 #define DEFAULT_SATURATION 0x7f
153 #define HI_POWER_MODE CPIA2_SYSTEM_CONTROL_HIGH_POWER
154 #define LO_POWER_MODE CPIA2_SYSTEM_CONTROL_LOW_POWER
228 #define CAMACC_CIF 0x01
229 #define CAMACC_VGA 0x02
230 #define CAMACC_QCIF 0x04
231 #define CAMACC_QVGA 0x08
450 char __user *
buf,
unsigned long count,
int noblock);
474 #define ALOG(lev, fmt, args...) printk(lev "%s:%d %s(): " fmt, __FILE__, __LINE__, __func__, ## args)
475 #define LOG(fmt, args...) ALOG(KERN_INFO, fmt, ## args)
476 #define ERR(fmt, args...) ALOG(KERN_ERR, fmt, ## args)
477 #define DBG(fmt, args...) ALOG(KERN_DEBUG, fmt, ## args)
479 #define ALOG(fmt,args...) printk(fmt,##args)
480 #define LOG(fmt,args...) ALOG(KERN_INFO "cpia2: "fmt,##args)
481 #define ERR(fmt,args...) ALOG(KERN_ERR "cpia2: "fmt,##args)
482 #define DBG(fmn,args...) do {} while(0)
485 #define KINFO(fmt, args...) printk(KERN_INFO fmt,##args)