;/*++
;
;Copyright (c) 2021 Intel Corporation
;
;Module Name:
;
;    vd55g0.inf
;
;Abstract:
;    INF file for installing VD55G0 camera sensor (ACPI\VD55G0) driver
;
;Installation Notes:
;    Using Devcon: Type "devcon update vd55g0.inf ACPI\VD55G0" to install
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%INTEL%
DriverVer = 05/16/2024,64.25982.13.15388
CatalogFile=vd55g0.cat
PnpLockdown=1

[DestinationDirs]
DefaultDestDir = 12
CopyCPFFiles=11
CopyX64ExtraCPFFiles=10, SysWOW64

;*****************************************
; Sensor Device  Install Section
;*****************************************

[Manufacturer]
%vd55g0%=Standard,NTamd64

; For XP and later
[Standard.NTamd64]
%vd55g0.DeviceDesc%=vd55g0_Device, ACPI\SMO55F0
[vd55g0_Device.NTamd64]
CopyFiles=vd55g0_Device.NT.Copy
CopyFiles=CopyCPFFiles
CopyFiles=CopyX64ExtraCPFFiles

[vd55g0_Device.NTamd64.HW]
AddReg=vd55g0_Dev.AddReg

[vd55g0_Dev.AddReg]
HKR,"WDF","WdfDirectedPowerTransitionEnable",0x00010001,1

[vd55g0_Device.NT.Copy]
vd55g0.sys
graph_settings_vd55g0_ST_MTL.xml

[CopyCPFFiles]
VD55G0_ST_MTL.aiqb
VD55G0_ST_MTL.cpf

[CopyX64ExtraCPFFiles]
VD55G0_ST_MTL.aiqb
VD55G0_ST_MTL.cpf

;-------------- Service installation
[vd55g0_Device.NTamd64.Services]
AddService = vd55g0, %SPSVCINST_ASSOCSERVICE%, vd55g0_Service_Inst

[vd55g0_Service_Inst]
DisplayName    = %vd55g0.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\vd55g0.sys
Dependencies   = SpbCx,inteli2c
AddReg         = vd55g0_Device.AddReg

[vd55g0_Device.AddReg]
;Use same security checks on relative opens
HKR,,DeviceCharacteristics,0x10001,0x0100
;Grant access just to built-in administrators, local system, and usermode drivers
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)(A;;GA;;;S-1-5-84-0-0-0-0-0)(D;;GA;;;WD)"
HKR,,IRFlashLedIntensity,0x10001, 30

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

[SourceDisksFiles]
vd55g0.sys = 1
VD55G0_ST_MTL.aiqb = 1
VD55G0_ST_MTL.cpf = 1
graph_settings_vd55g0_ST_MTL.xml = 1

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
INTEL = "Intel Corporation"
vd55g0 = "VD55G0 Camera Sensor"
DiskId1 = "VD55G0 Camera Installation Disk #1"
vd55g0.DeviceDesc = "Camera Sensor VD55G0"
vd55g0.SVCDESC = "Camera Sensor VD55G0"
IRSensor = "{A68BE655-C9E1-474D-B79E-177EA65ABD0A}"

