diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-02-13 15:31:38 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-04-17 08:10:19 +0300 |
commit | f7018c21350204c4cf628462f229d44d03545254 (patch) | |
tree | 408787177164cf51cc06f7aabdb04fcff8d2b6aa /drivers/video/via/ioctl.c | |
parent | c26ef3eb3c11274bad1b64498d0a134f85755250 (diff) |
video: move fbdev to drivers/video/fbdev
The drivers/video directory is a mess. It contains generic video related
files, directories for backlight, console, linux logo, lots of fbdev
device drivers, fbdev framework files.
Make some order into the chaos by creating drivers/video/fbdev
directory, and move all fbdev related files there.
No functionality is changed, although I guess it is possible that some
subtle Makefile build order related issue could be created by this
patch.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Rob Clark <robdclark@gmail.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/video/via/ioctl.c')
-rw-r--r-- | drivers/video/via/ioctl.c | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/drivers/video/via/ioctl.c b/drivers/video/via/ioctl.c deleted file mode 100644 index ea1c5142882..00000000000 --- a/drivers/video/via/ioctl.c +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved. - * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved. - - * This program 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, or (at your option) any later version. - - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTIES OR REPRESENTATIONS; 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 this program; if not, write to the Free Software - * Foundation, Inc., - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -#include "global.h" - -int viafb_ioctl_get_viafb_info(u_long arg) -{ - struct viafb_ioctl_info viainfo; - - memset(&viainfo, 0, sizeof(struct viafb_ioctl_info)); - - viainfo.viafb_id = VIAID; - viainfo.vendor_id = PCI_VIA_VENDOR_ID; - - switch (viaparinfo->chip_info->gfx_chip_name) { - case UNICHROME_CLE266: - viainfo.device_id = UNICHROME_CLE266_DID; - break; - - case UNICHROME_K400: - viainfo.device_id = UNICHROME_K400_DID; - break; - - case UNICHROME_K800: - viainfo.device_id = UNICHROME_K800_DID; - break; - - case UNICHROME_PM800: - viainfo.device_id = UNICHROME_PM800_DID; - break; - - case UNICHROME_CN700: - viainfo.device_id = UNICHROME_CN700_DID; - break; - - case UNICHROME_CX700: - viainfo.device_id = UNICHROME_CX700_DID; - break; - - case UNICHROME_K8M890: - viainfo.device_id = UNICHROME_K8M890_DID; - break; - - case UNICHROME_P4M890: - viainfo.device_id = UNICHROME_P4M890_DID; - break; - - case UNICHROME_P4M900: - viainfo.device_id = UNICHROME_P4M900_DID; - break; - } - - viainfo.version = VERSION_MAJOR; - viainfo.revision = VERSION_MINOR; - - if (copy_to_user((void __user *)arg, &viainfo, sizeof(viainfo))) - return -EFAULT; - - return 0; -} - -/* Hot-Plug Priority: DVI > CRT*/ -int viafb_ioctl_hotplug(int hres, int vres, int bpp) -{ - int DVIsense, status = 0; - DEBUG_MSG(KERN_INFO "viafb_ioctl_hotplug!!\n"); - - if (viaparinfo->chip_info->tmds_chip_info.tmds_chip_name != - NON_TMDS_TRANSMITTER) { - DVIsense = viafb_dvi_sense(); - - if (DVIsense) { - DEBUG_MSG(KERN_INFO "DVI Attached...\n"); - if (viafb_DeviceStatus != DVI_Device) { - viafb_DVI_ON = 1; - viafb_CRT_ON = 0; - viafb_LCD_ON = 0; - viafb_DeviceStatus = DVI_Device; - viafb_set_iga_path(); - return viafb_DeviceStatus; - } - status = 1; - } else - DEBUG_MSG(KERN_INFO "DVI De-attached...\n"); - } - - if ((viafb_DeviceStatus != CRT_Device) && (status == 0)) { - viafb_CRT_ON = 1; - viafb_DVI_ON = 0; - viafb_LCD_ON = 0; - - viafb_DeviceStatus = CRT_Device; - viafb_set_iga_path(); - return viafb_DeviceStatus; - } - - return 0; -} |