Joseph Chan | c09c782 | 2008-10-15 22:03:23 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved. |
| 3 | * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved. |
| 4 | |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public |
| 7 | * License as published by the Free Software Foundation; |
| 8 | * either version 2, or (at your option) any later version. |
| 9 | |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTIES OR REPRESENTATIONS; without even |
| 12 | * the implied warranty of MERCHANTABILITY or FITNESS FOR |
| 13 | * A PARTICULAR PURPOSE.See the GNU General Public License |
| 14 | * for more details. |
| 15 | |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., |
| 19 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 20 | */ |
| 21 | |
| 22 | #ifndef __GLOBAL_H__ |
| 23 | #define __GLOBAL_H__ |
| 24 | |
| 25 | #include <linux/fb.h> |
| 26 | #include <linux/delay.h> |
| 27 | #include <linux/ioport.h> |
| 28 | #include <linux/pci.h> |
| 29 | #include <linux/io.h> |
| 30 | #include <linux/uaccess.h> |
| 31 | #include <linux/init.h> |
| 32 | #include <linux/proc_fs.h> |
| 33 | #include <linux/console.h> |
| 34 | #include <linux/timer.h> |
| 35 | |
| 36 | #include "debug.h" |
| 37 | |
Joseph Chan | c09c782 | 2008-10-15 22:03:23 -0700 | [diff] [blame] | 38 | #include "viafbdev.h" |
| 39 | #include "chip.h" |
Joseph Chan | c09c782 | 2008-10-15 22:03:23 -0700 | [diff] [blame] | 40 | #include "accel.h" |
| 41 | #include "share.h" |
| 42 | #include "dvi.h" |
| 43 | #include "viamode.h" |
Joseph Chan | c09c782 | 2008-10-15 22:03:23 -0700 | [diff] [blame] | 44 | #include "hw.h" |
| 45 | |
| 46 | #include "lcd.h" |
| 47 | #include "ioctl.h" |
Joseph Chan | c09c782 | 2008-10-15 22:03:23 -0700 | [diff] [blame] | 48 | #include "via_utility.h" |
| 49 | #include "vt1636.h" |
| 50 | #include "tblDPASetting.h" |
Joseph Chan | c09c782 | 2008-10-15 22:03:23 -0700 | [diff] [blame] | 51 | |
| 52 | /* External struct*/ |
| 53 | |
| 54 | extern int viafb_platform_epia_dvi; |
| 55 | extern int viafb_device_lcd_dualedge; |
| 56 | extern int viafb_bus_width; |
| 57 | extern int viafb_display_hardware_layout; |
| 58 | extern struct offset offset_reg; |
| 59 | extern struct viafb_par *viaparinfo; |
| 60 | extern struct viafb_par *viaparinfo1; |
| 61 | extern struct fb_info *viafbinfo; |
| 62 | extern struct fb_info *viafbinfo1; |
| 63 | extern int viafb_DeviceStatus; |
| 64 | extern int viafb_refresh; |
| 65 | extern int viafb_refresh1; |
| 66 | extern int viafb_lcd_dsp_method; |
| 67 | extern int viafb_lcd_mode; |
Joseph Chan | c09c782 | 2008-10-15 22:03:23 -0700 | [diff] [blame] | 68 | |
| 69 | extern int viafb_CRT_ON; |
Florian Tobias Schandinat | 5dd72f1 | 2011-08-07 13:34:35 +0000 | [diff] [blame] | 70 | extern unsigned int viafb_second_xres; |
| 71 | extern unsigned int viafb_second_yres; |
Joseph Chan | c09c782 | 2008-10-15 22:03:23 -0700 | [diff] [blame] | 72 | extern int viafb_hotplug_Xres; |
| 73 | extern int viafb_hotplug_Yres; |
| 74 | extern int viafb_hotplug_bpp; |
| 75 | extern int viafb_hotplug_refresh; |
| 76 | extern int viafb_primary_dev; |
Joseph Chan | c09c782 | 2008-10-15 22:03:23 -0700 | [diff] [blame] | 77 | |
Joseph Chan | c09c782 | 2008-10-15 22:03:23 -0700 | [diff] [blame] | 78 | extern int viafb_lcd_panel_id; |
| 79 | |
| 80 | #endif /* __GLOBAL_H__ */ |