;/*++
;
;Copyright (c) 2017 by Qualcomm Technologies, Inc.  All Rights Reserved.
;
;Module Name:
;    GPI.inx
;
;Abstract:
;    INF file for installing the GPI Driver
;
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4d36e97d-e325-11ce-bfc1-08002be10318}
Provider=%QC%
DriverVer = 05/28/2019,1.0.10600.1000
CatalogFile=qcgpi850.cat
;PnPLockdown=1

[DestinationDirs]
DefaultDestDir = 13               ; 13 is equivalent to the driver package's driver store directory

; ================= Class section =====================

[SourceDisksNames]
1 = %DiskId%

[SourceDisksFiles]
qcgpi850.sys = 1           ; Source files that are used during installation

[Manufacturer]
%QC%=QC, NTARM64

[QC.NTARM64]
%QCGPI.DeviceDesc%=QCGPI_Device, ACPI\QCOM02F4

[QCGPI_Device.NT]
CopyFiles=Drivers_Dir
;AddReg=QCGpiReg
AddProperty=WDTFSOCDeviceCategory
Reboot

;[QCGpiReg]
;HKR,,GpiTestTimeStart,0x00000001,88,13,00,00 ; 5s
;;HKLM, System\CurrentControlSet\Control\ACPIEX, ComplianceFlags, %REG_DWORD%, 0x7

[QCGPI_Device.NT.HW]
Addreg=qcgpi

[QCgpi]
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"

[Drivers_Dir]
qcgpi850.sys

[WDTFSOCDeviceCategory]
{5D078032-6378-437B-8DA5-9B32B7CA3FDD},2,7,,2

[ControlFlags]
ExcludeFromSelect = *

;-------------- Service installation
[QCGPI_Device.NT.Services]
AddService = qcGPI,%SPSVCINST_ASSOCSERVICE%, QCGPI_Service_Inst

; -------------- GPI driver install sections
[QCGPI_Service_Inst]
DisplayName    = %QCGPI.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 0               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %13%\qcgpi850.sys

; Checks for compatibility with KMDF version
[QCGPI_Device.NT.Wdf]
KmdfService =  QCGPI, QCGPI_wdfsect
[QCGPI_wdfsect]
KmdfLibraryVersion = 1.25

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
QC="Qualcomm Technologies, Inc."
QCGPI.DeviceDesc="Qualcomm(R) Bus Device"
QCGPI.SVCDESC="Qualcomm(R) Bus Device"
;REG_DWORD=0x00010001
DiskId="Qualcomm GPI Driver Installation Disk"

