Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 603 → Rev 604

/shark/trunk/drivers/linuxc26/include/drivers/shark_videodev26.h
21,6 → 21,10
#ifndef __SHARK_VIDEODEV26__
#define __SHARK_VIDEODEV26__
 
/* Open VideoDev Interface */
int VIDEODEV26_open(int num);
 
/* IOCTL to VideoDev device */
int VIDEODEV26_ioctl(int num,unsigned int cmd,unsigned long arg);
 
#endif
/shark/trunk/drivers/linuxc26/videodev.c
404,7 → 404,26
return 0;
}
 
extern int bttv_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg);
 
int videodev_ioctl_inode(int num,unsigned int cmd,unsigned long arg) {
 
struct inode *i;
int res;
i = (struct inode *)kmalloc(sizeof(struct inode),GFP_KERNEL);
linuxcomp_setfd(i,num);
res = bttv_ioctl(i,NULL,cmd,arg);
kfree(i);
return res;
}
module_init(videodev_init)
module_exit(videodev_exit)
 
/shark/trunk/drivers/linuxc26/shark_videodev.c
21,6 → 21,7
#include <kernel/kern.h>
 
extern int videodev_open_inode(int num);
extern int videodev_ioctl_inode(int num,unsigned int cmd,unsigned long arg);
 
int VIDEODEV26_open(int num) {
 
32,3 → 33,10
return 0;
 
}
 
int VIDEODEV26_ioctl(int num,unsigned int cmd,unsigned long arg) {
 
return videodev_ioctl_inode(num,cmd,arg);
 
}