global.h 2.2 KB

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