v4l2-dev.h (f790c0ca6fad60b544bb73eda8cc841a6436725b) | v4l2-dev.h (1babcb460f2b87c20eb6860b9685a0dab636cc4b) |
---|---|
1/* 2 * 3 * V 4 L 2 D R I V E R H E L P E R A P I 4 * 5 * Moved from videodev2.h 6 * 7 * Some commonly needed functions for drivers (v4l2-common.o module) 8 */ --- 18 unchanged lines hidden (view full) --- 27struct v4l2_ioctl_callbacks; 28struct video_device; 29struct v4l2_device; 30 31/* Flag to mark the video_device struct as registered. 32 Drivers can clear this flag if they want to block all future 33 device access. It is cleared by video_unregister_device. */ 34#define V4L2_FL_REGISTERED (0) | 1/* 2 * 3 * V 4 L 2 D R I V E R H E L P E R A P I 4 * 5 * Moved from videodev2.h 6 * 7 * Some commonly needed functions for drivers (v4l2-common.o module) 8 */ --- 18 unchanged lines hidden (view full) --- 27struct v4l2_ioctl_callbacks; 28struct video_device; 29struct v4l2_device; 30 31/* Flag to mark the video_device struct as registered. 32 Drivers can clear this flag if they want to block all future 33 device access. It is cleared by video_unregister_device. */ 34#define V4L2_FL_REGISTERED (0) |
35#define V4L2_FL_USES_V4L2_FH (1) |
|
35 36struct v4l2_file_operations { 37 struct module *owner; 38 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *); 39 ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *); 40 unsigned int (*poll) (struct file *, struct poll_table_struct *); 41 long (*ioctl) (struct file *, unsigned int, unsigned long); 42 long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long); --- 29 unchanged lines hidden (view full) --- 72 /* 'minor' is set to -1 if the registration failed */ 73 int minor; 74 u16 num; 75 /* use bitops to set/clear/test flags */ 76 unsigned long flags; 77 /* attribute to differentiate multiple indices on one physical device */ 78 int index; 79 | 36 37struct v4l2_file_operations { 38 struct module *owner; 39 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *); 40 ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *); 41 unsigned int (*poll) (struct file *, struct poll_table_struct *); 42 long (*ioctl) (struct file *, unsigned int, unsigned long); 43 long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long); --- 29 unchanged lines hidden (view full) --- 73 /* 'minor' is set to -1 if the registration failed */ 74 int minor; 75 u16 num; 76 /* use bitops to set/clear/test flags */ 77 unsigned long flags; 78 /* attribute to differentiate multiple indices on one physical device */ 79 int index; 80 |
81 /* V4L2 file handles */ 82 spinlock_t fh_lock; /* Lock for all v4l2_fhs */ 83 struct list_head fh_list; /* List of struct v4l2_fh */ 84 |
|
80 int debug; /* Activates debug level*/ 81 82 /* Video standard vars */ 83 v4l2_std_id tvnorms; /* Supported tv norms */ 84 v4l2_std_id current_norm; /* Current tvnorm */ 85 86 /* callbacks */ 87 void (*release)(struct video_device *vdev); --- 65 unchanged lines hidden --- | 85 int debug; /* Activates debug level*/ 86 87 /* Video standard vars */ 88 v4l2_std_id tvnorms; /* Supported tv norms */ 89 v4l2_std_id current_norm; /* Current tvnorm */ 90 91 /* callbacks */ 92 void (*release)(struct video_device *vdev); --- 65 unchanged lines hidden --- |