; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
;
;  MBM Geo Sensor & Serial Driver - Copyright (C) 2012 Ericsson AB
;
;  2012-02-17 - emikknu
;
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


[Version]
signature   = "$Windows NT$"
Class       = Sensor
ClassGuid   = {5175D334-C371-4806-B3BA-71FD53C9258D}
Provider    = "Ericsson AB"
CatalogFile = MbmUsbSerial.cat
PnpLockDown = 1
DriverVer=09/01/2013,8.1.0.8

[ControlFlags]
ExcludeFromSelect=*

; -----------------------------------------------------------------------------

[Manufacturer]
"Ericsson AB" = EricssonAB, NTx86, NTamd64

; -----------------------------------------------------------------------------

[EricssonAB.NTx86]
"F5521 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_190D&Cdc_Modem&MI_03
"F5321 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_1917&Cdc_Modem&MI_03
"H5321 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_1919&Cdc_Modem&MI_03
"C5621 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_191F&Cdc_Modem&MI_03
"Dell Wireless 5550 HSPA+ Mini-Card Geolocation Sensor"               = MbmUsbGeoInstall,  USB\Vid_413C&Pid_818D&Cdc_Modem&MI_03
"Dell Wireless 5560 HSPA+ Mini-Card Geolocation Sensor"               = MbmUsbGeoInstall,  USB\Vid_413C&Pid_818E&Cdc_Modem&MI_03
"HP hs2340 HSPA+ Mobile Broadband Module Geolocation Sensor"          = MbmUsbGeoInstall,  USB\Vid_03f0&Pid_3A1D&Cdc_Modem&MI_03
"HP hs2340 HSPA+ Mobile Broadband Module Geolocation Sensor"          = MbmUsbGeoInstall,  USB\Vid_03f0&Pid_451D&Cdc_Modem&MI_03
"HP hs2350 HSPA+ Mobile Broadband Module Geolocation Sensor"          = MbmUsbGeoInstall,  USB\Vid_03f0&Pid_3D1D&Cdc_Modem&MI_03
"HP Touchpad Geolocation Sensor"                                      = MbmUsbGeoInstall,  USB\Vid_03f0&Pid_0042&Cdc_Modem&MI_03
"F5521 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_1911&Cdc_Modem&MI_03
"H5321 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_1926&Cdc_Modem&MI_03
"F5321 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_1930&Cdc_Modem&MI_03
"C5621 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_1936&Cdc_Modem&MI_03
"N5321 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_193E&Cdc_Modem&MI_03
"N5321 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_1940&Cdc_Modem&MI_03

"Ericsson F5521 gw for TOSHIBA Mobile Broadband Geolocation Sensor"   = MbmUsbGeoInstall,  USB\Vid_0930&Pid_1314&Cdc_Modem&MI_03
"Ericsson F5321 gw for TOSHIBA Mobile Broadband Geolocation Sensor"   = MbmUsbGeoInstall,  USB\Vid_0930&Pid_131B&Cdc_Modem&MI_03
"Ericsson H5321 gw for TOSHIBA Mobile Broadband Geolocation Sensor"   = MbmUsbGeoInstall,  USB\Vid_0930&Pid_1319&Cdc_Modem&MI_03
"Ericsson C5621 gw for TOSHIBA Mobile Broadband Geolocation Sensor"   = MbmUsbGeoInstall,  USB\Vid_0930&Pid_1321&Cdc_Modem&MI_03

"Novatel Wireless Mobile Broadband Geolocation Sensor"		      = MbmUsbGeoInstall,  USB\Vid_1410&Pid_901A&Cdc_Modem&MI_03

