Rev 606 | Rev 618 | 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); |
||
616 | giacomo | 24 | extern int videodev_close_inode(int num); |
604 | giacomo | 25 | extern int videodev_ioctl_inode(int num,unsigned int cmd,unsigned long arg); |
603 | giacomo | 26 | |
616 | giacomo | 27 | /* Open Videodev */ |
603 | giacomo | 28 | int VIDEODEV26_open(int num) { |
29 | |||
30 | if (videodev_open_inode(num)) { |
||
31 | printk("VIDEODEV26 ERROR: Cannot open the VideoDev driver\n"); |
||
32 | return -1; |
||
33 | } |
||
34 | |||
35 | return 0; |
||
36 | |||
37 | } |
||
604 | giacomo | 38 | |
616 | giacomo | 39 | /* Close videodev */ |
40 | int VIDEODEV26_close(int num) { |
||
41 | |||
42 | videodev_close_inode(num); |
||
43 | |||
44 | return 0; |
||
45 | |||
46 | } |
||
47 | |||
604 | giacomo | 48 | int VIDEODEV26_ioctl(int num,unsigned int cmd,unsigned long arg) { |
49 | |||
50 | return videodev_ioctl_inode(num,cmd,arg); |
||
51 | |||
52 | } |