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

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%INTEL%
DriverVer=07/04/2015,20.10154.5740.705
CatalogFile=gc2235.cat
PnpLockdown=1

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

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

[Manufacturer]
%Gc2235%=Standard,NTx86

; For XP and later
[Standard.NTx86]
%gc2235.DeviceDesc%=GC2235_Device, ACPI\INT33F8

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

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

[Gc2235_Device.NT.Copy]
gc2235.sys

[CopyCPFFiles]
GC2235_GNDF130874_BYT.cpf

[CopyX64ExtraCPFFiles]
GC2235_GNDF130874_BYT.cpf


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

[Gc2235_Device.NTx86.Services]
AddService = gc2235, %SPSVCINST_ASSOCSERVICE%, gc2235_Service_Inst

[Gc2235_Device.NTamd64.Services]
AddService = gc2235, %SPSVCINST_ASSOCSERVICE%, gc2235_Service_Inst

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

[Gc2235_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]
gc2235.sys = 1
GC2235_GNDF130874_BYT.cpf = 1


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

