diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
commit | 27cfca1ec98e91261b1a5355d10a8996464b63af (patch) | |
tree | 8e895a53e372fa682b4c0a585b9377d67ed70d0e /drivers/char/videodev.c | |
parent | 6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff) |
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too
o Upgrade to 2.1.89.
Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'drivers/char/videodev.c')
-rw-r--r-- | drivers/char/videodev.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/drivers/char/videodev.c b/drivers/char/videodev.c index 38b9a6743..9fd8b17f1 100644 --- a/drivers/char/videodev.c +++ b/drivers/char/videodev.c @@ -36,27 +36,28 @@ static struct video_device *video_device[VIDEO_NUM_DEVICES]; -/* - * Initialiser list - */ - -struct video_init -{ - char *name; - int (*init)(struct video_init *); -}; - +#ifdef CONFIG_VIDEO_BT848 extern int init_bttv_cards(struct video_init *); +#endif +#ifdef CONFIG_VIDEO_CQCAM +extern int init_colour_qcams(struct video_init *); +#endif +#ifdef CONFIG_VIDEO_BWQCAM +extern int init_bw_qcams(struct video_init *); +#endif static struct video_init video_init_list[]={ #ifdef CONFIG_VIDEO_BT848 {"bttv", init_bttv_cards}, #endif +#ifdef CONFIG_VIDEO_CQCAM + {"c-qcam", init_colour_qcams}, +#endif #ifdef CONFIG_VIDEO_BWQCAM - {"bttv", init_bw_qcams}, + {"bw-qcam", init_bw_qcams}, #endif #ifdef CONFIG_VIDEO_PMS - {"bttv", init_pms_cards}, + {"PMS", init_pms_cards}, /* not defined anywhere */ #endif {"end", NULL} }; @@ -69,7 +70,6 @@ static struct video_init video_init_list[]={ static ssize_t video_read(struct file *file, char *buf, size_t count, loff_t *ppos) { - int err; struct video_device *vfl=video_device[MINOR(file->f_dentry->d_inode->i_rdev)]; return vfl->read(vfl, buf, count, file->f_flags&O_NONBLOCK); } @@ -82,7 +82,6 @@ static ssize_t video_read(struct file *file, static ssize_t video_write(struct file *file, const char *buf, size_t count, loff_t *ppos) { - int err; struct video_device *vfl=video_device[MINOR(file->f_dentry->d_inode->i_rdev)]; return vfl->write(vfl, buf, count, file->f_flags&O_NONBLOCK); } |