xref: /openbmc/linux/drivers/video/fbdev/via/global.h (revision fbb6b31a)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
4  * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.
5 
6  */
7 
8 #ifndef __GLOBAL_H__
9 #define __GLOBAL_H__
10 
11 #include <linux/fb.h>
12 #include <linux/delay.h>
13 #include <linux/ioport.h>
14 #include <linux/pci.h>
15 #include <linux/io.h>
16 #include <linux/uaccess.h>
17 #include <linux/init.h>
18 #include <linux/proc_fs.h>
19 #include <linux/console.h>
20 #include <linux/timer.h>
21 
22 #ifdef CONFIG_X86
23 #include <asm/olpc.h>
24 #else
25 #define machine_is_olpc(x) 0
26 #endif
27 
28 #include "debug.h"
29 
30 #include "viafbdev.h"
31 #include "chip.h"
32 #include "accel.h"
33 #include "share.h"
34 #include "dvi.h"
35 #include "viamode.h"
36 #include "hw.h"
37 
38 #include "lcd.h"
39 #include "ioctl.h"
40 #include "via_utility.h"
41 #include "vt1636.h"
42 #include "tblDPASetting.h"
43 
44 /* External struct*/
45 
46 extern int viafb_platform_epia_dvi;
47 extern int viafb_device_lcd_dualedge;
48 extern int viafb_bus_width;
49 extern int viafb_display_hardware_layout;
50 extern struct offset offset_reg;
51 extern struct viafb_par *viaparinfo;
52 extern struct viafb_par *viaparinfo1;
53 extern struct fb_info *viafbinfo;
54 extern struct fb_info *viafbinfo1;
55 extern int viafb_DeviceStatus;
56 extern int viafb_refresh;
57 extern int viafb_refresh1;
58 extern int viafb_lcd_dsp_method;
59 extern int viafb_lcd_mode;
60 
61 extern int viafb_CRT_ON;
62 extern unsigned int viafb_second_xres;
63 extern unsigned int viafb_second_yres;
64 extern int viafb_hotplug_Xres;
65 extern int viafb_hotplug_Yres;
66 extern int viafb_hotplug_bpp;
67 extern int viafb_hotplug_refresh;
68 extern int viafb_primary_dev;
69 
70 extern int viafb_lcd_panel_id;
71 
72 #endif /* __GLOBAL_H__ */
73