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

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

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

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

[Manufacturer]
%Ov7251%=Standard,NTamd64

; For XP and later
[Standard.NTamd64]
%ov7251.DeviceDesc%=Ov7251_Device, ACPI\INT347E


[Ov7251_Device.NTamd64]
CopyFiles=Ov7251_Device.NT.Copy
CopyFiles=CopyCPFFiles
CopyFiles=CopyGSFiles
Reboot

[Ov7251_Device.NT.Copy]
ov7251.sys

[CopyCPFFiles]
OV7251_5SF010T2_LKF.cpf

[CopyGSFiles]
graph_settings_OV7251_5SF010T2_LKF.xml

;-------------- Service installation

[Ov7251_Device.NTamd64.Services]
AddService = ov7251, %SPSVCINST_ASSOCSERVICE%, ov7251_Service_Inst


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

[Ov7251_Device.NTamd64.HW]
AddReg         = Ov7251_Device.AddReg

[Ov7251_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]
ov7251.sys = 1
OV7251_5SF010T2_LKF.cpf = 1
graph_settings_OV7251_5SF010T2_LKF.xml = 1

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
INTEL = "Intel Corporation"
Ov7251 = "OV7251 Camera Sensor"
DiskId1 = "OV7251 Camera Installation Disk #1"
ov7251.DeviceDesc = "Camera Sensor OV7251"
ov7251.SVCDESC = "Camera Sensor OV7251"
IRSensor="{964F3F9C-F14D-41C3-AA07-5B21B57DEA38}"
