diff options
author | Joseph Chan <JosephChan@via.com.tw> | 2008-10-16 01:03:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 14:21:41 -0400 |
commit | c09c782f3e7d38e1f3842822209bb6faff4a2b1b (patch) | |
tree | aa562eaabded25a86e0749ea5b3774ef2e334a3b /drivers/video/via/global.c | |
parent | ae35e8106a960dc19c930badd80dd14d47d83839 (diff) |
viafb: dvi.c, dvi.h, global.c and global.h
dvi.c, dvi.h: TMDS generic process and setting.
global.c, global.h: define global variabls.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Joseph Chan <josephchan@via.com.tw>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/via/global.c')
-rw-r--r-- | drivers/video/via/global.c | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/drivers/video/via/global.c b/drivers/video/via/global.c new file mode 100644 index 000000000000..468be2425af3 --- /dev/null +++ b/drivers/video/via/global.c | |||
@@ -0,0 +1,60 @@ | |||
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 | #include "global.h" | ||
22 | int viafb_platform_epia_dvi = STATE_OFF; | ||
23 | int viafb_device_lcd_dualedge = STATE_OFF; | ||
24 | int viafb_bus_width = 12; | ||
25 | int viafb_display_hardware_layout = HW_LAYOUT_LCD_DVI; | ||
26 | int viafb_memsize; | ||
27 | int viafb_DeviceStatus = CRT_Device; | ||
28 | int viafb_hotplug; | ||
29 | int viafb_refresh = 60; | ||
30 | int viafb_refresh1 = 60; | ||
31 | int viafb_lcd_dsp_method = LCD_EXPANDSION; | ||
32 | int viafb_lcd_mode = LCD_OPENLDI; | ||
33 | int viafb_bpp = 32; | ||
34 | int viafb_bpp1 = 32; | ||
35 | int viafb_accel = 1; | ||
36 | int viafb_CRT_ON = 1; | ||
37 | int viafb_DVI_ON; | ||
38 | int viafb_LCD_ON ; | ||
39 | int viafb_LCD2_ON; | ||
40 | int viafb_SAMM_ON; | ||
41 | int viafb_dual_fb; | ||
42 | int viafb_hotplug_Xres = 640; | ||
43 | int viafb_hotplug_Yres = 480; | ||
44 | int viafb_hotplug_bpp = 32; | ||
45 | int viafb_hotplug_refresh = 60; | ||
46 | unsigned int viafb_second_offset; | ||
47 | int viafb_second_size; | ||
48 | int viafb_primary_dev = None_Device; | ||
49 | void __iomem *viafb_FB_MM; | ||
50 | unsigned int viafb_second_xres = 640; | ||
51 | unsigned int viafb_second_yres = 480; | ||
52 | unsigned int viafb_second_virtual_xres; | ||
53 | unsigned int viafb_second_virtual_yres; | ||
54 | int viafb_lcd_panel_id = LCD_PANEL_ID_MAXIMUM + 1; | ||
55 | struct fb_cursor viacursor; | ||
56 | struct fb_info *viafbinfo; | ||
57 | struct fb_info *viafbinfo1; | ||
58 | struct viafb_par *viaparinfo; | ||
59 | struct viafb_par *viaparinfo1; | ||
60 | |||