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

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%INTEL%
DriverVer=07/25/2014,603.9600.1948.46482

CatalogFile=hm2056.cat
PnpLockdown=1

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

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

[Manufacturer]
%hm2056%=Standard,NTx86

; For XP and later
[Standard.NTx86]
%hm2056.DeviceDesc%=hm2056_Device, ACPI\HIMX2056

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

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

[hm2056_Device.NT.Copy]
hm2056.sys

[CopyCPFFiles]
HIMX2056_4SF211N2.cpf

[CopyX64ExtraCPFFiles]
HIMX2056_4SF211N2.cpf

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

[hm2056_Device.NTx86.Services]
AddService = hm2056, %SPSVCINST_ASSOCSERVICE%, hm2056_Service_Inst

[hm2056_Device.NTamd64.Services]
AddService = hm2056, %SPSVCINST_ASSOCSERVICE%, hm2056_Service_Inst

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

[hm2056_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]
hm2056.sys = 1
HIMX2056_4SF211N2.cpf = 1

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