; For VIA Chrome9 HC IGP WinXP Display Driver installation INF 
;
; Copyright (c) 2006 VIA Technologies, Inc.
;

[Version]
Signature="$CHICAGO$"
Provider=%S3GRAPHICS%
ClassGUID={4D36E968-E325-11CE-BFC1-08002BE10318}
Class=Display
CatalogFile=s3g700.cat
DriverVer=07/06/2007, 6.14.10.0099
;20.00.01g

[ControlFlags]
ExcludeFromSelect = *

[DestinationDirs]
DefaultDestDir      = 11
S3G700.Miniport     = 12
S3G700.Display      = 11
S3G700.Icd          = 11
viagfx.INF          = 11
DefaultUSys.Copy    = 11
DefaultUHlp.Copy    = 18
CfgSys.Copy         = 11
CfgHlp.Copy         = 18
TraypSys.Copy       = 11
TraypHlp.Copy       = 18
UninstSys.Copy      = 11
VTTimer.Copy        = 11

[Manufacturer]
%S3GRAPHICS% = S3.Mfg

[S3.Mfg]
"VIA Chrome9 HC IGP Family"         = S3G700, PCI\VEN_1106&DEV_3371

[S3G700]
CopyFiles = S3G700.Miniport, S3G700.Display, S3G700.Icd, DefaultUHlp.Copy, DefaultUSys.Copy, VTTimer.Copy, CfgSys.Copy, CfgHlp.Copy, TraypSys.Copy, TraypHlp.Copy, UninstSys.Copy, viagfx.INF
AddReg = S3ICDCommon.AddReg, DefaultU.AddReg, CfgNT.AddReg, TraypNT.AddReg, CoInstaller.AddReg
DelReg = S3ICDCommon.AddReg

[DefaultUninstall]
DelReg = S3ICDCommon.AddReg, DefaultU.AddReg, CfgNT.AddReg, TraypNT.AddReg, CoInstaller.AddReg
DelFiles = S3G700.Miniport, S3G700.Display, S3G700.Icd, DefaultUHlp.Copy, DefaultUSys.Copy,  VTTimer.Copy, CfgSys.Copy, CfgHlp.Copy, TraypSys.Copy, TraypHlp.Copy, UninstSys.Copy, viagfx.INF
 
[S3G700.GeneralConfigData]
MaximumDeviceMemoryConfiguration= 256
MaximumNumberOfDevices          = 4
SessionImageSize                = 16

[S3G700.Services]
AddService = S3GIGP, 0x00000002, S3G700_Service_Inst, S3G700_EventLog_Inst

[S3G700_Service_Inst]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Video
ServiceBinary  = %12%\S3gIGPm.sys

[S3G700_EventLog_Inst]
AddReg = S3G700_EventLog_AddReg

