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

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%INTEL%
DriverVer=08/13/2014,17.34.9.567
CatalogFile=gc310.cat
PnpLockdown=1

[DestinationDirs]
DefaultDestDir = 12
CopyDLLs=11

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

[Manufacturer]
%gc310%=Standard,NTx86

; For XP and later
[Standard.NTx86]
%gc310.DeviceDesc%=gc310_Device, ACPI\INT0310


[gc310_Device.NT]
CopyFiles=gc310_Device.NT.Copy
CopyFiles=CopyDLLs
Reboot

[gc310_Device.NT.Copy]
gc310.sys

[CopyDLLs]
gc310_13P2BA807.cpf

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

[gc310_Device.NT.Services]
AddService = gc310, %SPSVCINST_ASSOCSERVICE%, gc310_Service_Inst

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

[gc310_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)"
;Default focus mode is continuous focus, it can be changed to auto focus mode by setting EnableAutoFocus with 1
HKLM,SOFTWARE\Intel\Camera,"EnableAutoFocus",0x10001,1

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

[SourceDisksFiles]
gc310.sys = 1
gc310_13P2BA807.cpf = 1

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


