;* Copyright 2012 Broadcom Corporation -- http://www.broadcom.com
;* This program is the proprietary software of Broadcom Corporation and/or
;* its licensors, and may only be used, duplicated, modified or distributed
;* pursuant to the terms and conditions of a separate, written license
;* agreement executed between you and Broadcom (an "Authorized License").
;* Except as set forth in an Authorized License, Broadcom grants no license
;* (express or implied), right to use, or waiver of any kind with respect to
;* the Software, and Broadcom expressly reserves all rights in and to the
;* Software and all intellectual property rights therein. IF YOU HAVE NO
;* AUTHORIZED LICENSE, THEN YOU HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY
;* WAY, AND SHOULD IMMEDIATELY NOTIFY BROADCOM AND DISCONTINUE ALL USE OF
;* THE SOFTWARE.
;******************************************************************************/
;
; Broadcom GNSS Location Sensor driver for Windows 8 and beyond
;
; BcmGnssLocationSensor.inf
;

[Version]
Signature	= "$Windows NT$"
Class		= Sensor
ClassGuid	= {5175D334-C371-4806-B3BA-71FD53C9258D}
Provider	= %Broadcom%
CatalogFile	= BcmGnssLocationSensor.cat
PnpLockdown = 1
DriverVer=01/11/2013,19.15.5030.4
; =================== Manufacturer/Models sections =======================

[Manufacturer]
%Broadcom%                      = Broadcom,NTx86

[Broadcom.NTx86]
%BcmGnssLocationSensor.DeviceDesc% = BcmGnssLocationSensor_Install,Sensors\BcmGnssLocationSensor

; =================== Sensors Service Driver  Device ==================================

[BcmGnssLocationSensor_Install.NT]
CopyFiles       = GnssFileCopy, UMDriverCopy
AddProperty     = DriverPropertiesSection
AddReg          = RadioManager_AddReg

[BcmGnssLocationSensor_Install.NT.hw]


[BcmGnssLocationSensor_Install.NT.Services]
AddService      = WUDFRd,0x000001fa,WUDFRD_ServiceInstall

[BcmGnssLocationSensor_Install.NT.CoInstallers]
AddReg          = WUDF_CoInstallers_AddReg
CopyFiles       = WUDF_CoInstallers_CopyFiles

[BcmGnssLocationSensor_Install.NT.Wdf]
UmdfService             = BcmGnssLocationSensor,UMDFBcmGnssLocationSensor_Install
UmdfServiceOrder        = BcmGnssLocationSensor
UmdfImpersonationLevel  = Impersonation

; =================== UMDF Service Install section ===================

[UMDFBcmGnssLocationSensor_Install]
UmdfLibraryVersion      = 1.11.0
ServiceBinary           = %12%\UMDF\BcmGnssLocationSensor.dll
DriverCLSID             = {46F92918-07DE-4466-8FBA-61D3AA195B49}

[WUDFRD_ServiceInstall]
DisplayName     = %WudfRdDisplayName%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\WUDFRd.sys

[SourceDisksFiles]
BcmGnssLocationSensor.dll  = 1
BcmGnss.dll = 1
BcmGnssAtRil.dll = 1
BcmGnssConfig.xml = 1
BcmGnssGpioAcpi.dll = 1

[SourceDisksNames]
1 = %MediaDescription%


[WUDF_CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WUDFCoInstaller.dll"

[WUDF_CoInstallers_CopyFiles]

[RadioManager_AddReg]
HKCR,CLSID\{46F92918-07DE-4466-8FBA-61D3AA195B49},, 0x0, "Broadcom GNSS Radio Manager"
HKCR,CLSID\{46F92918-07DE-4466-8FBA-61D3AA195B49}\InProcServer32,,0x00020000,"%SystemRoot%\system32\drivers\UMDF\BcmGnssLocationSensor.dll"
HKCR,CLSID\{46F92918-07DE-4466-8FBA-61D3AA195B49}\InProcServer32,"ThreadingModel",0x0,"Both"
HKLM,SYSTEM\CurrentControlSet\Control\RadioManagement\{46F92918-07DE-4466-8FBA-61D3AA195B49},"GnssRadioManager",0x00020000,"%SystemRoot%\system32\drivers\UMDF\BcmGnssLocationSensor.dll"
HKLM,SYSTEM\CurrentControlSet\Control\RadioManagement\{46F92918-07DE-4466-8FBA-61D3AA195B49},"ThreadingModel",0x0,"Both"
HKLM,"SYSTEM\CurrentControlSet\Control\RadioManagement\Misc\BcmGnssRadioManager",currRadioState,0x10001,0x0
HKLM,"SYSTEM\CurrentControlSet\Control\RadioManagement\Misc\BcmGnssRadioManager",prevRadioState,0x10001,0x0

[DestinationDirs]
UMDriverCopy            = 12,UMDF
GnssFileCopy            = 12,UMDF

[UMDriverCopy]
BcmGnssLocationSensor.dll,,,0x00004000  ; COPYFLG_IN_USE_RENAME

[GnssFileCopy]
BcmGnss.dll,,,0x00004000  ; COPYFLG_IN_USE_RENAME
BcmGnssAtRil.dll,,,0x00004000  ; COPYFLG_IN_USE_RENAME
BcmGnssConfig.xml,,,0x00004000  ; COPYFLG_IN_USE_RENAME
BcmGnssGpioAcpi.dll,,,0x00004000  ; COPYFLG_IN_USE_RENAME

; =================== Driver Property section ===================

[DriverPropertiesSection]
DeviceIcon,,,,"%SystemRoot%\system32\sensorscpl.dll,-1000"

; =================== Generic ==================================

[Strings]
Broadcom                    = "Broadcom"
MediaDescription            = "Broadcom GNSS Geolocation Sensor Driver Installation Media"
WudfRdDisplayName           = "Windows Driver Foundation - User-mode Driver Framework Reflector"
BcmGnssLocationSensor.DeviceDesc = "Broadcom GNSS Geolocation Sensor"