[EricssonAB.NTamd64]
"F5521 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_190D&Cdc_Modem&MI_03
"F5321 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_1917&Cdc_Modem&MI_03
"H5321 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_1919&Cdc_Modem&MI_03
"C5621 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_191F&Cdc_Modem&MI_03
"Dell Wireless 5550 HSPA+ Mini-Card Geolocation Sensor"               = MbmUsbGeoInstall,  USB\Vid_413C&Pid_818D&Cdc_Modem&MI_03
"Dell Wireless 5560 HSPA+ Mini-Card Geolocation Sensor"               = MbmUsbGeoInstall,  USB\Vid_413C&Pid_818E&Cdc_Modem&MI_03
"HP hs2340 HSPA+ Mobile Broadband Module Geolocation Sensor"          = MbmUsbGeoInstall,  USB\Vid_03f0&Pid_3A1D&Cdc_Modem&MI_03
"HP hs2340 HSPA+ Mobile Broadband Module Geolocation Sensor"          = MbmUsbGeoInstall,  USB\Vid_03f0&Pid_451D&Cdc_Modem&MI_03
"HP hs2350 HSPA+ Mobile Broadband Module Geolocation Sensor"          = MbmUsbGeoInstall,  USB\Vid_03f0&Pid_3D1D&Cdc_Modem&MI_03
"HP Touchpad Geolocation Sensor"                                      = MbmUsbGeoInstall,  USB\Vid_03f0&Pid_0042&Cdc_Modem&MI_03
"F5521 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_1911&Cdc_Modem&MI_03
"H5321 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_1926&Cdc_Modem&MI_03
"F5321 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_1930&Cdc_Modem&MI_03
"C5621 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_1936&Cdc_Modem&MI_03
"N5321 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_193E&Cdc_Modem&MI_03
"N5321 gw Mobile Broadband Geolocation Sensor"                        = MbmUsbGeoInstall,  USB\Vid_0BDB&Pid_1940&Cdc_Modem&MI_03

"Ericsson F5521 gw for TOSHIBA Mobile Broadband Geolocation Sensor"   = MbmUsbGeoInstall,  USB\Vid_0930&Pid_1314&Cdc_Modem&MI_03
"Ericsson F5321 gw for TOSHIBA Mobile Broadband Geolocation Sensor"   = MbmUsbGeoInstall,  USB\Vid_0930&Pid_131B&Cdc_Modem&MI_03
"Ericsson H5321 gw for TOSHIBA Mobile Broadband Geolocation Sensor"   = MbmUsbGeoInstall,  USB\Vid_0930&Pid_1319&Cdc_Modem&MI_03
"Ericsson C5621 gw for TOSHIBA Mobile Broadband Geolocation Sensor"   = MbmUsbGeoInstall,  USB\Vid_0930&Pid_1321&Cdc_Modem&MI_03

"Novatel Wireless Mobile Broadband Geolocation Sensor"		      = MbmUsbGeoInstall,  USB\Vid_1410&Pid_901A&Cdc_Modem&MI_03


; -----------------------------------------------------------------------------

[MbmUsbGeoInstall.NT]
CopyFiles          = UMDriverCopy
CopyFiles          = MbmUsbSerial.Files
CopyFiles          = GpsRmSwitchRegSvr.Files
AddReg             = MbmUsbSerial.AddReg
AddReg             = GpsRmSwitchRegSvr.AddReg
AddReg             = GpsRmSwitchRegSvr_cfg.AddReg
AddProperty        = DriverPropertiesSection
RegisterDlls       = GpsRmSwitchRegSvr


[MbmUsbGeoInstall.NT.hw]
AddReg             = LowerFilterAddReg

[MbmUsbGeoInstall.NT.Services]
AddService         = WUDFRd, 0x013A, WUDFRD_ServiceInstall
AddService         = MbmUsbSerial, 0x00, MbmUsbSerial.AddService

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

[MbmUsbGeoInstall.NT.Wdf]
UmdfService        = MbmUsbGeoSensor, UMDFMbmUsbGeoInstall
UmdfServiceOrder   = MbmUsbGeoSensor
UmdfImpersonationLevel = Impersonation

; -----------------------------------------------------------------------------

[DefaultUninstall]
DelReg             = GpsRmSwitchRegSvr.AddReg
UnregisterDlls     = GpsRmSwitchRegSvr

; -----------------------------------------------------------------------------

[UMDFMbmUsbGeoInstall]
UmdfLibraryVersion = 1.11.0
ServiceBinary      = %12%\UMDF\MbmGeolocationSensor.dll
DriverCLSID        = {af87b61e-c876-93a7-45b8-016c6a0e777a}

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

[SourceDisksFiles]

MbmGeolocationSensor.dll = 1
MbmGpsRM.dll = 1

[SourceDisksNames.x86]
1 = %MediaDescription%,,,\x86

[SourceDisksNames.amd64]
1 = %MediaDescription%,,,\x64

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

