PageRenderTime 44ms CodeModel.GetById 14ms app.highlight 23ms RepoModel.GetById 1ms app.codeStats 1ms

/src/vb_setmode.h

#
C++ Header | 90 lines | 50 code | 14 blank | 26 comment | 0 complexity | 5c2a9f4be6b8d027e8381d3dfe4f09c3 MD5 | raw file
 1/* Copyright (C) 2003-2006 by XGI Technology, Taiwan.
 2 *
 3 * All Rights Reserved.
 4 *
 5 * Permission is hereby granted, free of charge, to any person obtaining
 6 * a copy of this software and associated documentation files (the
 7 * "Software"), to deal in the Software without restriction, including
 8 * without limitation on the rights to use, copy, modify, merge,
 9 * publish, distribute, sublicense, and/or sell copies of the Software,
10 * and to permit persons to whom the Software is furnished to do so,
11 * subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice (including the
14 * next paragraph) shall be included in all copies or substantial
15 * portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 * NON-INFRINGEMENT.  IN NO EVENT SHALL XGI AND/OR
21 *  ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24 * DEALINGS IN THE SOFTWARE.
25 */
26 
27#ifndef  _VBSETMODE_
28#define  _VBSETMODE_
29
30extern   void     InitTo330Pointer(UCHAR,PVB_DEVICE_INFO);
31extern   void     XGI_UnLockCRT2(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
32extern   void     XGI_LockCRT2(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
33extern   void     XGI_LongWait( PVB_DEVICE_INFO );
34extern   void     XGI_SetCRT2ModeRegs(USHORT ModeNo,PXGI_HW_DEVICE_INFO,  PVB_DEVICE_INFO  );
35extern   void     XGI_DisableBridge(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
36extern   void  	  XGI_EnableBridge(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
37extern   void     XGI_DisplayOff( PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
38extern   void     XGI_DisplayOn( PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
39extern   void     XGI_GetVBType(PVB_DEVICE_INFO);
40extern   void     XGI_SenseCRT1(PVB_DEVICE_INFO );
41extern   void     XGI_GetVGAType(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
42extern   void     XGI_GetVBInfo(USHORT ModeNo,USHORT ModeIdIndex,PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
43extern   void     XGI_GetTVInfo(USHORT ModeNo,USHORT ModeIdIndex, PVB_DEVICE_INFO );
44extern   void     XGI_SetCRT1Offset(USHORT ModeNo,USHORT ModeIdIndex,USHORT RefreshRateTableIndex,PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
45extern   void     XGI_SetLCDAGroup(USHORT ModeNo,USHORT ModeIdIndex,PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
46
47/* Jong 10/04/2007; merge code */
48extern   USHORT   XGI_GetResInfo(USHORT ModeNo,USHORT ModeIdIndex, PVB_DEVICE_INFO pVBInfo);
49
50extern BOOLEAN XGISetModeNew(PXGI_HW_DEVICE_INFO HwDeviceExtension,
51    PVB_DEVICE_INFO pVBInfo, USHORT ModeNo);
52
53extern   BOOLEAN  CheckDualChip(PVB_DEVICE_INFO );
54extern   BOOLEAN  XGI_GetLCDInfo(USHORT ModeNo,USHORT ModeIdIndex,PVB_DEVICE_INFO );
55extern   BOOLEAN  XGI_BridgeIsOn( PVB_DEVICE_INFO );
56extern   BOOLEAN  XGI_SetCRT2Group301(USHORT ModeNo, PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO);
57extern   USHORT   XGI_GetRatePtrCRT2( PXGI_HW_DEVICE_INFO HwDeviceExtension, USHORT ModeNo,USHORT ModeIdIndex, PVB_DEVICE_INFO );
58
59extern USHORT XGI_GetColorDepth(USHORT ModeNo, USHORT ModeIdIndex,
60    const VB_DEVICE_INFO *pVBInfo);
61
62extern void XGI_SetSeqRegs(USHORT StandTableIndex,
63    const VB_DEVICE_INFO *pVBInfo);
64
65extern void XGI_SetMiscRegs(USHORT StandTableIndex,
66    const VB_DEVICE_INFO *pVBInfo);
67
68extern void XGI_SetCRTCRegs(unsigned StandTableIndex,
69    const VB_DEVICE_INFO *pVBInfo);
70
71extern void XGI_SetATTRegs(unsigned ModeNo, unsigned StandTableIndex,
72    unsigned ModeIdIndex, const VB_DEVICE_INFO *pVBInfo);
73
74extern void XGI_SetGRCRegs(unsigned StandTableIndex,
75    const VB_DEVICE_INFO *pVBInfo);
76
77extern void XGI_ClearExt1Regs(unsigned ModeNo, const VB_DEVICE_INFO *pVBInfo);
78
79extern   void     XGI_SetXG21FPBits(PVB_DEVICE_INFO pVBInfo);
80extern   void     XGI_SetXG27FPBits(PVB_DEVICE_INFO pVBInfo);
81extern   void     XGI_XG21BLSignalVDD(USHORT tempbh,USHORT tempbl, PVB_DEVICE_INFO pVBInfo);
82extern   void     XGI_XG27BLSignalVDD(USHORT tempbh,USHORT tempbl, PVB_DEVICE_INFO pVBInfo);
83extern   void     XGI_XG21SetPanelDelay(USHORT tempbl, PVB_DEVICE_INFO pVBInfo);
84extern   BOOLEAN  XGI_XG21CheckLVDSMode(USHORT ModeNo,USHORT ModeIdIndex, PVB_DEVICE_INFO pVBInfo );
85extern   void     XGI_SetXG21LVDSPara(USHORT ModeNo,USHORT ModeIdIndex, PVB_DEVICE_INFO pVBInfo );
86extern   USHORT XGI_GetLVDSOEMTableIndex(PVB_DEVICE_INFO pVBInfo);
87
88extern void XGI_SetSync(unsigned RefreshRateTableIndex,
89    const VB_DEVICE_INFO *pVBInfo);
90#endif