viamode.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #ifndef __VIAMODE_H__
  7. #define __VIAMODE_H__
  8. #include "global.h"
  9. struct VPITTable {
  10. unsigned char Misc;
  11. unsigned char SR[StdSR];
  12. unsigned char GR[StdGR];
  13. unsigned char AR[StdAR];
  14. };
  15. struct patch_table {
  16. int table_length;
  17. struct io_reg *io_reg_table;
  18. };
  19. extern int NUM_TOTAL_CN400_ModeXregs;
  20. extern int NUM_TOTAL_CN700_ModeXregs;
  21. extern int NUM_TOTAL_KM400_ModeXregs;
  22. extern int NUM_TOTAL_CX700_ModeXregs;
  23. extern int NUM_TOTAL_VX855_ModeXregs;
  24. extern int NUM_TOTAL_CLE266_ModeXregs;
  25. extern int NUM_TOTAL_PATCH_MODE;
  26. extern struct io_reg CN400_ModeXregs[];
  27. extern struct io_reg CN700_ModeXregs[];
  28. extern struct io_reg KM400_ModeXregs[];
  29. extern struct io_reg CX700_ModeXregs[];
  30. extern struct io_reg VX800_ModeXregs[];
  31. extern struct io_reg VX855_ModeXregs[];
  32. extern struct io_reg CLE266_ModeXregs[];
  33. extern struct io_reg PM1024x768[];
  34. extern struct patch_table res_patch_table[];
  35. extern struct VPITTable VPIT;
  36. const struct fb_videomode *viafb_get_best_mode(int hres, int vres,
  37. int refresh);
  38. const struct fb_videomode *viafb_get_best_rb_mode(int hres, int vres,
  39. int refresh);
  40. #endif /* __VIAMODE_H__ */