viamode.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 __VIAMODE_H__
  19. #define __VIAMODE_H__
  20. #include "global.h"
  21. struct VPITTable {
  22. unsigned char Misc;
  23. unsigned char SR[StdSR];
  24. unsigned char GR[StdGR];
  25. unsigned char AR[StdAR];
  26. };
  27. struct VideoModeTable {
  28. struct crt_mode_table *crtc;
  29. int mode_array;
  30. };
  31. struct patch_table {
  32. int table_length;
  33. struct io_reg *io_reg_table;
  34. };
  35. extern int NUM_TOTAL_CN400_ModeXregs;
  36. extern int NUM_TOTAL_CN700_ModeXregs;
  37. extern int NUM_TOTAL_KM400_ModeXregs;
  38. extern int NUM_TOTAL_CX700_ModeXregs;
  39. extern int NUM_TOTAL_VX855_ModeXregs;
  40. extern int NUM_TOTAL_CLE266_ModeXregs;
  41. extern int NUM_TOTAL_PATCH_MODE;
  42. extern struct io_reg CN400_ModeXregs[];
  43. extern struct io_reg CN700_ModeXregs[];
  44. extern struct io_reg KM400_ModeXregs[];
  45. extern struct io_reg CX700_ModeXregs[];
  46. extern struct io_reg VX800_ModeXregs[];
  47. extern struct io_reg VX855_ModeXregs[];
  48. extern struct io_reg CLE266_ModeXregs[];
  49. extern struct io_reg PM1024x768[];
  50. extern struct patch_table res_patch_table[];
  51. extern struct VPITTable VPIT;
  52. struct VideoModeTable *viafb_get_mode(int hres, int vres);
  53. struct VideoModeTable *viafb_get_rb_mode(int hres, int vres);
  54. #endif /* __VIAMODE_H__ */