;/*++
;
;Copyright (c) 2013-2014 Intel Corporation
;
;Module Name:
;    iaLPSS2_SPI_GLK.inf
;
;Abstract:
;    INF file for installing the Intel(R) Serial IO SPI driver
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%INTEL%
DriverVer=06/29/2017,30.100.1726.2
CatalogFile=iaLPSS2_SPI_GLK.cat

[DestinationDirs]
DefaultDestDir = 12

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

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

[SourceDisksFiles]
iaLPSS2_SPI.sys  = 1,,

;*****************************************
; iaLPSS2_SPI  Install Section
;*****************************************

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

[Intel.NTamd64.10.0]
%iaLPSS2_SPI.DeviceDesc_0%=iaLPSS2_SPI_Device, PCI\VEN_8086&DEV_31C2
%iaLPSS2_SPI.DeviceDesc_1%=iaLPSS2_SPI_Device, PCI\VEN_8086&DEV_31C4
%iaLPSS2_SPI.DeviceDesc_2%=iaLPSS2_SPI_Device, PCI\VEN_8086&DEV_31C6

[iaLPSS2_SPI_Device.NT]
CopyFiles=Drivers_Dir
AddProperty=WDTFSOCDeviceCategory

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

[Drivers_Dir]
iaLPSS2_SPI.sys


;-------------- Service installation
[iaLPSS2_SPI_Device.NT.Services]
AddService = iaLPSS2_SPI,%SPSVCINST_ASSOCSERVICE%, iaLPSS2_SPI_Service_Inst, iaLPSS2_SPI_EventLog_Inst, System, Intel-iaLPSS2-SPI

;-------------- Registry installation
[iaLPSS2_SPI_EventLog_Inst]
AddReg=iaLPSS2_SPI_EventLog_Inst.AddReg, iaLPSS2_SPI_ETW.AddReg

[iaLPSS2_SPI_EventLog_Inst.AddReg]
HKR,, EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\system32\drivers\iaLPSS2_SPI.sys"
HKR,, TypesSupported,   0x00010001, 7
HKR,, ProviderGuid,     0x00000000, "{6E112845-A8C4-4143-A631-256E8A3E7691}"

[iaLPSS2_SPI_ETW.AddReg]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Intel-iaLPSS2-SPI/Debug","OwningPublisher",0x0,"{6E112845-A8C4-4143-A631-256E8A3E7691}"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Intel-iaLPSS2-SPI/Debug","Enabled",0x00010001,0
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Intel-iaLPSS2-SPI/Debug","Isolation",0x00010001,1
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Intel-iaLPSS2-SPI/Debug","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-iaLPSS2-SPI/Debug","Type",0x00010001,2
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Intel-iaLPSS2-SPI/Performance","OwningPublisher",0x0,"{6E112845-A8C4-4143-A631-256E8A3E7691}"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Intel-iaLPSS2-SPI/Performance","Enabled",0x00010001,0
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Intel-iaLPSS2-SPI/Performance","Isolation",0x00010001,1
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Intel-iaLPSS2-SPI/Performance","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-iaLPSS2-SPI/Performance","Type",0x00010001,2
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{6E112845-A8C4-4143-A631-256E8A3E7691}",,0x0,"Intel-iaLPSS2-SPI"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{6E112845-A8C4-4143-A631-256E8A3E7691}","ResourceFileName",0x00020000,"%%SystemRoot%%\system32\drivers\iaLPSS2_SPI.sys"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{6E112845-A8C4-4143-A631-256E8A3E7691}","MessageFileName",0x00020000,"%%SystemRoot%%\system32\drivers\iaLPSS2_SPI.sys"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{6E112845-A8C4-4143-A631-256E8A3E7691}","Enabled",0x00010001,1
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{6E112845-A8C4-4143-A631-256E8A3E7691}\ChannelReferences\0",,0x0,"Intel-iaLPSS2-SPI/Debug"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{6E112845-A8C4-4143-A631-256E8A3E7691}\ChannelReferences\0","Id",0x00010001,16
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{6E112845-A8C4-4143-A631-256E8A3E7691}\ChannelReferences\0","Flags",0x00010001,0
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{6E112845-A8C4-4143-A631-256E8A3E7691}\ChannelReferences\1",,0x0,"Intel-iaLPSS2-SPI/Performance"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{6E112845-A8C4-4143-A631-256E8A3E7691}\ChannelReferences\1","Id",0x00010001,17
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{6E112845-A8C4-4143-A631-256E8A3E7691}\ChannelReferences\1","Flags",0x00010001,0
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{6E112845-A8C4-4143-A631-256E8A3E7691}\ChannelReferences","Count",0x00010001,2


; -------------- iaLPSS2_SPI driver install sections
[iaLPSS2_SPI_Service_Inst]
DisplayName    = %iaLPSS2_SPI.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\iaLPSS2_SPI.sys
LoadOrderGroup = Base
Dependencies   = SpbCx

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
INTEL = "Intel Corporation"
DiskId1 = "Intel(R) Serial IO Installation Disk"
iaLPSS2_SPI.DeviceDesc_0 = "Intel(R) Serial IO SPI Host Controller - 31C2"
iaLPSS2_SPI.DeviceDesc_1 = "Intel(R) Serial IO SPI Host Controller - 31C4"
iaLPSS2_SPI.DeviceDesc_2 = "Intel(R) Serial IO SPI Host Controller - 31C6"
iaLPSS2_SPI.SVCDESC = "Intel(R) Serial IO SPI Driver v2"

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

[PackageInfo]
Name=iaLPSS2_SPI_GLK.x64.100
