Rev 603 | Rev 606 | Go to most recent revision | 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 | |
26 | int VIDEODEV26_open(int num) { |
||
27 | |||
28 | if (videodev_open_inode(num)) { |
||
29 | printk("VIDEODEV26 ERROR: Cannot open the VideoDev driver\n"); |
||
30 | return -1; |
||
31 | } |
||
32 | |||
33 | return 0; |
||
34 | |||
35 | } |
||
604 | giacomo | 36 | |
37 | int VIDEODEV26_ioctl(int num,unsigned int cmd,unsigned long arg) { |
||
38 | |||
39 | return videodev_ioctl_inode(num,cmd,arg); |
||
40 | |||
41 | } |
||
42 |