summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mga_vid.c16
-rw-r--r--drivers/mga_vid.h27
-rw-r--r--drivers/mga_vid_test.c8
3 files changed, 34 insertions, 17 deletions
diff --git a/drivers/mga_vid.c b/drivers/mga_vid.c
index eb790f2060..41e2b4ba8c 100644
--- a/drivers/mga_vid.c
+++ b/drivers/mga_vid.c
@@ -11,20 +11,20 @@
* brightness/contrast introduced by eyck
* multiple card support by Attila Kinali <attila@kinali.ch>
*
- * This file is part of MPlayer.
+ * This file is part of mga_vid.
*
- * MPlayer is free software; you can redistribute it and/or modify
+ * mga_vid is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
- * MPlayer is distributed in the hope that it will be useful,
+ * mga_vid is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
- * with MPlayer; if not, write to the Free Software Foundation, Inc.,
+ * with mga_vid; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
@@ -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));
diff --git a/drivers/mga_vid.h b/drivers/mga_vid.h
index 48ae522463..0e9dcfc8f9 100644
--- a/drivers/mga_vid.h
+++ b/drivers/mga_vid.h
@@ -1,15 +1,24 @@
/*
- *
- * mga_vid.h
- *
- * Copyright (C) 1999 Aaron Holtzman
- *
* Matrox MGA G200/G400 YUV Video Interface module Version 0.1.0
- *
* BES == Back End Scaler
- *
- * This software has been released under the terms of the GNU Public
- * license. See http://www.gnu.org/copyleft/gpl.html for details.
+ *
+ * Copyright (C) 1999 Aaron Holtzman
+ *
+ * This file is part of mga_vid.
+ *
+ * mga_vid is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * mga_vid is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with mga_vid; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MGA_VID_H
diff --git a/drivers/mga_vid_test.c b/drivers/mga_vid_test.c
index 471038fe3d..05ae2739bd 100644
--- a/drivers/mga_vid_test.c
+++ b/drivers/mga_vid_test.c
@@ -1,20 +1,20 @@
/*
* Copyright (C) 1999 Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
*
- * This file is part of MPlayer.
+ * This file is part of mga_vid.
*
- * MPlayer is free software; you can redistribute it and/or modify
+ * mga_vid is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
- * MPlayer is distributed in the hope that it will be useful,
+ * mga_vid is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
- * with MPlayer; if not, write to the Free Software Foundation, Inc.,
+ * with mga_vid; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/