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