Go to the documentation of this file.
26 #ifndef V4L2_COMMON_H_
27 #define V4L2_COMMON_H_
34 #define v4l_printk(level, name, adapter, addr, fmt, arg...) \
35 printk(level "%s %d-%04x: " fmt, name, i2c_adapter_id(adapter), addr , ## arg)
37 #define v4l_client_printk(level, client, fmt, arg...) \
38 v4l_printk(level, (client)->driver->driver.name, (client)->adapter, \
39 (client)->addr, fmt , ## arg)
41 #define v4l_err(client, fmt, arg...) \
42 v4l_client_printk(KERN_ERR, client, fmt , ## arg)
44 #define v4l_warn(client, fmt, arg...) \
45 v4l_client_printk(KERN_WARNING, client, fmt , ## arg)
47 #define v4l_info(client, fmt, arg...) \
48 v4l_client_printk(KERN_INFO, client, fmt , ## arg)
52 #define v4l_dbg(level, debug, client, fmt, arg...) \
54 if (debug >= (level)) \
55 v4l_client_printk(KERN_DEBUG, client, fmt , ## arg); \
61 #define v4l2_printk(level, dev, fmt, arg...) \
62 printk(level "%s: " fmt, (dev)->name , ## arg)
64 #define v4l2_err(dev, fmt, arg...) \
65 v4l2_printk(KERN_ERR, dev, fmt , ## arg)
67 #define v4l2_warn(dev, fmt, arg...) \
68 v4l2_printk(KERN_WARNING, dev, fmt , ## arg)
70 #define v4l2_info(dev, fmt, arg...) \
71 v4l2_printk(KERN_INFO, dev, fmt , ## arg)
75 #define v4l2_dbg(level, debug, dev, fmt, arg...) \
77 if (debug >= (level)) \
78 v4l2_printk(KERN_DEBUG, dev, fmt , ## arg); \
86 const char *
const *menu_items);
92 #define V4L2_CTRL_MENU_IDS_END (0xffffffff)
128 u8 addr,
const unsigned short *probe_addrs);
134 const unsigned short *probe_addrs);
158 #if defined(CONFIG_SPI)
186 #define TUNER_SET_CONFIG _IOW('d', 92, struct v4l2_priv_tun_config)
188 #define VIDIOC_INT_RESET _IOW ('d', 102, u32)
200 unsigned int wmax,
unsigned int walign,
201 unsigned int *
h,
unsigned int hmin,
202 unsigned int hmax,
unsigned int halign,
203 unsigned int salign);
217 unsigned pclock_delta);