;*******************************************************************************
;*                                                                            **
;*                     I N T E L   P R O P R I E T A R Y                      **
;*                                                                            **
;*   COPYRIGHT (c) 2012-2022 BY INTEL CORPORATION. ALL RIGHTS RESERVED.  NO   **
;*   PART  OF  THIS  PROGRAM OR PUBLICATION MAY BE REPRODUCED, TRANSMITTED,   **
;*   TRANSCRIBED, STORED IN A RETRIEVAL  SYSTEM,  OR  TRANSLATED  INTO  ANY   **
;*   LANGUAGE OR COMPUTER LANGUAGE IN ANY FORM OR BY ANY MEANS, ELECTRONIC,   **
;*   MECHANICAL, MAGNETIC, OPTICAL, CHEMICAL, MANUAL, OR OTHERWISE, WITHOUT   **
;*   THE PRIOR WRITTEN PERMISSION OF :                                        **
;*                                                                            **
;*                             INTEL CORPORATION                              **
;*                                                                            **
;*                          2200 MISSION COLLEGE BLVD                         **
;*                                                                            **
;*                     SANTA CLARA, CALIFORNIA 95052-8119                     **
;*                                                                            **
;*******************************************************************************
;
;
; File Name: ISH.inf
; Install information file for Intel(R) ISS Driver
;--------- Version Section ---------------------------------------------------

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGUID={4d36e97d-e325-11ce-bfc1-08002be10318}
Provider=%Provider%
DriverVer = 11/04/2022,3.1.0.4589
PnpLockDown=1
CatalogFile=ISH.cat

[ControlFlags]
; Pnp drivers should not be installable via non-PnP hardware dialogs
ExcludeFromSelect = *

;--------- DestinationDirs Section -------------------------------------------

[DestinationDirs]
DefaultDestDir = 13

;--------- SourceDiskNames and SourceDiskFiles Section -----------------------
; These sections identify source disks and files for installation.

[SourceDisksNames]
1=%Location%,

[SourceDisksFiles.amd64]
ISH.sys=1,.

;--------- Manufacturer and Models Sections ----------------------------------

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

[Intel.NTamd64.10.0]
; ----- Win 10 ; x64 -------
; DisplayName    Section           DeviceId
%ISH_DeviceDesc%=ISH_DDI, PCI\VEN_8086&DEV_7AF8 ; ADP-S (ADL-HX/S)
%ISH_DeviceDesc%=ISH_DDI, PCI\VEN_8086&DEV_51FC ; ADL-M/P, RPL-P/PX/H
%ISH_DeviceDesc%=ISH_DDI, PCI\VEN_8086&DEV_7A78 ; RPL-HX/S
%ISH_DeviceDesc%=ISH_DDI, PCI\VEN_8086&DEV_54FC ; ADP-N

[ISH_DDI]
CopyFiles=ISH_Files_Driver

[ISH_DDI.HW]
AddReg=ISH_NT_HW_AddReg

[ISH_DDI.Services]
AddService = ISH, %FLG_ADDREG_NOCLOBBER%, ISH_Service_Inst, ISH_EventLog_Inst

; --------- Files ----------------------

[ISH_Files_Driver]
ISH.sys


; --------- Registry ----------------------
[ISH_NT_HW_AddReg]
HKR,,DeviceCharacteristics,0x10001,0x100
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)(A;CI;GA;;;LS)"

; --------- Service ----------------------

[ISH_Service_Inst]
DisplayName    = %ISH_SvcDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %13%\ISH.sys
LoadOrderGroup = Extended Base
AddReg = DMARemappingInstall.AddReg

[DMARemappingInstall.AddReg]
HKR,Parameters,DmaRemappingCompatible,0x00010001,1    ; where 1 = opt-in

;-----------------------------------------------------------------------------
; Common base for all drivers for Eventlog
;
[ISH_EventLog_Inst]
AddReg = ISH_EventLog.AddReg

[ISH_EventLog.AddReg]
HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\system32\IoLogMsg.dll;%%13%%\ISH.sys"
HKR, , TypesSupported,   0x00010001, 7

;--------------- Events Installation
[ISH_DDI.Events]
AddEventProvider = {A1919784-ED5F-4CAF-A207-6A48457EB680},ISH_HECI_ETW_Inst

[ISH_HECI_ETW_Inst]
ProviderName  = ISH_HECI
ResourceFile  = "%%13%%\ISH.sys"
MessageFile   = "%%13%%\ISH.sys"
ImportChannel = System
AddChannel    = Intel-ISH-HECI/Performance,0x3,performance_Channel_Inst      ;Channel-type: Analytic
AddChannel    = Intel-ISH-HECI/Debug,0x3,debug_Channel_Inst                  ;Channel-type: Analytic

[debug_Channel_Inst]
OwningPublisher = "{A1919784-ED5F-4CAF-A207-6A48457EB680}"
Isolation       = 2                                                         ;System
Enabled         = 0
ChannelAccess   = "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)"

[performance_Channel_Inst]
OwningPublisher = "{A1919784-ED5F-4CAF-A207-6A48457EB680}"
Isolation       = 2                                                         ;System
Enabled         = 0
ChannelAccess   = "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)"


;--------- Strings Section ---------------------------------------------------

[Strings]
Provider = "Intel"
MfgName = "Intel"
ISH_DeviceDesc = "Intel(R) Integrated Sensor Solution"
ISH_SvcDesc = "Intel(R) Integrated Sensor Solution"
Location = "Intel(R) Integrated Sensor Solution"

REG_SZ                      = 0x00000000
REG_MULTI_SZ                = 0x00010000
REG_EXPAND_SZ               = 0x00020000
REG_BINARY                  = 0x00000001
REG_DWORD                   = 0x00010001
REG_NONE                    = 0x00020001

SERVICE_KERNEL_DRIVER       = 0x00000001
SERVICE_FILE_SYSTEM_DRIVER  = 0x00000002
SERVICE_ADAPTER             = 0x00000004
SERVICE_RECOGNIZER_DRIVER   = 0x00000008

SERVICE_BOOT_START          = 0x0
SERVICE_SYSTEM_START        = 0x1
SERVICE_AUTO_START          = 0x2
SERVICE_DEMAND_START        = 0x3
SERVICE_DISABLED            = 0x4

SERVICE_ERROR_IGNORE        = 0x00000000
SERVICE_ERROR_NORMAL        = 0x00000001
SERVICE_ERROR_SEVERE        = 0x00000002
SERVICE_ERROR_CRITICAL      = 0x00000003

FLG_ADDREG_NOCLOBBER        = 0x00000002
FLG_ADDREG_DELVAL           = 0x00000004
FLG_ADDREG_APPEND           = 0x00000008
FLG_ADDREG_KEYONLY          = 0x00000010
FLG_ADDREG_OVERWRITEONLY    = 0x00000020
FLG_ADDREG_64BITKEY         = 0x00001000
FLG_ADDREG_KEYONLY_COMMON   = 0x00002000
FLG_ADDREG_32BITKEY         = 0x00004000

SPSVCINST_STOPSERVICE       = 0x00000200
SPSVCINST_DELETEEVENTLOGENTRY = 0x00000004


