;/*++
;
;Copyright (c) 2018-2019 Intel Corporation
;
;Module Name:
;
;    Hi-1A1.inf
;
;Abstract:
;    INF file for installing Hi1A1 camera sensor (ACPI\HYV1A1) driver
;
;Installation Notes:
;    Using Devcon: Type "devcon update Hi1A1.inf ACPI\HYV1A1" to install
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%INTEL%
DriverVer = 03/30/2020,10.2.7.57
CatalogFile=Hi1A1.cat
PnpLockdown=1

[DestinationDirs]
DefaultDestDir = 13
CopyCPFFiles=13
CopyGSFiles=13

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

[Manufacturer]
%Hi1A1%=Standard,NTamd64

; For XP and later
[Standard.NTamd64]
%Hi1A1.DeviceDesc%=Hi1A1_Device, ACPI\HYV1A11


[Hi1A1_Device.NTamd64]
CopyFiles=Hi1A1_Device.NT.Copy
CopyFiles=CopyCPFFiles
CopyFiles=CopyGSFiles
Reboot

[Hi1A1_Device.NT.Copy]
Hi1A1.sys

[CopyCPFFiles]
Hi1A1_W767_LKF.cpf
Hi1A1_W767_LKF.aiqb

[CopyGSFiles]
graph_settings_Hi1A1_W767_LKF.xml

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

[Hi1A1_Device.NTamd64.Services]
AddService = Hi1A1, %SPSVCINST_ASSOCSERVICE%, Hi1A1_Service_Inst


[Hi1A1_Service_Inst]
DisplayName    = %Hi1A1.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %13%\Hi1A1.sys
Dependencies   = SpbCx,inteli2c

[Hi1A1_Device.NTamd64.HW]
AddReg         = Hi1A1_Device.AddReg

[Hi1A1_Device.AddReg]
;Use same security checks on relative opens
HKR,Parameters,DeviceCharacteristics,0x10001,0x0100
;Grant access just to built-in administrators, local system, and usermode drivers
HKR,Parameters,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)(A;;GA;;;S-1-5-84-0-0-0-0-0)(D;;GA;;;WD)"
HKR,"WDF","WdfDirectedPowerTransitionEnable",0x00010001,1

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

[SourceDisksFiles]
Hi1A1.sys = 1
Hi1A1_W767_LKF.cpf = 1
graph_settings_Hi1A1_W767_LKF.xml = 1
Hi1A1_W767_LKF.aiqb = 1

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
INTEL = "Intel Corporation"
Hi1A1 = "Hi-1A1 Camera Sensor"
DiskId1 = "Hi-1A1 Camera Installation Disk #1"
Hi1A1.DeviceDesc = "Camera Sensor Hi-1A1"
Hi1A1.SVCDESC = "Camera Sensor Hi-1A1"
