;/*++
;Abstract:
;    INF file for installing the ITE CIR device
;
;
;--*/
[Version]
Signature="$WINDOWS NT$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%MSFT%
DriverVer=04/20/2007,5.0.0001.2
CatalogFile=ITECIR.cat

[DestinationDirs]
DefaultDestDir = 12
IR_CoInstaller_CopyFiles = 11

[SourceDisksNames]
1 = %DiskId1%,,,

;[SourceDisksNames.x86]
;1 = %DiskId1%,,,\i386

;[SourceDisksNames.amd64]
;1 = %DiskId1%,,,\amd64

;[SourceDisksNames.ia64]
;1 = %DiskId1%,,,\ia64

[SourceDisksFiles]
CIRCoInst.dll  = 1,,
itecir.sys  = 1,,

[Manufacturer]
%StdMfg%=Standard,NTx86, NTia64, NTamd64

[Standard]
%itecir.DeviceDesc%    = itecir_Device,    *ITE8704

[Standard.NTx86]
%itecir.DeviceDesc%    = itecir_Device,    *ITE8704
%itecir.DeviceDesc.EC.RTC% = itecir_EC_RTC_Device, *ITE8707
%itecir.DeviceDesc.EC.PMC% = itecir_EC_PMC_Device, *ITE8709
%itecir.DeviceDesc.EC% = itecir_EC_Device, *ITE8708

[Standard.NTia64]
%itecir.DeviceDesc%    = itecir_Device,    *ITE8704
%itecir.DeviceDesc.EC.RTC% = itecir_EC_RTC_Device, *ITE8707
%itecir.DeviceDesc.EC.PMC% = itecir_EC_PMC_Device, *ITE8709
%itecir.DeviceDesc.EC% = itecir_EC_Device, *ITE8708

[Standard.NTamd64]
%itecir.DeviceDesc%    = itecir_Device,    *ITE8704
%itecir.DeviceDesc.EC.RTC% = itecir_EC_RTC_Device, *ITE8707
%itecir.DeviceDesc.EC.PMC% = itecir_EC_PMC_Device, *ITE8709
%itecir.DeviceDesc.EC% = itecir_EC_Device, *ITE8708

;-----------------------------------------------------
;SIO
;-----------------------------------------------------
[itecir_Device.NT]
CopyFiles=Drivers_Dir

[itecir_Device.NT.HW]
AddReg=itecir_AddReg

[itecir_Device.NT.Services]
AddService = itecir,%SPSVCINST_ASSOCSERVICE%, itecir_SIO_Service_Inst

[itecir_SIO_Service_Inst]
DisplayName    = %itecir.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\itecir.sys
LoadOrderGroup = Extended Base
AddReg         = pnp_SIO_addreg

[pnp_SIO_addreg]
HKR, "Parameters","DriverReadWriteType",0x00010001,0x0000001

[itecir_Device.NT.CoInstallers]
AddReg=IR_CoInstaller_AddReg
CopyFiles=IR_CoInstaller_CopyFiles

[itecir_Device.NT.WdfSection]
USE_WDF_DYNAMIC
COMPONENTS = WdfDynam

;-----------------------------------------------------
;EC RTC
;-----------------------------------------------------
[itecir_EC_RTC_Device.NT]
CopyFiles=Drivers_Dir

[itecir_EC_RTC_Device.NT.HW]
AddReg=itecir_AddReg

[itecir_EC_RTC_Device.NT.Services]
AddService = itecir,%SPSVCINST_ASSOCSERVICE%, itecir_EC_RTC_Service_Inst

[itecir_EC_RTC_Service_Inst]
DisplayName    = %itecir.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\itecir.sys
LoadOrderGroup = Extended Base
AddReg         = pnp_EC_RTC_addreg

[pnp_EC_RTC_addreg]
HKR, "Parameters","DriverReadWriteType",0x00010001,0x0000002

[itecir_EC_RTC_Device.NT.CoInstallers]
AddReg=IR_CoInstaller_AddReg
CopyFiles=IR_CoInstaller_CopyFiles

[itecir_EC_RTC_Device.NT.WdfSection]
USE_WDF_DYNAMIC
COMPONENTS = WdfDynam

;-----------------------------------------------------
;EC PMC
;-----------------------------------------------------
[itecir_EC_PMC_Device.NT]
CopyFiles=Drivers_Dir

[itecir_EC_PMC_Device.NT.HW]
AddReg=itecir_AddReg

[itecir_EC_PMC_Device.NT.Services]
AddService = itecir,%SPSVCINST_ASSOCSERVICE%, itecir_EC_PMC_Service_Inst

[itecir_EC_PMC_Service_Inst]
DisplayName    = %itecir.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\itecir.sys
LoadOrderGroup = Extended Base
AddReg         = pnp_EC_PMC_addreg

[pnp_EC_PMC_addreg]
HKR, "Parameters","DriverReadWriteType",0x00010001,0x0000003

[itecir_EC_PMC_Device.NT.CoInstallers]
AddReg=IR_CoInstaller_AddReg
CopyFiles=IR_CoInstaller_CopyFiles

[itecir_EC_PMC_Device.NT.WdfSection]
USE_WDF_DYNAMIC
COMPONENTS = WdfDynam

;-----------------------------------------------------
;EC
;-----------------------------------------------------
[itecir_EC_Device.NT]
CopyFiles=Drivers_Dir

[itecir_EC_Device.NT.HW]
AddReg=itecir_AddReg

[itecir_EC_Device.NT.Services]
AddService = itecir,%SPSVCINST_ASSOCSERVICE%, itecir_EC_Service_Inst

[itecir_EC_Service_Inst]
DisplayName    = %itecir.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\itecir.sys
LoadOrderGroup = Extended Base
AddReg         = pnp_EC_addreg

[pnp_EC_addreg]
HKR, "Parameters","DriverReadWriteType",0x00010001,0x0000004

[itecir_EC_Device.NT.CoInstallers]
AddReg=IR_CoInstaller_AddReg
CopyFiles=IR_CoInstaller_CopyFiles

[itecir_EC_Device.NT.WdfSection]
USE_WDF_DYNAMIC
COMPONENTS = WdfDynam

;-------------------------------------------------------

[itecir_AddReg]                            
HKR,,DeviceCharacteristics,0x10001,0x0100         ; Use same security checks on relative opens
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"      ; Allow generic-all access to Built-in administrators and Local system 

[Drivers_Dir]
itecir.sys

[IR_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010008, "CIRCoInst.dll,IRCoInstaller"

[IR_CoInstaller_CopyFiles]
CIRCoInst.dll

;-------------------------------------------------------

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
MSFT = "ITE Tech.Inc."
StdMfg = "ITE Tech.Inc."
DiskId1 = "ITECIR Installation Disk #1"
itecir.DeviceDesc = "ITECIR Infrared Receiver"
itecir.DeviceDesc.EC.PMC = "ITECIR Infrared Receiver (EC PMC)"
itecir.DeviceDesc.EC.RTC = "ITECIR Infrared Receiver (EC RTC_A6)"
itecir.DeviceDesc.EC = "ITECIR Infrared Receiver (EC)"
itecir.SVCDESC = "ITECIR Infrared Receiver"


