;
;
; Copyright (c) VIA Corporation. All rights reserved.
;
; Module Name:
;
;    vstxraid.inf
;
; Abstract:
;
;    
; Authors:
;
;    Tony Xu   2011/6/22
;    
; Revision History:
;

[version]
signature           ="$Windows NT$"
Class               =SCSIAdapter
ClassGuid           ={4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider            =%VIA%
DriverVer           =01/14/2013,8.0.9200.8110

;
; Source file information
;
[SourceDisksNames]
3426=windows cd

[SourceDisksFiles]
vstxraid.sys = 3426

[DestinationDirs]
DefaultDestDir = 12 ; DIRID_DRIVERS

[Manufacturer]
%VIA% = VIAFT,NTx86,NTamd64

[VIAFT.NTx86]
%PCI\VEN_1106&DEV_9040&CC_0104.DeviceDesc% = VSTXRAID_INST, PCI\VEN_1106&DEV_9040&CC_0104
%PCI\VEN_1106&DEV_9041&CC_0104.DeviceDesc% = VSTXRAID_INST, PCI\VEN_1106&DEV_9041&CC_0104

[VIAFT.NTamd64]
%PCI\VEN_1106&DEV_9040&CC_0104.DeviceDesc% = VSTXRAID_INST, PCI\VEN_1106&DEV_9040&CC_0104
%PCI\VEN_1106&DEV_9041&CC_0104.DeviceDesc% = VSTXRAID_INST, PCI\VEN_1106&DEV_9041&CC_0104

[ControlFlags]
ExcludeFromSelect = *

[VSTXRAID_INST]
CopyFiles =@VSTXRAID.SYS

[VSTXRAID_INST.Services]
AddService = VSTXRAID, %SPSVCINST_ASSOCSERVICE%, VSTXRAID_SERVICE, VSTXRAID_EVENTLOG

[VSTXRAID_SERVICE]
DisplayName    = %Driver.DeviceDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_BOOT_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\vstxraid.sys
LoadOrderGroup = SCSI Miniport
AddReg         = pnpsafe_pci_addreg
AddReg         = bus_type_raid
AddReg         = SpecificParam

[VSTXRAID_EVENTLOG]
AddReg = VSTXRAID_EventLog_AddReg

[VSTXRAID_EventLog_AddReg]
HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll"
HKR,,TypesSupported,%REG_DWORD%,7

[SpecificParam]
HKR,, "EnableRaid", %REG_DWORD%, 1
HKR,, "EnableNcq", %REG_DWORD%, 1
HKR,, "EnablePmp", %REG_DWORD%, 5
HKR,, "EnableG3ToG2Patch", %REG_DWORD%, 1
HKR,, "EnableStablePlugIn", %REG_DWORD%, 1
HKR,, "VSTXPnPPowerControl", %REG_DWORD%, 1

[pnpsafe_pci_addreg] 
HKR, Parameters\PnpInterface, 5, 0x00010001, 0x00000001

[bus_type_raid]
HKR, "Parameters", "BusType", 0x00010001, 0x00000008

[Strings]
;Localizable Strings
Signature   = "{FE521DD6-102B-4c7a-BE9B-DA78CF9EE692}"
DiskName    = "VIA StorX Storage RAID Controller Windows Driver"
VIA         = "VIA Technologies, Inc."
Driver.DeviceDesc = "VIA StorX Storage RAID Controller Windows Driver"
PCI\VEN_1106&DEV_9040&CC_0104.DeviceDesc    = "VIA StorX RAID Controller - 9040"
PCI\VEN_1106&DEV_9041&CC_0104.DeviceDesc    = "VIA StorX RAID Controller - 9041"

;Non Localizable Strings 
SPSVCINST_ASSOCSERVICE = 0x00000002
SERVICE_KERNEL_DRIVER  = 1
SERVICE_BOOT_START     = 0
SERVICE_ERROR_NORMAL   = 1
REG_EXPAND_SZ          = 0x00020000
REG_DWORD              = 0x00010001
