Rev 927 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
603 | giacomo | 1 | /* |
2 | * Project: S.Ha.R.K. |
||
3 | * |
||
4 | * Coordinators: |
||
5 | * Giorgio Buttazzo <giorgio@sssup.it> |
||
6 | * Paolo Gai <pj@gandalf.sssup.it> |
||
7 | * |
||
8 | * Authors : |
||
9 | * Giacomo Guidi <giacomo@gandalf.sssup.it> |
||
10 | * |
||
11 | * |
||
12 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
13 | * |
||
14 | * http://www.sssup.it |
||
15 | * http://retis.sssup.it |
||
16 | * http://shark.sssup.it |
||
17 | */ |
||
18 | |||
19 | /* Glue Layer for VideoDev 2.6 Driver */ |
||
20 | |||
21 | #include <kernel/kern.h> |
||
22 | |||
23 | extern int videodev_open_inode(int num); |
||
604 | giacomo | 24 | extern int videodev_ioctl_inode(int num,unsigned int cmd,unsigned long arg); |
603 | giacomo | 25 | |
616 | giacomo | 26 | /* Open Videodev */ |
603 | giacomo | 27 | int VIDEODEV26_open(int num) { |
28 | |||
29 | if (videodev_open_inode(num)) { |
||
956 | mauro | 30 | printk("VIDEODEV26 ERROR: Cannot open the VideoDev driver\n"); |
31 | return 1; |
||
603 | giacomo | 32 | } |
33 | |||
34 | return 0; |
||
35 | |||
36 | } |
||
604 | giacomo | 37 | |
618 | giacomo | 38 | extern int BTTV26_installed(void); |
616 | giacomo | 39 | |
604 | giacomo | 40 | int VIDEODEV26_ioctl(int num,unsigned int cmd,unsigned long arg) { |
41 | |||
42 | return videodev_ioctl_inode(num,cmd,arg); |
||
43 | |||
44 | } |