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

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%INTEL%
DriverVer = 05/18/2017,30.15063.4659.2
CatalogFile=ov5670.cat
PnpLockdown=1

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

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

[Manufacturer]
%Ov5670%=Standard,NTamd64

; For XP and later
[Standard.NTamd64]
%ov5670.DeviceDesc%=Ov5670_Device, ACPI\INT3479
%ov5670.DeviceDescHP%=Ov5670_Device, ACPI\VEN_INT&DEV_3479&SUBSYS_Truevision

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

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

[Ov5670_Device.NT.Copy]
ov5670.sys
OV5670_CJAE533_SKY_pipeCfg.bin
OV5670_4BF523T2_SKY_pipeCfg.bin
OV5670_6BF502T2_SKY_pipeCfg.bin
OV5670_CJAE547-1_SKY_pipeCfg.bin
OV5670_CJFE563_SKY_pipeCfg.bin
OV5670_5BF503T2_SKY_pipeCfg.bin
OV5670_5BF501T2_SKY_pipeCfg.bin
OV5670_CJFE561_SKY_pipeCfg.bin
OV5670_AM-5C013_SKY_pipeCfg.bin
OV5670_CJFF528_SKY_pipeCfg.bin
OV5670_CJAE563_SKY_pipeCfg.bin
OV5670_CDXP9_JRMGF_SKY_pipeCfg.bin

[CopyCPFFiles]
OV5670_CJAE533_SKY.cpf
OV5670_4BF523T2_SKY.cpf
OV5670_6BF502T2_SKY.cpf
OV5670_CJAE547-1_SKY.cpf
OV5670_CJFE563_SKY.cpf
OV5670_5BF503T2_SKY.cpf
OV5670_5BF501T2_SKY.cpf
OV5670_CJFE561_SKY.cpf
OV5670_AM-5C013_SKY.cpf
OV5670_CJFF528_SKY.cpf
OV5670_CJAE563_SKY.CPF
OV5670_CDXP9_JRMGF_SKY.cpf

[CopyX64ExtraCPFFiles]
OV5670_CJAE533_SKY.cpf
OV5670_4BF523T2_SKY.cpf
OV5670_6BF502T2_SKY.cpf
OV5670_CJAE547-1_SKY.cpf
OV5670_CJFE563_SKY.cpf
OV5670_5BF503T2_SKY.cpf
OV5670_5BF501T2_SKY.cpf
OV5670_CJFE561_SKY.cpf
OV5670_AM-5C013_SKY.cpf
OV5670_CJFF528_SKY.cpf
OV5670_CJAE563_SKY.CPF
OV5670_CDXP9_JRMGF_SKY.cpf

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

[Ov5670_Device.NTx86.Services]
AddService = ov5670, %SPSVCINST_ASSOCSERVICE%, ov5670_Service_Inst

[Ov5670_Device.NTamd64.Services]
AddService = ov5670, %SPSVCINST_ASSOCSERVICE%, ov5670_Service_Inst

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

[Ov5670_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]
ov5670.sys = 1
OV5670_CJAE533_SKY.cpf = 1
OV5670_4BF523T2_SKY.cpf = 1
OV5670_6BF502T2_SKY.cpf = 1
OV5670_CJAE547-1_SKY.cpf = 1
OV5670_5BF503T2_SKY.cpf = 1
OV5670_CJAE533_SKY_pipeCfg.bin = 1 
OV5670_4BF523T2_SKY_pipeCfg.bin = 1 
OV5670_6BF502T2_SKY_pipeCfg.bin = 1 
OV5670_CJAE547-1_SKY_pipeCfg.bin = 1 
OV5670_CJFE563_SKY_pipeCfg.bin = 1
OV5670_5BF503T2_SKY_pipeCfg.bin = 1 
OV5670_CJFE563_SKY.cpf = 1 
OV5670_5BF501T2_SKY.cpf = 1
OV5670_CJFE561_SKY.cpf = 1
OV5670_5BF501T2_SKY_pipeCfg.bin = 1
OV5670_CJFE561_SKY_pipeCfg.bin = 1
OV5670_AM-5C013_SKY_pipeCfg.bin = 1
OV5670_AM-5C013_SKY.cpf = 1
OV5670_CJFF528_SKY_pipeCfg.bin = 1
OV5670_CJFF528_SKY.cpf = 1
OV5670_CJAE563_SKY_pipeCfg.bin = 1
OV5670_CJAE563_SKY.CPF = 1
OV5670_CDXP9_JRMGF_SKY.cpf = 1
OV5670_CDXP9_JRMGF_SKY_pipeCfg.bin = 1

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
INTEL = "Intel Corporation"
Ov5670 = "OV5670 Camera Sensor"
DiskId1 = "OV5670 Camera Installation Disk #1"
ov5670.DeviceDesc = "Camera Sensor OV5670"
ov5670.DeviceDescHP = "HP Truevision 5MP Front"
ov5670.SVCDESC = "Camera Sensor OV5670"

