aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-ioctl.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 19:26:54 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-23 18:00:22 -0400
commit2864462eaf027ff10c1df1ce57d3518332e9083c (patch)
tree8c8821332b24f050601b5e1cc584752aa541034e /include/media/v4l2-ioctl.h
parent35ea11ff84719b1bfab2909903a9640a86552fd1 (diff)
V4L/DVB (8434): Fix x86_64 compilation and move some macros to v4l2-ioctl.h
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include/media/v4l2-ioctl.h')
-rw-r--r--include/media/v4l2-ioctl.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h
index 685b1b62a054..e319d1fffb82 100644
--- a/include/media/v4l2-ioctl.h
+++ b/include/media/v4l2-ioctl.h
@@ -20,6 +20,27 @@
20#include <linux/videodev2.h> 20#include <linux/videodev2.h>
21#endif 21#endif
22 22
23/* v4l debugging and diagnostics */
24
25/* Debug bitmask flags to be used on V4L2 */
26#define V4L2_DEBUG_IOCTL 0x01
27#define V4L2_DEBUG_IOCTL_ARG 0x02
28
29/* Use this macro for non-I2C drivers. Pass the driver name as the first arg. */
30#define v4l_print_ioctl(name, cmd) \
31 do { \
32 printk(KERN_DEBUG "%s: ", name); \
33 v4l_printk_ioctl(cmd); \
34 } while (0)
35
36/* Use this macro in I2C drivers where 'client' is the struct i2c_client
37 pointer */
38#define v4l_i2c_print_ioctl(client, cmd) \
39 do { \
40 v4l_client_printk(KERN_DEBUG, client, ""); \
41 v4l_printk_ioctl(cmd); \
42 } while (0)
43
23/* Video standard functions */ 44/* Video standard functions */
24extern const char *v4l2_norm_to_name(v4l2_std_id id); 45extern const char *v4l2_norm_to_name(v4l2_std_id id);
25extern int v4l2_video_std_construct(struct v4l2_standard *vs, 46extern int v4l2_video_std_construct(struct v4l2_standard *vs,