[WUDF_CoInstallers_CopyFiles]

[DestinationDirs]
UMDriverCopy = 12, UMDF
WUDF_CoInstallers_CopyFiles = 11
GpsRmSwitchRegSvr.Files = 11
DefaultDestDir = 12

[UMDriverCopy]
MbmGeolocationSensor.dll

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

; -----------------------------------------------------------------------------

[LowerFilterAddReg]
HKR,, "LowerFilters", 0x00010000, "MbmUsbSerial"

; -----------------------------------------------------------------------------

[MbmUsbSerial.AddService]
DisplayName    = "MBM USB Generic Serial Driver svc"
ServiceType    = 1  ; SERVICE_KERNEL_DRIVER
StartType      = 3  ; SERVICE_DEMAND_START
ErrorControl   = 1  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\MbmUsbSerial.sys

[MbmUsbSerial.Files]
MbmUsbSerial.sys

[SourceDisksFiles]
MbmUsbSerial.sys = 1


; ----------------------------------------------------------------------

[MbmUsbSerial.AddReg]
HKR,,EricssonAB,             0x1,     45,72,69,63,73,73,6F,6E,0
HKR,,SelSuspendTimeoutSec,   0x10001, 3
HKR,,AllowMultipleHandles,   0x10001, 0
HKR,,ReadOnlyAccess,         0x10001, 0
HKR,,MarkAsNmeaPort,         0x10001, 0
HKR,,UseGlobalHandleCounter, 0x10001, 0
HKR,,FavorMgmtOverAcm,       0x10001, 0
HKR,,CmdStrOpen,             0x1,     0
HKR,,CmdStrClose,            0x1,     0
HKR,,NoSymLink,              0x10001, 1

; ----------------------------------------------------------------------

[GpsRmSwitchRegSvr]
11,,MbmGpsRM.dll, 1

[GpsRmSwitchRegSvr.Files]
MbmGpsRM.dll

[GpsRmSwitchRegSvr.AddReg]
HKCR, "CLSID\{8EDC502B-2873-983F-7BB3-2BA6D02AB2DE}",, 0x00, "GPS Radio Manager" 
HKCR, "CLSID\{8EDC502B-2873-983F-7BB3-2BA6D02AB2DE}\InProcServer32",, 0x20000, "%SystemRoot%\system32\MbmGpsRM.dll" 
HKCR, "CLSID\{8EDC502B-2873-983F-7BB3-2BA6D02AB2DE}\InProcServer32", ThreadingModel, 0x00, "Both" 
HKLM, "SYSTEM\CurrentControlSet\Control\RadioManagement\{8EDC502B-2873-983F-7BB3-2BA6D02AB2DE}",, 0x00, "GPS Radio Manager"

[GpsRmSwitchRegSvr_cfg.AddReg]
HKLM, "SYSTEM\CurrentControlSet\Control\RadioManagement\Misc\MbmGps",, 0x00, "GPS Radio Manager"
HKLM, "SYSTEM\CurrentControlSet\Control\RadioManagement\Misc\MbmGps\0001", Name, 0x00, "GPS"
HKLM, "SYSTEM\CurrentControlSet\Control\RadioManagement\Misc\MbmGps\0001", RadioState, 0x10001, 0
HKLM, "SYSTEM\CurrentControlSet\Control\RadioManagement\Misc\MbmGps\0001", IsMultiComm, 0x10001, 0
HKLM, "SYSTEM\CurrentControlSet\Control\RadioManagement\Misc\MbmGps\0001", DrvLastRadioState, 0x10001, 0
HKLM, "SYSTEM\CurrentControlSet\Control\RadioManagement\Misc\MbmGps\0001", InactiveRadioState, 0x10001, 6

;[GpsRmSwitchRegSvr_cfg.AddReg.Security]
;"D:P(A;CI;GA;;;BA)(A;CI;GA;;;SY)(A;CI;GA;;;AU)(A;CI;GA;;;LS)"

;---------------------------------------------------------------;

[Strings]
ERICSSONAB         = "Ericsson AB"
Disk_Description   = "Mobile Broadband Installation Disk"
MediaDescription   = "Mobile Broadband Installation Disk"
WudfRdDisplayName  = "Windows Driver Foundation - User-mode Driver Framework Reflector"

