;-------------------------------------------------------------------------------
;
; Motorola USB Networking Driver (motousbnet.inf)
;
; Copyright (c) 2006-2011 Motorola
;
;-------------------------------------------------------------------------------

[version]
Signature   = "$Windows NT$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %Motorola%
DriverVer   = 01/02/2007, 1.8.0.0
CatalogFile = motousbnet.cat

[ControlFlags]
ExcludeFromSelect = {b85b7c50-6a01-11d2-b841-00c04fad5171}\Motousbnet

[DestinationDirs]
Motousbnet.CopyFiles = 12

[Motousbnet.CopyFiles]
Motousbnet.sys,,,2
motfilt.sys,,,2
motswch.sys,,,2

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

[SourceDisksFiles]
Motousbnet.sys = 1,,
motswch.sys = 1,,
motfilt.sys = 1,,

; Models -----------------------------------------------------------------------

[Manufacturer]
%Motorola% = Motorola,NT.5.1,NTamd64

[Motorola]
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6027
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424&MI_01
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424&MI_02
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424&MI_03
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424&MI_04
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6425&MI_01
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6425&MI_02
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6425&MI_03
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6425&MI_04
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6427&MI_01
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6427&MI_02
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6427&MI_03
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6427&MI_04

[Motorola.NT.5.1]
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6027
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424&MI_01
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424&MI_02
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424&MI_03
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424&MI_04
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6425&MI_01
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6425&MI_02
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6425&MI_03
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6425&MI_04
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6427&MI_01
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6427&MI_02
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6427&MI_03
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6427&MI_04

[Motorola.NTamd64]
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6027
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424&MI_01
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424&MI_02
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424&MI_03
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6424&MI_04
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6425&MI_01
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6425&MI_02
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6425&MI_03
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6425&MI_04
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6427&MI_01
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6427&MI_02
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6427&MI_03
%Motousbnet.DeviceDesc% = Motousbnet.ndi, USB\VID_22b8&PID_6427&MI_04

; Model sections ---------------------------------------------------------------

[Motousbnet.ndi]
Characteristics = 0x4 ; NCF_PHYSICAL
BusType         = 15 ; if you specify NCF_PHYSICAL, you must specify bustype
AddReg          = Motousbnet.Reg, ParamsPromiscuous, Motousbnet.ndi.AddReg
CopyFiles       = Motousbnet.CopyFiles

[Motousbnet.ndi.HW]
AddReg          = Motousbnet.ndi.AddReg

; Services ---------------------------------------------------------------------

[Motousbnet.ndi.Services]
AddService      = Motousbnet, 2, Motousbnet.Service, Motousbnet.EventLog
AddService      = MotoSwitchService,,MotoSwitch_Service_Inst
AddService      = BTCFilterService,,BTC_Filter_Service_Inst

[Motousbnet.ndi.AddReg]
HKR,,"UpperFilters",0x00010000,MotoSwitchService,BTCFilterService

; Service installation ---------------------------------------------------------

[MotoSwitch_Service_Inst]
DisplayName     = "MotoSwitch Service"
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 0 ;%SERVICE_ERROR_IGNORE%
ServiceBinary   = %12%\motswch.sys
LoadOrderGroup  = extended base

[BTC_Filter_Service_Inst]
DisplayName     = "USB Networking Driver Filter Service"
ServiceType     = 1    ; SERVICE_KERNEL_DRIVER
StartType       = 3    ; SERVICE_AUTO_START
ErrorControl    = 0    ; NORMAL
ServiceBinary   = %12%\motfilt.sys
LoadOrderGroup  = PNP Filter

[Motousbnet.Service]
DisplayName     = %Motousbnet.Service.DispName%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\Motousbnet.sys
LoadOrderGroup  = NDIS
AddReg          = TextModeFlags.Reg

[Motousbnet.EventLog]
AddReg = Motousbnet.AddEventLog.Reg

[Motousbnet.AddEventLog.Reg]
HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\netevent.dll"
HKR, , TypesSupported,   0x00010001, 7

[TextModeFlags.Reg]
HKR, , TextModeFlags,    0x00010001, 0x0001

; Miniport common --------------------------------------------------------------

[Motousbnet.Reg]
HKR,    ,                         BusNumber,           0, "0"
HKR, Ndi,                         Service,             0, "Motousbnet"
HKR, Ndi\Interfaces,              UpperRange,          0, "ndis5"
HKR, Ndi\Interfaces,              LowerRange,          0, "ethernet"

[ParamsPromiscuous]
;
;    Should the physical NIC be set to Promiscuous mode
;
HKR, Ndi\Params\Promiscuous,     ParamDesc, , %Promiscuous%
HKR, Ndi\Params\Promiscuous,     Default,  ,"0"
HKR, Ndi\Params\Promiscuous,     type, ,      enum
HKR, Ndi\Params\Promiscuous\enum,"1",  ,     %Promiscuous_Enable%
HKR, Ndi\Params\Promiscuous\enum,"0",  ,     %Promiscuous_Disable%

; Coinstaller installation -----------------------------------------------------

[DestinationDirs]
Motousbnet_CoInstaller_CopyFiles = 11

[Motousbnet.ndi.CoInstallers]
AddReg    = Motousbnet_CoInstaller_AddReg
CopyFiles = Motousbnet_CoInstaller_CopyFiles

[Motousbnet_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "wdfcoinstaller01005.dll,WdfCoInstaller"

[Motousbnet_CoInstaller_CopyFiles]
wdfcoinstaller01005.dll

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

[Motousbnet.ndi.Wdf]
KmdfService = Motousbnet, Motousbnet_wdfsect
KmdfService = BTCFilterService, BTCFilterService_wdfsect

[Motousbnet_wdfsect]
KmdfLibraryVersion = 1.5

[BTCFilterService_wdfsect]
KmdfLibraryVersion = 1.5

; Strings ----------------------------------------------------------------------

[Strings]
Motorola                    = "Motorola"
Motousbnet.DeviceDesc       = "Motorola USB Networking Driver"
Motousbnet.Service.DispName = "Motorola USB Networking Driver Service"
DiskId1                     = "Motorola USB Networking Driver Disk #1"
Promiscuous                 = "Set the physical NIC to promiscuous mode"
Promiscuous_Disable         = "Disable"
Promiscuous_Enable          = "Enable"
