summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-06-14 14:26:42 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-06-14 14:26:42 +0000
commitd666882459feb1e4aaee7e62b8cb754e8b533466 (patch)
tree7a31b87f0c0c62b56fce3c4659ff8c3d9c3a77c4
parent5fc5e26c3b55cf9c1c388fc7968e540009de47e4 (diff)
downloadmpv-d666882459feb1e4aaee7e62b8cb754e8b533466.tar.bz2
mpv-d666882459feb1e4aaee7e62b8cb754e8b533466.tar.xz
add MGA_VID_GET_VERSION ioctl to old mga_vid driver for compatibility with "new" mplayer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27058 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--drivers/mga_vid.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mga_vid.c b/drivers/mga_vid.c
index eb790f2060..7b99a6c55f 100644
--- a/drivers/mga_vid.c
+++ b/drivers/mga_vid.c
@@ -1193,6 +1193,14 @@ static int mga_vid_ioctl(struct inode *inode, struct file *file, unsigned int cm
switch(cmd)
{
+ case MGA_VID_GET_VERSION:
+ tmp = MGA_VID_VERSION;
+ if (copy_to_user((uint32_t *) arg, &tmp, sizeof(uint32_t))) {
+ printk(KERN_ERR "mga_vid: failed copy %p to userspace %p\n", &tmp, (uint32_t *) arg);
+ return (-EFAULT);
+ }
+ break;
+
case MGA_VID_CONFIG:
//FIXME remove
// printk(KERN_DEBUG "mga_vid: vcount = %d\n",readl(card->mmio_base + VCOUNT));