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

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%INTEL%
DriverVer = 12/09/2020,60.19041.3480.14
CatalogFile=ov8856.cat
PnpLockdown=1

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

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

[Manufacturer]
%Ov8856%=Standard,NTamd64

; For XP and later
[Standard.NTamd64]
%ov8856.DeviceDesc%=Ov8856_Device, ACPI\OVTI8856

[Ov8856_Device.NTamd64]
CopyFiles=Ov8856_Device.NT.Copy
CopyFiles=CopyCPFFiles
CopyFiles=CopyX64ExtraCPFFiles

[Ov8856_Device.NTamd64.HW]
AddReg=Ov8856_Dev.AddReg

[Ov8856_Device.NTx86.HW]
AddReg=Ov8856_Dev.AddReg

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

[Ov8856_Device.NT.Copy]
ov8856.sys
graph_settings_OV8856_CJAJ813_TGL.xml
graph_settings_OV8856_CJAJ815_TGL.xml
graph_settings_OV8856_0BA801T3_TGL.xml

[CopyCPFFiles]
OV8856_CJAJ813_TGL.aiqb
OV8856_CJAJ813_TGL.cpf
OV8856_CJAJ815_TGL.aiqb
OV8856_CJAJ815_TGL.cpf
OV8856_0BA801T3_TGL.aiqb
OV8856_0BA801T3_TGL.cpf

[CopyX64ExtraCPFFiles]
OV8856_CJAJ813_TGL.aiqb
OV8856_CJAJ813_TGL.cpf
OV8856_CJAJ815_TGL.aiqb
OV8856_CJAJ815_TGL.cpf
OV8856_0BA801T3_TGL.aiqb
OV8856_0BA801T3_TGL.cpf


;-------------- Service installation
[Ov8856_Device.NTamd64.Services]
AddService = ov8856, %SPSVCINST_ASSOCSERVICE%, ov8856_Service_Inst

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

[Ov8856_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)"

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

[SourceDisksFiles]
ov8856.sys = 1
OV8856_CJAJ813_TGL.aiqb = 1
OV8856_CJAJ813_TGL.cpf = 1
graph_settings_OV8856_CJAJ813_TGL.xml = 1
OV8856_CJAJ815_TGL.aiqb = 1
OV8856_CJAJ815_TGL.cpf = 1
graph_settings_OV8856_CJAJ815_TGL.xml = 1
OV8856_0BA801T3_TGL.aiqb = 1
OV8856_0BA801T3_TGL.cpf = 1
graph_settings_OV8856_0BA801T3_TGL.xml = 1


[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
INTEL = "Intel Corporation"
Ov8856 = "OV8856 Camera Sensor"
DiskId1 = "OV8856 Camera Installation Disk #1"
ov8856.DeviceDesc = "Camera Sensor OV8856"
ov8856.SVCDESC = "Camera Sensor OV8856"

