Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
0004  * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.
0005 
0006  */
0007 
0008 #ifndef __DVI_H__
0009 #define __DVI_H__
0010 
0011 /*Definition TMDS Device ID register*/
0012 #define     VT1632_DEVICE_ID_REG        0x02
0013 #define     VT1632_DEVICE_ID            0x92
0014 
0015 #define     GET_DVI_SIZE_BY_SYSTEM_BIOS     0x01
0016 #define     GET_DVI_SIZE_BY_VGA_BIOS        0x02
0017 #define     GET_DVI_SZIE_BY_HW_STRAPPING    0x03
0018 
0019 /* Definition DVI Panel ID*/
0020 /* Resolution: 640x480,   Channel: single, Dithering: Enable */
0021 #define     DVI_PANEL_ID0_640X480       0x00
0022 /* Resolution: 800x600,   Channel: single, Dithering: Enable */
0023 #define     DVI_PANEL_ID1_800x600       0x01
0024 /* Resolution: 1024x768,  Channel: single, Dithering: Enable */
0025 #define     DVI_PANEL_ID1_1024x768      0x02
0026 /* Resolution: 1280x768,  Channel: single, Dithering: Enable */
0027 #define     DVI_PANEL_ID1_1280x768      0x03
0028 /* Resolution: 1280x1024, Channel: dual,   Dithering: Enable */
0029 #define     DVI_PANEL_ID1_1280x1024     0x04
0030 /* Resolution: 1400x1050, Channel: dual,   Dithering: Enable */
0031 #define     DVI_PANEL_ID1_1400x1050     0x05
0032 /* Resolution: 1600x1200, Channel: dual,   Dithering: Enable */
0033 #define     DVI_PANEL_ID1_1600x1200     0x06
0034 
0035 /* Define the version of EDID*/
0036 #define     EDID_VERSION_1      1
0037 #define     EDID_VERSION_2      2
0038 
0039 #define     DEV_CONNECT_DVI     0x01
0040 #define     DEV_CONNECT_HDMI    0x02
0041 
0042 int viafb_dvi_sense(void);
0043 void viafb_dvi_disable(void);
0044 void viafb_dvi_enable(void);
0045 bool viafb_tmds_trasmitter_identify(void);
0046 void viafb_init_dvi_size(struct tmds_chip_information *tmds_chip,
0047     struct tmds_setting_information *tmds_setting);
0048 void viafb_dvi_set_mode(const struct fb_var_screeninfo *var,
0049     u16 cxres, u16 cyres, int iga);
0050 
0051 #endif /* __DVI_H__ */