diff options
| author | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:31:38 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:31:38 -0400 |
| commit | 4854c7b27f0975a2b629f35ea3996d2968eb7c4f (patch) | |
| tree | 4102bdb70289764a2058aff0f907b13d7cf0e0d1 /include/linux/videodev.h | |
| parent | 3cbd5b32cb625f5c0f1b1476d154fac873dd49ce (diff) | |
| parent | fcc18e83e1f6fd9fa6b333735bf0fcd530655511 (diff) | |
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux/videodev.h')
| -rw-r--r-- | include/linux/videodev.h | 51 |
1 files changed, 12 insertions, 39 deletions
diff --git a/include/linux/videodev.h b/include/linux/videodev.h index 91140091ced2..41bc7e9603cd 100644 --- a/include/linux/videodev.h +++ b/include/linux/videodev.h | |||
| @@ -1,49 +1,21 @@ | |||
| 1 | /* | ||
| 2 | * Video for Linux version 1 - OBSOLETE | ||
| 3 | * | ||
| 4 | * Header file for v4l1 drivers and applications, for | ||
| 5 | * Linux kernels 2.2.x or 2.4.x. | ||
| 6 | * | ||
| 7 | * Provides header for legacy drivers and applications | ||
| 8 | * | ||
| 9 | * See http://linuxtv.org for more info | ||
| 10 | * | ||
| 11 | */ | ||
| 1 | #ifndef __LINUX_VIDEODEV_H | 12 | #ifndef __LINUX_VIDEODEV_H |
| 2 | #define __LINUX_VIDEODEV_H | 13 | #define __LINUX_VIDEODEV_H |
| 3 | 14 | ||
| 4 | #include <linux/types.h> | ||
| 5 | |||
| 6 | #define HAVE_V4L1 1 | 15 | #define HAVE_V4L1 1 |
| 7 | 16 | ||
| 8 | #include <linux/videodev2.h> | 17 | #include <linux/videodev2.h> |
| 9 | 18 | ||
| 10 | #ifdef __KERNEL__ | ||
| 11 | |||
| 12 | #include <linux/mm.h> | ||
| 13 | |||
| 14 | extern struct video_device* video_devdata(struct file*); | ||
| 15 | |||
| 16 | #define to_video_device(cd) container_of(cd, struct video_device, class_dev) | ||
| 17 | static inline void | ||
| 18 | video_device_create_file(struct video_device *vfd, | ||
| 19 | struct class_device_attribute *attr) | ||
| 20 | { | ||
| 21 | class_device_create_file(&vfd->class_dev, attr); | ||
| 22 | } | ||
| 23 | static inline void | ||
| 24 | video_device_remove_file(struct video_device *vfd, | ||
| 25 | struct class_device_attribute *attr) | ||
| 26 | { | ||
| 27 | class_device_remove_file(&vfd->class_dev, attr); | ||
| 28 | } | ||
| 29 | |||
| 30 | #if OBSOLETE_OWNER /* to be removed in 2.6.15 */ | ||
| 31 | /* helper functions to access driver private data. */ | ||
| 32 | static inline void *video_get_drvdata(struct video_device *dev) | ||
| 33 | { | ||
| 34 | return dev->priv; | ||
| 35 | } | ||
| 36 | |||
| 37 | static inline void video_set_drvdata(struct video_device *dev, void *data) | ||
| 38 | { | ||
| 39 | dev->priv = data; | ||
| 40 | } | ||
| 41 | #endif | ||
| 42 | |||
| 43 | extern int video_exclusive_open(struct inode *inode, struct file *file); | ||
| 44 | extern int video_exclusive_release(struct inode *inode, struct file *file); | ||
| 45 | #endif /* __KERNEL__ */ | ||
| 46 | |||
| 47 | struct video_capability | 19 | struct video_capability |
| 48 | { | 20 | { |
| 49 | char name[32]; | 21 | char name[32]; |
| @@ -363,6 +335,7 @@ struct video_code | |||
| 363 | #define VID_HARDWARE_SAA7114H 37 | 335 | #define VID_HARDWARE_SAA7114H 37 |
| 364 | #define VID_HARDWARE_SN9C102 38 | 336 | #define VID_HARDWARE_SN9C102 38 |
| 365 | #define VID_HARDWARE_ARV 39 | 337 | #define VID_HARDWARE_ARV 39 |
| 338 | |||
| 366 | #endif /* __LINUX_VIDEODEV_H */ | 339 | #endif /* __LINUX_VIDEODEV_H */ |
| 367 | 340 | ||
| 368 | /* | 341 | /* |
