blob: 7543d5f7e30911c5b0e374de947821a7b800a998 [file] [log] [blame]
Joseph Chanc09c7822008-10-15 22:03:23 -07001/*
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
38#include "iface.h"
39#include "viafbdev.h"
40#include "chip.h"
Joseph Chanc09c7822008-10-15 22:03:23 -070041#include "accel.h"
42#include "share.h"
43#include "dvi.h"
44#include "viamode.h"
45#include "via_i2c.h"
46#include "hw.h"
47
48#include "lcd.h"
49#include "ioctl.h"
Joseph Chanc09c7822008-10-15 22:03:23 -070050#include "via_utility.h"
51#include "vt1636.h"
52#include "tblDPASetting.h"
53#include "tbl1636.h"
Joseph Chanc09c7822008-10-15 22:03:23 -070054
55/* External struct*/
56
57extern int viafb_platform_epia_dvi;
58extern int viafb_device_lcd_dualedge;
59extern int viafb_bus_width;
60extern int viafb_display_hardware_layout;
61extern struct offset offset_reg;
62extern struct viafb_par *viaparinfo;
63extern struct viafb_par *viaparinfo1;
64extern struct fb_info *viafbinfo;
65extern struct fb_info *viafbinfo1;
66extern int viafb_DeviceStatus;
67extern int viafb_refresh;
68extern int viafb_refresh1;
69extern int viafb_lcd_dsp_method;
70extern int viafb_lcd_mode;
71extern int viafb_bpp;
72extern int viafb_bpp1;
73
74extern int viafb_CRT_ON;
75extern int viafb_hotplug_Xres;
76extern int viafb_hotplug_Yres;
77extern int viafb_hotplug_bpp;
78extern int viafb_hotplug_refresh;
79extern int viafb_primary_dev;
80extern void __iomem *viafb_FB_MM;
81extern struct fb_cursor viacursor;
82
83extern unsigned int viafb_second_xres;
84extern unsigned int viafb_second_yres;
85extern int viafb_lcd_panel_id;
86
87#endif /* __GLOBAL_H__ */