[S3G700_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\S3gIGPm.sys"
HKR,,TypesSupported,0x00010001,7


;
; Software Installation
;
[S3G700.SoftwareSettings]
AddReg = S3G700_SoftwareDeviceSettings
DelReg = S3G700_UserPreferences 

[S3G700_SoftwareDeviceSettings]
HKR,, InstalledDisplayDrivers,      %REG_MULTI_SZ%, S3gIGP
HKR,, VgaCompatible,                %REG_DWORD%,    0
HKR,, SupportIcd,                   %REG_DWORD%,    1
HKR,, SupportSAMM,                  %REG_DWORD%,    1
HKR,, DefaultSettings.XResolution,  %REG_DWORD%,    800
HKR,, DefaultSettings.YResolution,  %REG_DWORD%,    600
HKR,, DefaultSettings.BitsPerPel,   %REG_DWORD%,    32
HKR,, DefaultSettings.VRefresh,     %REG_DWORD%,    60
HKR,, UseAGPDMA,                    %REG_DWORD%,    1
HKR,, bSupportCRTCalibration,       %REG_DWORD%,    1
HKR,, SupportRotation_90,           %REG_DWORD%,    0
HKR,, SupportRotation_180,          %REG_DWORD%,    0
HKR,, SupportRotation_270,          %REG_DWORD%,    0
HKR,, RotationDegree,               %REG_DWORD%,    0
HKR,, S3GDW_DXVAType,               %REG_DWORD%,    0
HKR,, S3GDW_FrontEndBlend,          %REG_DWORD%,    1

HKR,, HalcyonFFPSCacheEnable,       	%REG_DWORD%,    1
HKR,, HalcyonPPSCacheEnable,        	%REG_DWORD%,    1
HKR,, HalcyonEnableTnL,             	%REG_DWORD%,    1
HKR,, HalcyonEnableVS,              	%REG_DWORD%,    1
HKR,, HalcyonEnableSWCulling,       	%REG_DWORD%,    1
HKR,, HalcyonCoarseZEnable,         	%REG_DWORD%,    1
HKR,, HalcyonDirectAccessFB,        	%REG_DWORD%,    0
HKR,, HalcyonPSOptInstReorder,      	%REG_DWORD%,    1
HKR,, HalcyonPSOptRemoveRedundants, 	%REG_DWORD%,    1
HKR,, HalcyonPSOptRemoveUnnecessaryMOV, %REG_DWORD%,    1
HKR,, HalcyonPSOptCoissue,              %REG_DWORD%,    1
HKR,, HalcyonPSOptMerge,                %REG_DWORD%,    1
HKR,, HalcyonPSOptSecondDest,           %REG_DWORD%,    1
HKR,, HalcyonPSOptRemap,                %REG_DWORD%,    1
HKR,, HalcyonPSOptCoissueSimMov,        %REG_DWORD%,    1
HKR,, HalcyonSPSENABLE,                 %REG_DWORD%,    0

HKR,, HalcyonTexReadThreshold,          %REG_DWORD%,    0x00
HKR,, HalcyonZReadFIFOThreshold,        %REG_DWORD%,    0x04
HKR,, HalcyonZWriteFIFOThreshold,       %REG_DWORD%,    0x0F
HKR,, HalcyonVBReadThreshold,           %REG_DWORD%,    0x00
HKR,, HalcyonTexAddrReadFIFOThreshold,  %REG_DWORD%,    0x00
HKR,, HalcyonColorReadFIFOThreshold,    %REG_DWORD%,    0x00
HKR,, HalcyonRCDThreshold,              %REG_DWORD%,    0x00
HKR,, HalcyonCoarseZReadThreshold,      %REG_DWORD%,    0x04
HKR,, HalcyonDMAReadWritePriMSK,        %REG_DWORD%,    0x00
HKR,, HalcyonZWritePriMSK,              %REG_DWORD%,    0xFB
HKR,, HalcyonZReadPriMSK,               %REG_DWORD%,    0x49
HKR,, HalcyonColorWritePriMSK,          %REG_DWORD%,    0xDB
HKR,, HalcyonColorReadPriMSK,           %REG_DWORD%,    0xCB
HKR,, HalcyonStencilBufReadPriMSK,      %REG_DWORD%,    0x4B
HKR,, HalcyonStencilBufWritePriMSK,     %REG_DWORD%,    0xFF
HKR,, HalcyonCZReadWritePriMSK,         %REG_DWORD%,    0x09
HKR,, HalcyonTexReadPriMSK,             %REG_DWORD%,    0x01
HKR,, HalcyonVBReadePriMSK,             %REG_DWORD%,    0x00

HKR,, HalcyonCModelType,            	%REG_DWORD%,    0
HKR,, HalcyonDump2DCommand,         	%REG_DWORD%,    0
HKR,, HalcyonDumpEnable,            	%REG_DWORD%,    0
HKR,, HalcyonDumpEnd,               	%REG_DWORD%,    0
HKR,, HalcyonDumpMode,              	%REG_DWORD%,    0
HKR,, HalcyonDumpRenderBitmap,      	%REG_DWORD%,    0
HKR,, HalcyonDumpStart,             	%REG_DWORD%,    0
HKR,, HalcyonDumpStride,            	%REG_DWORD%,    0
HKR,, HalcyonEnableFastZClear,      	%REG_DWORD%,    0
HKR,, HalcyonEnableHWClip,          	%REG_DWORD%,    0
HKR,, HalcyonEnableHWVB,            	%REG_DWORD%,    0
HKR,, HalcyonFastZ16IndexLen,       	%REG_DWORD%,    0
HKR,, HalcyonFastZ24IndexLen,       	%REG_DWORD%,    0
HKR,, HalcyonFastZ32IndexLen,       	%REG_DWORD%,    0
HKR,, HalcyonFBDumpEnable,          	%REG_DWORD%,    0
HKR,, HalcyonFFPSDumpEnable,        	%REG_DWORD%,    0
HKR,, HalcyonForcePCI,              	%REG_DWORD%,    0
HKR,, HalcyonFullUpdate,            	%REG_DWORD%,    0
HKR,, HalcyonMSPSDumpEnable,        	%REG_DWORD%,    0
HKR,, HalcyonMSVSDumpEnable,        	%REG_DWORD%,    0
HKR,, HalcyonPSDumpStyle,           	%REG_DWORD%,    0
HKR,, HalcyonSeparateStencilEnable, 	%REG_DWORD%,    0
HKR,, HalcyonSW2D,                  	%REG_DWORD%,    0
HKR,, HalcyonTiledDisplayEnable,    	%REG_DWORD%,    0
HKR,, HalcyonTiledRTEnable,         	%REG_DWORD%,    0
HKR,, HalcyonTiledZWEnable,         	%REG_DWORD%,    0
HKR,, HalcyonTiledTexEnable,        	%REG_DWORD%,    0
HKR,, S3GDW_AgpTexturing,         	%REG_DWORD%,    0
HKR,, HalcyonPPSDumpEnable,             %REG_DWORD%,    0
HKR,, HalcyonDisableOGLonSAMM,          %REG_DWORD%,    0
HKR,, PanelCenterExpandMode,		%REG_DWORD%,    2
HKR,, ForEmbeddedCustomer,              %REG_DWORD%,    1

; user-selected preferences reset to default settings upon installing a new driver
[S3G700_UserPreferences]
HKR,, UseDDCInfo
HKR,, TvFlickerFilterStatus
HKR,, PanelCenterExpandMode 	
HKR,, SingleController
HKR,, NtscTvPositionX
HKR,, NtscTvPositionY
HKR,, Pal6TvPositionX
HKR,, Pal6TvPositionY
HKR,, Pal8TvPositionX
HKR,, Pal8TvPositionY
HKR,, DisplaysActivePreference
HKR,, TvStandardPreference
HKR,, DdcMaxRefresh
HKR,, GammaFor16BppModes
HKR,, GammaFor32BppModes
HKR,, GammaIGA2For16BppModes
HKR,, GammaIGA2For32BppModes
HKR,, GammaSupportEnabled
HKR,, SupportRotation_90
HKR,, SupportRotation_180
HKR,, SupportRotation_270
HKR,, RotationDegree

[CoInstaller.AddReg]
HKR,, CoInstallers32,                  %REG_MULTI_SZ%,"S3iset32.dll, slCoInstaller"

;
; Source file information
;

[SourceDisksNames.x86]
1 = %DiskId%,,,""

[SourceDisksFiles]
S3gIGPm.sys         = 1
S3gIGP.dll          = 1
s3ginv.dll          = 1
s3gIGPgl.dll	    = 1
dc04emb.inf           = 1

; == S3 Display Utility
S3Disply.cfg = 1
S3Displ2.cfg = 1
S3Displ3.cfg = 1
S3Disply.dll = 1
S3DspChs.hlp = 1
S3DspCht.hlp = 1
S3DspJpn.hlp = 1
S3DspKor.hlp = 1
S3DspWst.hlp = 1
S3DspTha.hlp = 1
S3DspWs2.hlp = 1

; == S3Gamma2 utility
S3Gamma2.dll = 1
S3Gamma2.cfg = 1
S3Gama_2.cfg = 1
S3Gm2WST.hlp = 1
S3Gm2CHS.hlp = 1
S3Gm2CHT.hlp = 1
S3Gm2JPN.hlp = 1
S3Gm2KOR.hlp = 1
S3Gm2Tha.hlp = 1
S3Gm2Ws2.hlp = 1

; == S3Info2 utility
S3Info2.dll  = 1
S3Info2.cfg  = 1
S3in2wst.hlp = 1
S3in2chs.hlp = 1
S3in2cht.hlp = 1
S3in2jpn.hlp = 1
S3in2kor.hlp = 1
S3In2Tha.hlp = 1
S3in2ws2.hlp = 1

; == S3Overlay utility
S3ovrlay.dll = 1
S3ovrlay.cfg = 1
S3Ovrly2.cfg = 1
S3ovlwst.hlp = 1
S3ovlchs.hlp = 1
S3ovlcht.hlp = 1
S3ovljpn.hlp = 1
S3ovlkor.hlp = 1
S3OvlTha.hlp = 1
S3OvlWs2.hlp = 1

; == S3Config3D utility
S3Cfg3d.dll  = 1
S3Cfg3d.cfg  = 1
S3Cfgwst.hlp = 1
S3CfgChs.hlp = 1
S3CfgCht.hlp = 1
S3CfgJpn.hlp = 1
S3CfgKor.hlp = 1
S3CfgTha.hlp = 1
S3CfgWs2.hlp = 1

; == S3Tray Plus utility
S3Trayp.exe  = 1
S3Trayp.cfg  = 1
S3TrayP2.cfg = 1
S3Tpwst.hlp  = 1
S3TPChs.hlp  = 1
S3TPCht.hlp  = 1
S3TPJpn.hlp  = 1
S3TPKor.hlp  = 1
S3TPTha.hlp  = 1
S3TPWs2.hlp  = 1

; == others
VTTimer.exe  = 1
VTSetVga.exe = 1

; == UnInstall
S3minset.exe = 1

; == CoInstall
S3iset32.dll = 1

;
; Common AddReg sections
;
;; ------------------------------------------------------------------
;;	  		OpenGL ICD Installation
;; ------------------------------------------------------------------
[S3ICDCommon.AddReg]
HKLM,SOFTWARE\Microsoft\%WinNTDir%\CurrentVersion\OpenGLDrivers\%S3ICDKEY%,Version, %REG_DWORD%, 00000002
HKLM,SOFTWARE\Microsoft\%WinNTDir%\CurrentVersion\OpenGLDrivers\%S3ICDKEY%,DriverVersion, %REG_DWORD%, 0x00000001
HKLM,SOFTWARE\Microsoft\%WinNTDir%\CurrentVersion\OpenGLDrivers\%S3ICDKEY%,Dll,, "s3gIGPgl"
HKLM,SOFTWARE\Microsoft\%WinNTDir%\CurrentVersion\OpenGLDrivers\%S3ICDKEY%,Flags, %REG_DWORD%, 00000001

[DefaultU.AddReg]
;; ------------------------------------------------------------------
;;		  		S3Display
;; ------------------------------------------------------------------
HKCR,CLSID\%S3DISPCLS%,,,"S3Display Property Sheet"
HKCR,CLSID\%S3DISPCLS%\InProcServer32,,,S3Disply.dll
HKCR,CLSID\%S3DISPCLS%\InProcServer32,ThreadingModel,,Apartment
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Display,"",,%S3DISPCLS%
HKLM,%S3DSPKEY%,Installed,,1
HKLM,%S3DSPKEY%,Filename,,S3Disply.dll
HKLM,%S3DSPKEY%,UtilityName,,%S3DISPNAME%
HKLM,%S3DSPKEY%,ConfigNum,,0
HKLM,%S3DSPKEY%,URL,,http://www.s3graphics.com
HKLM,%S3DSPKEY%,UIStyle,,Chrome

;; ------------------------------------------------------------------
;;		  		S3Gamma Plus
;; ------------------------------------------------------------------
HKCR,CLSID\%GM2CLSID%,,,"S3Gamma2 Property Sheet"
HKCR,CLSID\%GM2CLSID%\InProcServer32,,,"S3Gamma2.dll"
HKCR,CLSID\%GM2CLSID%\InProcServer32,ThreadingModel,,"Apartment"
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Gamma2,"",,%GM2CLSID%
HKLM,%S3G2KEY%,Installed,,1
HKLM,%S3G2KEY%,Filename,,S3Gamma2.dll
HKLM,%S3G2KEY%,UtilityName,,%GM2NAME%
HKLM,%S3G2KEY%,URL,,http://www.s3graphics.com
HKLM,%S3G2KEY%,UIStyle,,Chrome

;; ------------------------------------------------------------------
;;		  		S3Info Plus
;; ------------------------------------------------------------------
HKCR,CLSID\%INFO2CLS%,,,"S3Info2 Property Sheet"
HKCR,CLSID\%INFO2CLS%\InProcServer32,,,S3Info2.dll
HKCR,CLSID\%INFO2CLS%\InProcServer32,ThreadingModel,,Apartment
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Info2,"",,%INFO2CLS%
HKLM,%INFO2KEY%,Filename,,S3Info2.dll
HKLM,%INFO2KEY%,URL,,http://www.s3graphics.com
HKLM,%INFO2KEY%,UMAEnabled,,OFF
HKLM,%INFO2KEY%,UIStyle,,Chrome

;; ------------------------------------------------------------------
;;		  		S3Overlay
;; ------------------------------------------------------------------
HKCR,CLSID\%OVERLAYCLS%,,,"S3Overlay Property Sheet"
HKCR,CLSID\%OVERLAYCLS%\InProcServer32,,,S3Ovrlay.dll
HKCR,CLSID\%OVERLAYCLS%\InProcServer32,ThreadingModel,,Apartment
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Overlay,"",,%OVERLAYCLS%
HKLM,%OVERLAYKEY%,Filename,,S3Ovrlay.dll
HKLM,%OVERLAYKEY%,URL,,http://www.s3graphics.com
HKLM,%OVERLAYKEY%,UIStyle,,Chrome

; ---------------------------------------------------------------------
;                               S3Timer
; ---------------------------------------------------------------------
HKLM,Software\Microsoft\Windows\CurrentVersion\Run,VTTimer,,"VTTimer.exe"
HKLM,%S3TimerKey%,NeverLaunched,,1

;; ------------------------------------------------------------------
;;		  		Add/Remove Program Item
;; ------------------------------------------------------------------
HKLM,%CURVER%\Uninstall\%UnistDispName%,"DisplayName",,"%UnistDispName%"
HKLM,%CURVER%\Uninstall\%UnistDispName%,"DisplayIcon",,"%11%\s3minset.exe"
HKLM,%CURVER%\Uninstall\%UnistDispName%,UninstallString,,"%11%\s3minset.exe -uninf -u '%UnistDispName%' -ver '%DriverVer%'"

;; ------------------------------------------------------------------
;;		  		S3Config3D
;; ------------------------------------------------------------------
[CfgNT.AddReg]
HKCR,CLSID\%Cfg3dCLS%,,,"S3ConfigD3D Property Sheet"
HKCR,CLSID\%Cfg3dCLS%\InProcServer32,,,S3Cfg3d.dll
HKCR,CLSID\%Cfg3dCLS%\InProcServer32,ThreadingModel,,Apartment
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Config3D,"",,%Cfg3dCLS%
HKLM,%Cfg3dKEY%,Filename,,S3Cfg3d.dll
HKLM,%Cfg3dKEY%,URL,,http://www.s3graphics.com
HKLM,%Cfg3dKEY%,UIStyle,,Chrome

;; ------------------------------------------------------------------
;;		  		S3Tray Plus
;; ------------------------------------------------------------------
[TraypNT.AddReg]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,S3Trayp,,"S3trayp.exe"


;
; File sections
;

[viagfx.INF]
dc04emb.inf

[S3G700.Miniport]
S3gIGPm.sys

[S3G700.Display]
S3gIGP.dll
s3ginv.dll

[S3G700.Icd]
s3gIGPgl.dll

[DefaultUSys.Copy]
S3Disply.cfg
S3Displ2.cfg
S3Displ3.cfg
S3Disply.dll
S3Gamma2.dll
S3Gamma2.cfg
S3Gama_2.cfg
S3Info2.dll
S3Info2.cfg
S3ovrlay.dll
S3ovrlay.cfg
S3Ovrly2.cfg
S3minset.exe
S3iset32.dll

[DefaultUHlp.Copy]
S3DspChs.hlp
S3DspCht.hlp
S3DspJpn.hlp
S3DspKor.hlp
S3DspWst.hlp
S3DspTha.hlp
S3DspWs2.hlp
S3Gm2WST.hlp
S3Gm2CHS.hlp
S3Gm2CHT.hlp
S3Gm2JPN.hlp
S3Gm2KOR.hlp
S3Gm2Tha.hlp
S3Gm2Ws2.hlp
S3in2wst.hlp
S3in2chs.hlp
S3in2cht.hlp
S3in2jpn.hlp
S3in2kor.hlp
S3In2Tha.hlp
S3in2ws2.hlp
S3ovlwst.hlp
S3ovlchs.hlp
S3ovlcht.hlp
S3ovljpn.hlp
S3ovlkor.hlp
S3OvlTha.hlp
S3OvlWs2.hlp

[CfgSys.Copy]
S3Cfg3d.dll
S3Cfg3d.cfg
[CfgHlp.Copy]
S3cfgwst.hlp
S3CfgChs.hlp
S3CfgCht.hlp
S3CfgJpn.hlp
S3CfgKor.hlp
S3CfgTha.hlp
S3CfgWs2.hlp

[TraypSys.Copy]
S3Trayp.exe
S3Trayp.cfg
S3TrayP2.cfg
[TraypHlp.Copy]
S3tpwst.hlp
S3TPChs.hlp
S3TPCht.hlp
S3TPJpn.hlp
S3TPKor.hlp
S3TPTha.hlp
S3TPWs2.hlp

[VTTimer.Copy]
VTTimer.exe

[UninstSys.Copy]
VTSetvga.exe

[Strings]
;
; Non-Localizable Strings
;
REG_MULTI_SZ   = 0x00010000
REG_DWORD      = 0x00010001

;
; Localizable Strings
;
S3GRAPHICS  = "S3 Graphics Co., Ltd."
DiskId      = "S3 Graphics Co., Ltd. Installation DISK (VIDEO)"

; Strings specific to OpenGL ICD
WinNTDir    = "Windows NT"
S3ICDKEY    = "s3gIGPgl"

CtrlFld     = "Controls Folder"
CURVER      = "Software\Microsoft\Windows\CurrentVersion"

UnistDispName = "VIA Chrome9 HC IGP Family Display"
DriverVer = "07/06/2007, 6.14.10.0099"

; For S3Display
S3DISPCLS  = "{300b0160-6129-11d7-8dc7-00d0b72c72f7}"
S3DISPNAME = "S3Display"
S3DSPKEY   = "SOFTWARE\S3\S3Display"

; For S3Gamma2
GM2CLSID   = "{300b0161-6129-11d7-8dc7-00d0b72c72f7}"
GM2NAME    = "S3Gamma2"
S3G2KEY    = "SOFTWARE\S3\S3Gamma2"

; For S3Info2
INFO2CLS   = "{300b0162-6129-11d7-8dc7-00d0b72c72f7}"
INFO2KEY   = "SOFTWARE\S3\S3Info2"

; For S3Overlay
OVERLAYCLS   = "{300b0163-6129-11d7-8dc7-00d0b72c72f7}"
OVERLAYKEY   = "SOFTWARE\S3\S3Overlay"

; For S3Timer
S3TimerKey  = "SOFTWARE\S3\S3Timer"

; For S3Config3D
Cfg3dCLS   = "{ba87e880-5a57-11d3-bfcb-00aa0022f394}"
Cfg3dKEY   = "SOFTWARE\S3\S3Cfg3d"

; For S3Chromo
ChromoCLS   = "{ba87e880-5a57-11d3-bfcb-00aa0022f397}"
ChromoKEY   = "SOFTWARE\S3\S3Chromo"