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

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%INTEL%
DriverVer = 01/06/2023,63.22000.0.12
CatalogFile=OV02C10.cat
PnpLockdown=1

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

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

[Manufacturer]
%OV02C10%=Standard,NTamd64

; For XP and later
[Standard.NTamd64]
%OV02C10.DeviceDesc%=OV02C10_Device, ACPI\OVTI02C1

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

[OV02C10_Device.NTamd64.HW]
AddReg=OV02C10_Dev.AddReg

[OV02C10_Device.NTx86.HW]
AddReg=OV02C10_Dev.AddReg

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

[OV02C10_Device.NT.Copy]
OV02C10.sys
graph_settings_OV02C10_KBFC645_ADL.xml
privacy_16x9.bmp
privacy_4x3.bmp

[CopyCPFFiles]
OV02C10_KBFC645_ADL.aiqb
OV02C10_KBFC645_ADL.cpf

;privacy_3x2.bmp
;privacy_1x1.bmp
;privacy.bmp

[CopyX64ExtraCPFFiles]
OV02C10_KBFC645_ADL.aiqb
OV02C10_KBFC645_ADL.cpf
;privacy_16x9.bmp
;privacy_4x3.bmp
;privacy_3x2.bmp
;privacy_1x1.bmp
;privacy.bmp

;-------------- Service installation
[OV02C10_Device.NTamd64.Services]
AddService = OV02C10, %SPSVCINST_ASSOCSERVICE%, OV02C10_Service_Inst

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

[OV02C10_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,,DisableNVMData,0x10001,0

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

[SourceDisksFiles]
OV02C10.sys = 1
OV02C10_KBFC645_ADL.aiqb = 1
OV02C10_KBFC645_ADL.cpf = 1
graph_settings_OV02C10_KBFC645_ADL.xml = 1
privacy_16x9.bmp = 1
privacy_4x3.bmp = 1

;privacy_3x2.bmp = 1
;privacy_1x1.bmp = 1
;privacy.bmp = 1

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

