;/*++
;
;Copyright (c) 2010-2019 Intel Corporation
;
;Module Name:
;
;    ov13858.inf
;
;Abstract:
;    INF file for installing OV13858 camera sensor (ACPI\OVTID858) driver
;
;Installation Notes:
;
;    Using PnP Utility tool 
;        Installation - "pnputil /add-driver ov13858.inf /install"
;        Uninstallation - "pnputil /delete-driver xxx.inf"
;
;--*/

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

[DestinationDirs]
DefaultDestDir = 13
CopyCPFFiles=13
CopyGSFiles=13

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

[Manufacturer]
%OV13858%=Standard,NTamd64

; For XP and later
[Standard.NTamd64]
%OV13858.DeviceDesc%=OV13858_Device, ACPI\OVTID858

[OV13858_Device.NTamd64]
CopyFiles=CopyDriverFiles
CopyFiles=CopyCPFFiles
CopyFiles=CopyGSFiles

[CopyDriverFiles]
ov13858.sys

[CopyCPFFiles]
OV13858_YHCE_LKF.cpf
OV13858_YHCEU_LKF.cpf
OV13858_YHCE_LKF.aiqb
OV13858_YHCEU_LKF.aiqb

[CopyGSFiles]
graph_settings_OV13858_YHCE_LKF.xml
graph_settings_OV13858_YHCEU_LKF.xml

;-------------- Service installation
[OV13858_Device.NTamd64.Services]
AddService = OV13858, %SPSVCINST_ASSOCSERVICE%, OV13858_Service_Inst

[OV13858_Service_Inst]
DisplayName    = %OV13858.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %13%\ov13858.sys
Dependencies   = SpbCx,inteli2c

[OV13858_Device.NTamd64.HW]
AddReg         = OV13858_Device.AddReg

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

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

[SourceDisksFiles]
ov13858.sys = 1
OV13858_YHCE_LKF.cpf = 1
graph_settings_OV13858_YHCE_LKF.xml = 1
OV13858_YHCEU_LKF.cpf = 1
graph_settings_OV13858_YHCEU_LKF.xml = 1

OV13858_YHCE_LKF.aiqb = 1
OV13858_YHCEU_LKF.aiqb = 1
[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
INTEL = "Intel Corporation"
OV13858 = "OV13858 Camera Sensor"
DiskId1 = "OV13858 Camera Installation Disk #1"
OV13858.DeviceDesc = "Camera Sensor OV13858"
OV13858.SVCDESC = "Camera Sensor OV13858"
