;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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=surface_gnss.cat
;Class=Sensor
;ClassGuid={5175d334-c371-4806-b3ba-71fd53c9258d}
Class=SYSTEM
ClassGuid={4d36e97d-e325-11ce-bfc1-08002be10318}
Provider=%ProviderName%
DriverVer = 03/08/2024,0.0.396.0
PnpLockdown=1

[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 = 13


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

[SourceDisksFiles]
qcgnss.dll=1,,

[Manufacturer]
%ManufacturerName%=qcgnss_Device,NTamd64.10.0...22000

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

[qcgnss_Device.NTamd64.10.0...22000]
%DevDesc% = qcgnss_Inst, {05C9354C-AFD7-40BE-8B68-323EC7FFF97D}\VID_05C6_PID_9085_QCGNSS
%DevDesc% = qcgnss_Inst, {05C9354C-AFD7-40BE-8B68-323EC7FFF97D}\VID_05C6_PID_90E2_QCGNSS
%DevDesc% = qcgnss_Inst, {05C9354C-AFD7-40BE-8B68-323EC7FFF97D}\QcGnss_MSFT_DE

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

[qcgnss_Inst.NT.HW]
AddReg= qcgnss_Inst_HW_AddReg
AddReg=QCGNSSReg
Include=WUDFRD.inf
Needs=WUDFRD.NT.HW

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

[QCGNSSReg]
HKR,qcgnss,GFEnableCpiUsage,0x0000000,"0"
;#Free GF wifi scan skip freqency
; 0 - don't ignore any wlan free scans
; 1 - ignore every alternate wlan free scans (e.g: accept, ignore, accept, ignore, etc..)
; 2 - (e.g: accept, ignore, ignore, accept, ignore, ignore, accept, etc..)
HKR,qcgnss,FreeWifiScanSkipFreq,0x0000000,"10"

[qcgnss_Inst.NT]
CopyFiles=qcgnssCopy
AddReg= qcgnss_AddReg
Include=WUDFRD.inf
Needs=WUDFRD.NT

[qcgnssCopy]
qcgnss.dll

;-------------- Service installation
[qcgnss_Inst.NT.Services]
Include=WUDFRD.inf
Needs=WUDFRD.NT.Services

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

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

[qcgnss_Install]
UmdfLibraryVersion=2.15.0
ServiceBinary=%13%\qcgnss.dll

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



; =================== Generic ==================================
[Strings]
MediaDescription         = "Qualcomm qcgnss Collection Installation Media"
ProviderName             = "Surface"
ManufacturerName         = "Microsoft"
DevDesc                  = "Qualcomm(R) Location"
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

