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

[Version]
Signature="$CHICAGO$"
Provider=%S3GRAPHICS%
ClassGUID={4D36E968-E325-11CE-BFC1-08002BE10318}
Class=Display
CatalogFile=s3g700.cat
DriverVer=05/13/2011, 6.14.10.0343
;20.14.01m

[ControlFlags]
ExcludeFromSelect = *

[DestinationDirs]
DefaultDestDir      = 11
S3G700.Miniport     = 12
S3G700.Display      = 11
S3G700.Icd          = 11
Uninstaller.Files=11

[Manufacturer]
%S3GRAPHICS% = S3Mfg,NTx86.5.1

[S3Mfg]
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_71221106
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_1624103C
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_04101849
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_50311509
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_60501509
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_20191297
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_20181297
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_0CFD105B
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_360617AA
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_31261019
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_D0001458
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_AA281106
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_120A1565

[S3Mfg.NTx86.5.1]
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_71221106
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_1624103C
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_04101849
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_50311509
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_60501509
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_20191297
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_20181297
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_0CFD105B
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_360617AA
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_31261019
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_D0001458
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_AA281106
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_120A1565
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_50001458

[S3G700]
CopyFiles = S3G700.Miniport, S3G700.Display, S3G700.Icd, Uninstaller.Files
AddReg    = S3ICDCommon.AddReg, CoInstaller.Regs, Uninstaller.Regs
DelReg    = S3ICDCommon.AddReg

[S3G700_2k]
CopyFiles = S3G700.Miniport, S3G700.Display, S3G700.Icd, Uninstaller.Files
AddReg    = S3ICDCommon.AddReg, CoInstaller.Regs, Uninstaller.Regs
DelReg    = S3ICDCommon.AddReg

[S3G700.GeneralConfigData]
MaximumDeviceMemoryConfiguration= 256
MaximumNumberOfDevices          = 4
SessionImageSize                = 16

[S3G700_2k.GeneralConfigData]
MaximumDeviceMemoryConfiguration= 256
MaximumNumberOfDevices          = 4
SessionImageSize                = 16

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

[S3G700_2k.Services]
AddService = S3gIGPA, 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%\S3gIGPmA.sys

[S3G700_EventLog_Inst]
AddReg = S3G700_EventLog_AddReg

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


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

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

[S3G700_SoftwareDeviceSettings]
HKR,, InstalledDisplayDrivers,      %REG_MULTI_SZ%, S3gIGPA
HKR,, VgaCompatible,                %REG_DWORD%,    0
HKR,, SupportIcd,                   %REG_DWORD%,    1
HKR,, SupportSAMM,                  %REG_DWORD%,    1
HKR,, UseAGPDMA,                    %REG_DWORD%,    1
HKR,, bSupportCRTCalibration,       %REG_DWORD%,    1
HKR,, RotationDegree,               %REG_DWORD%,    0
HKR,, S3GDW_DXVAType,               %REG_DWORD%,    0
HKR,, S3GDW_FrontEndBlend,          %REG_DWORD%,    1
HKR,, MultiFunctionSupported,       %REG_DWORD%,    1
HKR,, DrvInstalledUseDevPriority,   %REG_DWORD%,    0

HKR,, HalcyonFFPSCacheEnable,       	%REG_DWORD%,    1
HKR,, HalcyonPPSCacheEnable,        	%REG_DWORD%,    1
HKR,, HalcyonEnableTnL,             	%REG_DWORD%,    1
HKR,, HalcyonEnableVS,              	%REG_DWORD%,    1
HKR,, HalcyonEnableSWCulling,       	%REG_DWORD%,    0
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,, HalcyonVSOptInstReorder,          %REG_DWORD%,    1
HKR,, HalcyonVSOptRemoveRedundants,     %REG_DWORD%,    1
HKR,, HalcyonVSOptRemoveUnnecessaryMOV, %REG_DWORD%,    1

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%,    0x05
HKR,, HalcyonCoarseZReadThreshold,      %REG_DWORD%,    0x04
HKR,, HalcyonZWritePriMSK,              %REG_DWORD%,    0x2FB
HKR,, HalcyonZReadPriMSK,               %REG_DWORD%,    0x2C9
HKR,, HalcyonColorWritePriMSK,          %REG_DWORD%,    0x2DB
HKR,, HalcyonColorReadPriMSK,           %REG_DWORD%,    0x2CB
HKR,, HalcyonStencilBufReadPriMSK,      %REG_DWORD%,    0x249
HKR,, HalcyonStencilBufWritePriMSK,     %REG_DWORD%,    0x2FF
HKR,, HalcyonCZReadWritePriMSK,         %REG_DWORD%,    0x09
HKR,, HalcyonTexReadPriMSK,             %REG_DWORD%,    0x00
HKR,, HalcyonVBReadePriMSK,             %REG_DWORD%,    0x08
HKR,, HalcyonCoarseZWriteThreshold,     %REG_DWORD%,    0x04
HKR,, HalcyonCZWritePriMSK,             %REG_DWORD%,    0x49

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%,    1
HKR,, HalcyonEnableHWVB,            	%REG_DWORD%,    1
HKR,, HalcyonEnableHWIB,            	%REG_DWORD%,    1
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%,    1
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,, HalcyonUse2DAGPCmd,               %REG_DWORD%,    1
HKR,, S3GDW_AgpTexturing,               %REG_DWORD%,    0
HKR,, HalcyonPPSDumpEnable,             %REG_DWORD%,    0
HKR,, HalcyonDisableOGLonSAMM,          %REG_DWORD%,    0
HKR,, PanelCenterExpandMode,	        %REG_DWORD%,    2
HKR,, ForceSFSNOOPEnable,               %REG_DWORD%,    1
HKR,, S3GDW_DisableBandwidthChecking,   %REG_DWORD%,    1
HKR,, Enable_Capture_Dynamic_ECK,       %REG_DWORD%,    0
HKR,, vpmbForceSupportOneHQV,       	%REG_DWORD%,    1
HKR,, PWM_control_value_restore_support,	%REG_DWORD%,    1
HKR,, ACPI_SET_ATTACH_STATUS,           %REG_DWORD%,    1
HKR,, DeviceEnableDoShrink,             %REG_DWORD%,    0x18373
HKR,, S3GNeedForceDetection,            %REG_DWORD%,    1


