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

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%INTEL%
DriverVer=09/03/2015,604.10146.2443.6099

CatalogFile=ov2680.cat
PnpLockdown=1

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

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

[Manufacturer]
%ov2680%=Standard,NTx86

; For XP and later
[Standard.NTx86]
%ov2680.DeviceDesc%=ov2680_Device, ACPI\OVTI2680

[ov2680_Device.NTamd64]
CopyFiles=ov2680_Device.NT.Copy
CopyFiles=CopyCPFFiles
CopyFiles=CopyX64ExtraCPFFiles
Reboot

[ov2680_Device.NTx86]
CopyFiles=ov2680_Device.NT.Copy
CopyFiles=CopyCPFFiles
Reboot

[ov2680_Device.NT.Copy]
ov2680.sys

[CopyCPFFiles]
OV2680_12P2BA536_CHT_CR.cpf

[CopyX64ExtraCPFFiles]
OV2680_12P2BA536_CHT_CR.cpf

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

[ov2680_Device.NTx86.Services]
AddService = ov2680, %SPSVCINST_ASSOCSERVICE%, ov2680_Service_Inst

[ov2680_Device.NTamd64.Services]
AddService = ov2680, %SPSVCINST_ASSOCSERVICE%, ov2680_Service_Inst

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

[OV2680_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]
ov2680.sys = 1
OV2680_12P2BA536_CHT_CR.cpf = 1

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