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

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

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

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

[Manufacturer]
%Ov2740%=Standard,NTamd64

; For XP and later
[Standard.NTamd64]
%ov2740.DeviceDesc%=Ov2740_Device, ACPI\INT3474

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

[Ov2740_Device.NTx86]
CopyFiles=Ov2740_Device.NT.Copy
CopyFiles=CopyCPFFiles

[Ov2740_Device.NT.Copy]
ov2740.sys
OV2740_4SF259T2_BXT_pipeCfg.bin

[CopyCPFFiles]
OV2740_4SF259T2_BXT.cpf


[CopyX64ExtraCPFFiles]
OV2740_4SF259T2_BXT.cpf


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

[Ov2740_Device.NTx86.Services]
AddService = ov2740, %SPSVCINST_ASSOCSERVICE%, ov2740_Service_Inst

[Ov2740_Device.NTamd64.Services]
AddService = ov2740, %SPSVCINST_ASSOCSERVICE%, ov2740_Service_Inst

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

[Ov2740_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]
ov2740.sys = 1
OV2740_4SF259T2_BXT.cpf = 1
OV2740_4SF259T2_BXT_pipeCfg.bin = 1

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

