;/*++
;
;Copyright (c) 2015 Intel Corporation
;
;Module Name:
;    iaLPSSi_GPIO.inf
;
;Abstract:
;    INF file for installing the Intel(R) Serial IO GPIO driver
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%INTEL%
DriverVer=02/02/2015,1.1.250.0

[DestinationDirs]
DefaultDestDir = 12

; ================= Class section =====================

[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
iaLPSSi_GPIO.sys  = 1,,

[ControlFlags]
ExcludeFromSelect = *

;*****************************************
; iaLPSSi_GPIO  Install Section
;*****************************************

[Manufacturer]
%INTEL%=Intel,NTamd64.6.3

[Intel.NTamd64.6.3]
%iaLPSSi_GPIO.DeviceDesc_LPT%=iaLPSSi_GPIO_Device, ACPI\INT33C7
%iaLPSSi_GPIO.DeviceDesc_WPT%=iaLPSSi_GPIO_Device, ACPI\INT3437

[iaLPSSi_GPIO_Device.NT]
CopyFiles=Drivers_Dir
AddProperty=WDTFSOCDeviceCategory

[WDTFSOCDeviceCategory]
{5D078032-6378-437B-8DA5-9B32B7CA3FDD},2,7,,1

[Drivers_Dir]
iaLPSSi_GPIO.sys,,,2


;-------------- Service installation
[iaLPSSi_GPIO_Device.NT.Services]
AddService = iaLPSSi_GPIO,%SPSVCINST_ASSOCSERVICE%, iaLPSSi_GPIO_Service_Inst, iaLPSSi_GPIO_EventLog_Inst, System, Intel-iaLPSS-GPIO

;-------------- Registry installation
[iaLPSSi_GPIO_EventLog_Inst]
AddReg=iaLPSSi_GPIO_EventLog_Inst.AddReg, iaLPSSi_GPIO_ETW.AddReg

[iaLPSSi_GPIO_EventLog_Inst.AddReg]
HKR,, EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\system32\drivers\iaLPSSi_GPIO.sys"
HKR,, TypesSupported,   0x00010001, 7
HKR,, ProviderGuid,     0x00000000, "{d386cc7a-620a-41c1-abf5-55018c6c699a}"

[iaLPSSi_GPIO_ETW.AddReg]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Intel-iaLPSS-GPIO/Analytic","OwningPublisher",0x0,"{d386cc7a-620a-41c1-abf5-55018c6c699a}"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Intel-iaLPSS-GPIO/Analytic","Enabled",0x00010001,0
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Intel-iaLPSS-GPIO/Analytic","Isolation",0x00010001,1
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Intel-iaLPSS-GPIO/Analytic","ChannelAccess",0x0,"O:BAG:SYD:(A;;0xf0007;;;SY)(A;;0x7;;;BA)(A;;0x3;;;BO)(A;;0x5;;;SO)(A;;0x1;;;IU)(A;;0x3;;;SU)(A;;0x1;;;S-1-5-3)(A;;0x2;;;S-1-5-33)(A;;0x1;;;S-1-5-32-573)"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Intel-iaLPSS-GPIO/Analytic","Type",0x00010001,2
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{d386cc7a-620a-41c1-abf5-55018c6c699a}",,0x0,"Intel-iaLPSS-GPIO"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{d386cc7a-620a-41c1-abf5-55018c6c699a}","ResourceFileName",0x00020000,"%%SystemRoot%%\system32\drivers\iaLPSSi_GPIO.sys"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{d386cc7a-620a-41c1-abf5-55018c6c699a}","MessageFileName",0x00020000,"%%SystemRoot%%\system32\drivers\iaLPSSi_GPIO.sys"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{d386cc7a-620a-41c1-abf5-55018c6c699a}","Enabled",0x00010001,1
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{d386cc7a-620a-41c1-abf5-55018c6c699a}\ChannelReferences","Count",0x00010001,2
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{d386cc7a-620a-41c1-abf5-55018c6c699a}\ChannelReferences\0",,0x0,"Intel-iaLPSS-GPIO/Analytic"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{d386cc7a-620a-41c1-abf5-55018c6c699a}\ChannelReferences\0","Id",0x00010001,16
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{d386cc7a-620a-41c1-abf5-55018c6c699a}\ChannelReferences\0","Flags",0x00010001,0
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{d386cc7a-620a-41c1-abf5-55018c6c699a}\ChannelReferences\1",,0x0,"System"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{d386cc7a-620a-41c1-abf5-55018c6c699a}\ChannelReferences\1","Id",0x00010001,8
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{d386cc7a-620a-41c1-abf5-55018c6c699a}\ChannelReferences\1","Flags",0x00010001,1


; -------------- iaLPSSi_GPIO driver install sections
[iaLPSSi_GPIO_Service_Inst]
DisplayName    = %iaLPSSi_GPIO.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\iaLPSSi_GPIO.sys
LoadOrderGroup = Extended Base


[Strings]
; Localizable strings
INTEL = "Intel Corporation"
DiskId1 = "Intel(R) Serial IO Installation Disk"
iaLPSSi_GPIO.DeviceDesc_LPT = "Intel(R) Serial IO GPIO Host Controller - INT33C7"
iaLPSSi_GPIO.DeviceDesc_WPT = "Intel(R) Serial IO GPIO Host Controller - INT3437"
iaLPSSi_GPIO.SVCDESC = "Intel(R) Serial IO GPIO Controller Driver"

; Non-Localizable Strings 
SPSVCINST_ASSOCSERVICE= 0x00000002
