; Copyright (c) Realtek Semiconductor Corp. All rights reserved.

[Version]
Signature="$Windows NT$"
Class=System
ClassGuid = {4d36e97d-e325-11ce-bfc1-08002be10318}
Provider=%RTS%
CatalogFile = RtsPer64.cat
DriverVer=04/28/2015,6.3.9600.21273

[SourceDisksFiles]
RtsPer.sys = 99
RsCRIcon.dll = 99

[SourceDisksNames.x86]
99 = %DiskDesc%

[SourceDisksNames.amd64]
99 = %DiskDesc%

[SourceDisksNames.ia64]
99 = %DiskDesc%

[DestinationDirs]
CopyFilesSYS = 12     ; should it be 10 to take care of 98 stuff
CopyFilesDLL = 11     ; %SystemRoot%\system or system32 - 98 or Win2000
CopyFilesDLL64 = 10,SysWOW64

[Manufacturer]
%VENDOR%=Vendor, NTamd64

[Vendor.NTamd64]
%Rts5227CR%=RTL8411B.Inst, PCI\VEN_10EC&DEV_5287&CC_FF00

[Rts.NTx86.CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,","

[Rts.NTia64.CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,","

[Rts.ntamd64.CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,","

[MsiEnable_addreg]
;HKR, "Interrupt Management\MessageSignaledInterruptProperties", MessageNumberLimit, 0x00010001, 1
HKR, "Interrupt Management",,0x00000010
HKR, "Interrupt Management\MessageSignaledInterruptProperties",,0x00000010
HKR, "Interrupt Management\MessageSignaledInterruptProperties", "MSISupported", 0x00010001, 1
HKR, "e5b3b5ac-9725-4f78-963f-03dfb1d828c7", "D3ColdSupported", 0x00010001, 1

[CopyFilesSYS]
RtsPer.sys

[CopyFilesDLL]
RsCRIcon.dll

[CopyFilesDLL64]
RsCRIcon.dll

[DefaultInstall.NTx86]
CopyFiles = CopyFilesSYS, CopyFilesDLL

[DefaultInstall.ntamd64]
CopyFiles = CopyFilesSYS, CopyFilesDLL64

[DefaultInstall.NTia64]
CopyFiles = CopyFilesSYS, CopyFilesDLL64

[DefaultInstall.Services]
AddService = RTSPER, 0x00000002, DefaultInstall_Service_Inst

[DefaultInstall_Service_Inst]
DisplayName    = %Rts5227PER%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_IGNORE%
ServiceBinary  = %12%\RtsPer.sys
AddReg         = DefaultInstall.AddReg

[DefaultInstall.AddReg]

[RTL8411B.Inst.NTx86]
CopyFiles = CopyFilesSYS

[RTL8411B.Inst.NTx86.CoInstallers]
CopyFiles=CopyFilesDLL
AddReg=Rts.NTx86.CoInstallers_AddReg

[RTL8411B.Inst.NTia64]
CopyFiles = CopyFilesSYS

[RTL8411B.Inst.NTia64.CoInstallers]
CopyFiles=CopyFilesDLL64
AddReg=Rts.NTia64.CoInstallers_AddReg

[RTL8411B.Inst.ntamd64]
CopyFiles = CopyFilesSYS

[RTL8411B.Inst.ntamd64.CoInstallers]
CopyFiles=CopyFilesDLL64
AddReg=Rts.ntamd64.CoInstallers_AddReg

[RTL8411B.Inst.NTx86.HW]
AddReg=MsiEnable_addreg

[RTL8411B.Inst.NTamd64.HW]
AddReg=MsiEnable_addreg

[RTL8411B.Inst.NTx86.Services]
AddService = RTSPER, 0x00000002, RTL8411B_Service_Inst

[RTL8411B.Inst.NTia64.Services]
AddService = RTSPER, 0x00000002, RTL8411B_Service_Inst

[RTL8411B.Inst.ntamd64.Services]
AddService = RTSPER, 0x00000002, RTL8411B_Service_Inst

[RTL8411B_Service_Inst]
DisplayName    = %Rts5227PER%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_IGNORE%
ServiceBinary  = %12%\RtsPer.sys
AddReg         = RTL8411B.AddReg

[RTL8411B.AddReg]
HKR,"RTL8411B","MSIEnable",0x10001,1
HKR,"RTL8411B","FirstLoad",0x10001,1
HKR,"RTL8411B","Pattern",0x10001,2

[Strings]
;Localizable Strings needed for HBA naming in Windows UI
;*******************************************
;Non-Localizable strings
RTS = "Realtek Semiconduct Corp."
VENDOR         = "Realtek Semiconduct Corp."
Rts5227CR      = "PCIE device"
Rts5227PER      = "Realtek PCIE Card Reader - PER"
DiskDesc = "Realtek PCIE Card Reader Source Disk"
SERVICE_ASSOCSERVICE = 0x00000002
SERVICE_BOOT_START     = 0x0
SERVICE_SYSTEM_START   = 0x1
SERVICE_AUTO_START     = 0x2
SERVICE_DEMAND_START   = 0x3
SERVICE_DISABLED       = 0x4
SERVICE_KERNEL_DRIVER  = 0x1
SERVICE_ERROR_IGNORE   = 0x0
SERVICE_ERROR_NORMAL   = 0x1
SERVICE_ERROR_SEVERE   = 0x2
SERVICE_ERROR_CRITICAL = 0x3
REG_EXPAND_SZ          = 0x00020000
REG_DWORD              = 0x00010001
REG_MULTI_SZ           = 0x00010000
REG_BINARY             = 0x00000001
REG_SZ                 = 0x00000000

