PageRenderTime 35ms CodeModel.GetById 6ms RepoModel.GetById 0ms app.codeStats 0ms

/src/vb_setmode.h

#
C Header | 90 lines | 50 code | 14 blank | 26 comment | 0 complexity | 5c2a9f4be6b8d027e8381d3dfe4f09c3 MD5 | raw file
Possible License(s): MIT
  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. #ifndef _VBSETMODE_
  27. #define _VBSETMODE_
  28. extern void InitTo330Pointer(UCHAR,PVB_DEVICE_INFO);
  29. extern void XGI_UnLockCRT2(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
  30. extern void XGI_LockCRT2(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
  31. extern void XGI_LongWait( PVB_DEVICE_INFO );
  32. extern void XGI_SetCRT2ModeRegs(USHORT ModeNo,PXGI_HW_DEVICE_INFO, PVB_DEVICE_INFO );
  33. extern void XGI_DisableBridge(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
  34. extern void XGI_EnableBridge(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
  35. extern void XGI_DisplayOff( PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
  36. extern void XGI_DisplayOn( PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
  37. extern void XGI_GetVBType(PVB_DEVICE_INFO);
  38. extern void XGI_SenseCRT1(PVB_DEVICE_INFO );
  39. extern void XGI_GetVGAType(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
  40. extern void XGI_GetVBInfo(USHORT ModeNo,USHORT ModeIdIndex,PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
  41. extern void XGI_GetTVInfo(USHORT ModeNo,USHORT ModeIdIndex, PVB_DEVICE_INFO );
  42. extern void XGI_SetCRT1Offset(USHORT ModeNo,USHORT ModeIdIndex,USHORT RefreshRateTableIndex,PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
  43. extern void XGI_SetLCDAGroup(USHORT ModeNo,USHORT ModeIdIndex,PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO );
  44. /* Jong 10/04/2007; merge code */
  45. extern USHORT XGI_GetResInfo(USHORT ModeNo,USHORT ModeIdIndex, PVB_DEVICE_INFO pVBInfo);
  46. extern BOOLEAN XGISetModeNew(PXGI_HW_DEVICE_INFO HwDeviceExtension,
  47. PVB_DEVICE_INFO pVBInfo, USHORT ModeNo);
  48. extern BOOLEAN CheckDualChip(PVB_DEVICE_INFO );
  49. extern BOOLEAN XGI_GetLCDInfo(USHORT ModeNo,USHORT ModeIdIndex,PVB_DEVICE_INFO );
  50. extern BOOLEAN XGI_BridgeIsOn( PVB_DEVICE_INFO );
  51. extern BOOLEAN XGI_SetCRT2Group301(USHORT ModeNo, PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO);
  52. extern USHORT XGI_GetRatePtrCRT2( PXGI_HW_DEVICE_INFO HwDeviceExtension, USHORT ModeNo,USHORT ModeIdIndex, PVB_DEVICE_INFO );
  53. extern USHORT XGI_GetColorDepth(USHORT ModeNo, USHORT ModeIdIndex,
  54. const VB_DEVICE_INFO *pVBInfo);
  55. extern void XGI_SetSeqRegs(USHORT StandTableIndex,
  56. const VB_DEVICE_INFO *pVBInfo);
  57. extern void XGI_SetMiscRegs(USHORT StandTableIndex,
  58. const VB_DEVICE_INFO *pVBInfo);
  59. extern void XGI_SetCRTCRegs(unsigned StandTableIndex,
  60. const VB_DEVICE_INFO *pVBInfo);
  61. extern void XGI_SetATTRegs(unsigned ModeNo, unsigned StandTableIndex,
  62. unsigned ModeIdIndex, const VB_DEVICE_INFO *pVBInfo);
  63. extern void XGI_SetGRCRegs(unsigned StandTableIndex,
  64. const VB_DEVICE_INFO *pVBInfo);
  65. extern void XGI_ClearExt1Regs(unsigned ModeNo, const VB_DEVICE_INFO *pVBInfo);
  66. extern void XGI_SetXG21FPBits(PVB_DEVICE_INFO pVBInfo);
  67. extern void XGI_SetXG27FPBits(PVB_DEVICE_INFO pVBInfo);
  68. extern void XGI_XG21BLSignalVDD(USHORT tempbh,USHORT tempbl, PVB_DEVICE_INFO pVBInfo);
  69. extern void XGI_XG27BLSignalVDD(USHORT tempbh,USHORT tempbl, PVB_DEVICE_INFO pVBInfo);
  70. extern void XGI_XG21SetPanelDelay(USHORT tempbl, PVB_DEVICE_INFO pVBInfo);
  71. extern BOOLEAN XGI_XG21CheckLVDSMode(USHORT ModeNo,USHORT ModeIdIndex, PVB_DEVICE_INFO pVBInfo );
  72. extern void XGI_SetXG21LVDSPara(USHORT ModeNo,USHORT ModeIdIndex, PVB_DEVICE_INFO pVBInfo );
  73. extern USHORT XGI_GetLVDSOEMTableIndex(PVB_DEVICE_INFO pVBInfo);
  74. extern void XGI_SetSync(unsigned RefreshRateTableIndex,
  75. const VB_DEVICE_INFO *pVBInfo);
  76. #endif