dvi.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 __DVI_H__
  7. #define __DVI_H__
  8. /*Definition TMDS Device ID register*/
  9. #define VT1632_DEVICE_ID_REG 0x02
  10. #define VT1632_DEVICE_ID 0x92
  11. #define GET_DVI_SIZE_BY_SYSTEM_BIOS 0x01
  12. #define GET_DVI_SIZE_BY_VGA_BIOS 0x02
  13. #define GET_DVI_SZIE_BY_HW_STRAPPING 0x03
  14. /* Definition DVI Panel ID*/
  15. /* Resolution: 640x480, Channel: single, Dithering: Enable */
  16. #define DVI_PANEL_ID0_640X480 0x00
  17. /* Resolution: 800x600, Channel: single, Dithering: Enable */
  18. #define DVI_PANEL_ID1_800x600 0x01
  19. /* Resolution: 1024x768, Channel: single, Dithering: Enable */
  20. #define DVI_PANEL_ID1_1024x768 0x02
  21. /* Resolution: 1280x768, Channel: single, Dithering: Enable */
  22. #define DVI_PANEL_ID1_1280x768 0x03
  23. /* Resolution: 1280x1024, Channel: dual, Dithering: Enable */
  24. #define DVI_PANEL_ID1_1280x1024 0x04
  25. /* Resolution: 1400x1050, Channel: dual, Dithering: Enable */
  26. #define DVI_PANEL_ID1_1400x1050 0x05
  27. /* Resolution: 1600x1200, Channel: dual, Dithering: Enable */
  28. #define DVI_PANEL_ID1_1600x1200 0x06
  29. /* Define the version of EDID*/
  30. #define EDID_VERSION_1 1
  31. #define EDID_VERSION_2 2
  32. #define DEV_CONNECT_DVI 0x01
  33. #define DEV_CONNECT_HDMI 0x02
  34. int viafb_dvi_sense(void);
  35. void viafb_dvi_disable(void);
  36. void viafb_dvi_enable(void);
  37. bool viafb_tmds_trasmitter_identify(void);
  38. void viafb_init_dvi_size(struct tmds_chip_information *tmds_chip,
  39. struct tmds_setting_information *tmds_setting);
  40. void viafb_dvi_set_mode(const struct fb_var_screeninfo *var,
  41. u16 cxres, u16 cyres, int iga);
  42. #endif /* __DVI_H__ */