;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; File:        qcgnss.inf
;  
; Description: INF file for installing the Qualcomm GPS qcgnss Driver
;    
; Copyright (c) 2017 by Qualcomm Technologies, Inc. All Rights Reserved.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[Version]
Signature="$Windows NT$"
CatalogFile=qcgnss.cat
;Class=Sensor
;ClassGuid={5175d334-c371-4806-b3ba-71fd53c9258d}
Class=SYSTEM
ClassGuid={4d36e97d-e325-11ce-bfc1-08002be10318}
Provider=%ManufacturerName%
DriverVer = 06/21/2021,1.0.0.7
PnpLockdown=1
;LE1.2 POST-CS8 based

[qcgnss_AddReg]
HKR,,DeviceCharacteristics,0x10001,0x100                 ;Use same security checks on relative opens
HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)(A;;GA;;;LS)" ;Allow generic all access to system, built-in Admin, and Local System.

[DestinationDirs]
DefaultDestDir = 12,UMDF
CoInstallers_CopyFiles=11
QCCIUM.CopyFiles = 11

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

[SourceDisksFiles]
qcgnss.dll=1,,

[Manufacturer]
%ManufacturerName%=qcgnss_Device,NTamd64

;*******************************
; qcgnss Install Section
;*******************************

[qcgnss_Device.NTamd64]
%DevDesc% = qcgnss_Inst, {7DCB3244-C836-4A0C-A1E9-BD68D385AA2B}\VID_1E2D&PID_00B4_QCGNSS


; =================== UMDF  Device ==================================

[qcgnss_Inst.NT.HW]
AddReg= qcgnss_Inst_HW_AddReg

[qcgnss_Inst_HW_AddReg]
HKR,"WDF","WdfDirectedPowerTransitionEnable",0x00010001,1

[qcgnss_Inst.NT]
CopyFiles=qcgnssCopy
AddReg= qcgnss_AddReg

[qcgnssCopy]
qcgnss.dll

;-------------- Service installation
[qcgnss_Inst.NT.Services]
AddService = WUDFRd,0x000001fa,WUDFRD_ServiceInstall ; flag 0x2 sets this as the service for the device

[WUDFRD_ServiceInstall]
DisplayName   = %WudfRdDisplayName%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\WUDFRd.sys

;-------------- WDF specific section

[qcgnss_Inst.NT.Wdf]
UmdfService              = qcgnss, qcgnss_Install
UmdfServiceOrder         = qcgnss
UmdfHostProcessSharing = ProcessSharingDisabled

[qcgnss_Install]
UmdfLibraryVersion=2.15.0
ServiceBinary="%12%\UMDF\qcgnss.dll"

; =================== QCGNSS Specific  ==================================



; =================== Generic ==================================
[Strings]
MediaDescription         = "Qualcomm qcgnss Collection Installation Media"
ManufacturerName         = "Cinterion"
DevDesc                  = "Cinterion PID 0x00B4 PCIe Location GNSS"
WudfRdDisplayName        = "Windows Driver Foundation - User-mode Driver Framework Reflector"
ClassName="Qualcomm Gnss Device"

SERVICE_KERNEL_DRIVER    = 1
SERVICE_DEMAND_START     = 3
SERVICE_ERROR_NORMAL     = 1

