;------------------------------------------------------------------------------
; Novatel Wireless Selective Suspend Enabler for Mobile Broadband Installation file (.inf).
; (c) Copyright 2011 Novatel Wireless Inc. 
;------------------------------------------------------------------------------

;-------------------------------------------------------------------------------
; INF Version Section
;-------------------------------------------------------------------------------

[Version]
Signature="$WINDOWS NT$"
Class=Sample
ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
Provider= %Mfg%
DriverVer      = 10/10/2011,1.0.0.10
CatalogFile.NT = nwhpssndis.cat
CatalogFile.NTAMD64 = nwhpssndis64.cat

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

[ClassInstall32]
Addreg=SampleClassReg     

[SampleClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5

;-------------------------------------------------------------------------------
; INF Manufactuerer Section
;-------------------------------------------------------------------------------
[Manufacturer]
%Mfg%=Models,NTx86.6.1,NTamd64.6.1

; For XP and later
[Models.NTx86.6.1]
%NW001% = *novatel.ndi, USB\VID_03F0&PID_3B1D&REV_0000&MI_06
%NW002% = *novatel.ndi, USB\VID_03F0&PID_411D&REV_0000&MI_06
%NW003% = *novatel.ndi, USB\VID_03F0&PID_421D&REV_0000&MI_06
%NW004% = *novatel.ndi, USB\VID_03F0&PID_431D&REV_0000&MI_06
%NW005% = *novatel.ndi, USB\VID_03F0&PID_441D&REV_0000&MI_06

[Models.NTamd64.6.1]
%NW001% = *novatel.ndi, USB\VID_03F0&PID_3B1D&REV_0000&MI_06
%NW002% = *novatel.ndi, USB\VID_03F0&PID_411D&REV_0000&MI_06
%NW003% = *novatel.ndi, USB\VID_03F0&PID_421D&REV_0000&MI_06
%NW004% = *novatel.ndi, USB\VID_03F0&PID_431D&REV_0000&MI_06
%NW005% = *novatel.ndi, USB\VID_03F0&PID_441D&REV_0000&MI_06

;-------------------------------------------------------------------------------
; INF SourceDisksNames Section
;------------------------------------------------------------------------------- 
[SourceDisksNames]
1=%novatel_disk%,,,

;-------------------------------------------------------------------------------
; INF SourceDisksFiles Section
;-------------------------------------------------------------------------------
[SourceDisksFiles]
nwhpssndis.sys = 1

[SourceDisksFiles.amd64]
nwhpssndis64.sys = 1

[NDIS_NT_DRIVER]
nwhpssndis.sys,,,0x20

[NDIS_NT_DRIVERamd64]
nwhpssndis.sys,nwhpssndis64.sys,,0x20

;-------------------------------------------------------------------------------
; INF DestinationDirs Section
;-------------------------------------------------------------------------------
[DestinationDirs]
DefaultDestDir = 12

;-------------------------------------------------------------------------------
; INF DDInstall Section
;-------------------------------------------------------------------------------
[*novatel.ndi.NT]
CopyFiles  = NDIS_NT_DRIVER

[*novatel.ndi.NT.HW]
AddReg = Enum_UpperFilter_Reg

[*novatel.ndi.NTamd64]
CopyFiles  = NDIS_NT_DRIVERamd64

[*novatel.ndi.NTamd64.HW]
AddReg     = Enum_UpperFilter_Reg

[Enum_UpperFilter_Reg]
HKR, ,  UpperFilters,  0x00010000, "nwhpssndis"

;-------------------------------------------------------------------------------
; INF DDInstall.Services Section
;-------------------------------------------------------------------------------
[*novatel.ndi.NT.Services]
Addservice = nwhpssndis, 2, novatel.Service

[*novatel.ndi.NTamd64.Services]
AddService = nwhpssndis, 2, novatel.Service

[novatel.Service]
DisplayName    = %novatel.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\nwhpssndis.sys
LoadOrderGroup = Base
AddReg	       = SSPowerMgt, RemoteWakeupEnblDisbl

[SSPowerMgt]
HKR,,QCDriverSelectiveSuspendIdleTime,0x00010001,0x80000005

[RemoteWakeupEnblDisbl]
HKR,,QCDriverRemoteWakeupEnableDisable,0x00010001,0x00000000

;-------------------------------------------------------------------------------
; WDF Coinstaller installation
;-------------------------------------------------------------------------------
[DestinationDirs]
CoInstaller_CopyFiles = 11

[nwhpss.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[nwhpss.NTamd64.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles_amd64

[CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[CoInstaller_CopyFiles_amd64]
wdfcoinstaller01009.dll, wdfcoinstaller01009_amd64.dll,,0x20

[SourceDisksFiles]
WdfCoInstaller01009.dll=1 ; make sure the number matches with SourceDisksNames

[SourceDisksFiles.amd64]
WdfCoInstaller01009_amd64.dll=1 ; make sure the number matches with SourceDisksNames

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller"

[nwhpss.NT.Wdf]
KmdfService = nwhpss, nwhpss_wdfsect

[nwhpss.NTAMD64.Wdf]
KmdfService = nwhpss, nwhpss_wdfsect

[nwhpss_wdfsect]
KmdfLibraryVersion = 1.9

;-------------------------------------------------------------------------------
; INF Strings Section
;-------------------------------------------------------------------------------
[Strings]
Mfg             = "Novatel Wireless Inc"
ClassName       = "Sample Device"
novatel_disk    = "HP Wireless Driver Disk"
novatel.SvcDesc = "HP lt2510VZW Power Management Mobile Broadband Network Adapter Service"
NW001           = "HP lt2510VZW Power Management"
NW002           = "HP lt2522 Power Management"
NW003           = "HP lt2523 Power Management"
NW004           = "HP lt2527 Power Management"
NW005           = "HP lt2528 Power Management"