;;;;;;;;;feature


HKR,, 6024642B4538CloneReportModeLogic,           %REG_DWORD%,    4
HKR,, 6024642B7559CloneReportModeLogic,           %REG_DWORD%,    4

HKR,, 602463B5328ECloneReportModeLogic,           %REG_DWORD%,    4
HKR,, 602463B5328FCloneReportModeLogic,           %REG_DWORD%,    4

HKR,, 6024696B1C59DeviceEnableDoMore,           %REG_DWORD%,    3
HKR,, 602461791CA6DeviceEnableDoMore,           %REG_DWORD%,    3
HKR,, 60246024BB2EDeviceEnableDoMore,           %REG_DWORD%,    3


; 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

;
; Source file information
;

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

[SourceDisksFiles]
ucb_32a.sys        = 1
S3gIGPmA.sys         = 1
S3gIGPA.dll          = 1
s3ginvA.dll          = 1
s3gIGPglA.dll	    = 1
VTROM.bin           = 1
S3DAPI32.dll           = 1

;; Uninstaller
s3minset.exe = 1
s3iset32.dll = 1

;
; File sections
;

[S3G700.Miniport]
ucb_32a.sys
S3gIGPmA.sys

[S3G700.Display]
S3gIGPA.dll
s3ginvA.dll
VTROM.bin                                  ; VBIOS image file for BSOD protection when SysBios didn't copy VBIOS
S3DAPI32.dll

[S3G700.Icd]
s3gIGPglA.dll

[Uninstaller.Files]
s3minset.exe
s3iset32.dll

;
; Common AddReg sections
;

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

[Uninstaller.Regs]
;; ------------------------------------------------------------------
;;		  		Add/Remove Program Item
;; ------------------------------------------------------------------
HKLM,%CURVER%\Uninstall\%ProductShortName%,"DisplayName",,"%ProductLongName%"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"Publisher",,"%S3GRAPHICS%"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"VersionMajor",,"%DriverVer%"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"VersionMinor",,"0.0.0.0"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"DisplayVersion",,"%DriverVer%"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"Comments",,"Thank you for using S3's Products"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"DisplayIcon",,"%11%\s3minset.exe"
HKLM,%CURVER%\Uninstall\%ProductShortName%,UninstallString,,"%11%\s3minset.exe -uninf -u '%ProductShortName%' -ver '%DriverVer%'"


;
; 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,, "s3gIGPglA"
HKLM,SOFTWARE\Microsoft\%WinNTDir%\CurrentVersion\OpenGLDrivers\%S3ICDKEY%,Flags, %REG_DWORD%, 00000001


[Strings]
S3GRAPHICS  = "S3 Graphics Co., Ltd."

ProductLongName = "VIA Chrome9 HD IGP Display Driver"
ProductShortName = "Chrome9HD"
;
; Non-Localizable Strings
;
REG_MULTI_SZ   = 0x00010000
REG_DWORD      = 0x00010001
REG_SZ         = 0x00000000
REG_BINARY     = 0x00000001

;
; Localizable Strings
;
VIAChrome9IGP_VIA = "VIA Chrome9 HD IGP"
DiskId      = "S3 Graphics Co., Ltd. Installation DISK (VIDEO)"

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

CtrlFld     = "Controls Folder"
CURVER      = "Software\Microsoft\Windows\CurrentVersion"
DriverVer = "05/13/2011, 6.14.10.0343"
