; 
; Copyright (C) 2004-2007 Motorola, Inc. All Rights Reserved
; File: mototrbo.inf
; Author: Daniel Zetzl
; Description
;    This is the INF file to install the RNDIS drivers for the
;    Mototrbo products. This INF file is used for the Microsoft 
;    Windows 2000 and Microsoft Windows XP operating systems.
;

[Version]
Signature           = "$Windows NT$"
Class               = Net
ClassGUID           = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider            = %MOT%
DriverVer           = 05/13/2005,5.2.3790.1454
CatalogFile         = mototrbo.cat

[Manufacturer]
%MOT%          = MotoTrboDevice,NT.5.1

[MotoTrboDevice]
; Vendor ID is VID_vvvv. For example, VID_0cad - Motorola GEMS Vendor Code
; Product ID is PID_pppp. For example, PID_1020 - MOTOTRBO Portable Product Code (PID_1021 is MOTOTRBO Mobile/Repeater)
%MOTDevice%    = RNDIS.NT, USB\VID_0cad&PID_1020
%MOTDevice%    = RNDIS.NT, USB\VID_0cad&PID_1021

[MotoTrboDevice.NT.5.1]
; Vendor ID is VID_vvvv. For example, VID_0cad - Motorola GEMS Vendor Code
; Product ID is PID_pppp. For example, PID_1020 - MOTOTRBO Portable Product Code (PID_1021 is MOTOTRBOMobile/Repeater)
%MOTDevice%    = RNDIS.NT.5.1, USB\VID_0cad&PID_1020
%MOTDevice%    = RNDIS.NT.5.1, USB\VID_0cad&PID_1021

[ControlFlags]
;Don't exclude any devices for now.
;ExcludeFromSelect=*

; Windows 2000 specific sections ---------------------------------

[RNDIS.NT]
Characteristics = 0x84   ; NCF_PHYSICAL + NCF_HAS_UI
BusType         = 15
DriverVer       = 05/13/2005,5.2.3790.1454
AddReg          = RNDIS_AddReg_NT, RNDIS_AddReg_WIN2K
CopyFiles       = RNDIS_CopyFiles_NT

; DO NOT MODIFY THE SERVICE NAME
[RNDIS.NT.Services]
AddService = USB_RNDIS, 2, RNDIS_ServiceInst_NT, RNDIS_EventLog

[RNDIS_CopyFiles_NT]
; no rename of files on Windows 2000, use the 'y' names as is
usb8023y.sys, usb8023y.sys, , 0x00000021 
rndismpy.sys, rndismpy.sys, , 0x00000021

[RNDIS_ServiceInst_NT]
DisplayName     = %ServiceDisplayName%
ServiceType     = 1 
StartType       = 3 
ErrorControl    = 1 
ServiceBinary   = %12%\usb8023y.sys    
LoadOrderGroup  = NDIS
AddReg          = RNDIS_WMI_AddReg_NT

[RNDIS_WMI_AddReg_NT]
HKR, , MofImagePath, 0x00020000, "System32\drivers\rndismpy.sys"

; Windows XP specific sections -----------------------------------

[RNDIS.NT.5.1]
Characteristics = 0x84   ; NCF_PHYSICAL + NCF_HAS_UI
BusType         = 15
DriverVer       = 05/13/2005,5.2.3790.1454
AddReg          = RNDIS_AddReg_XP
CopyFiles       = RNDIS_CopyFiles_NT_5_1

[RNDIS_CopyFiles_NT_5_1]
usb8023y.sys, usb8023y.sys, , 0x00000020 
rndismpy.sys, rndismpy.sys, , 0x00000020

[RNDIS.NT.5.1.Services]
AddService      = USB_RNDIS, 2, RNDIS_ServiceInst_51, RNDIS_EventLog

[RNDIS_ServiceInst_51]
DisplayName     = %ServiceDisplayName%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\usb8023y.sys    
LoadOrderGroup  = NDIS

; Windows 2000 sections 

; DO NOT MODIFY ServiceName
[RNDIS_AddReg_NT]
HKR, Ndi,               Service,        0, "USB_RNDIS"
HKR, Ndi\Interfaces,    UpperRange,     0, "ndis5" 
HKR, Ndi\Interfaces,    LowerRange,     0, "ethernet"

[RNDIS_AddReg_WIN2K]
HKR, ,                  ReclaimRecv,    0x00010001, 1
HKR, NDI\params\NetworkAddress, ParamDesc,  0, %NetworkAddress%
HKR, NDI\params\NetworkAddress, type,       0, "edit"
HKR, NDI\params\NetworkAddress, LimitText,  0, "12"
HKR, NDI\params\NetworkAddress, UpperCase,  0, "1"
HKR, NDI\params\NetworkAddress, default,    0, " "
HKR, NDI\params\NetworkAddress, optional,   0, "1"
HKR,                                           , PnPCapabilities, 0x00010001 , 0x00000038 
HKLM, SYSTEM\CurrentControlSet\Control\UsbFlags, IgnoreHWSerNum0cad1020, 0x00000001, 0x01
HKLM, SYSTEM\CurrentControlSet\Control\UsbFlags, IgnoreHWSerNum0cad1021, 0x00000001, 0x01

[RNDIS_EventLog]
AddReg = RNDIS_EventLog_AddReg

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

[RNDIS_AddReg_XP]
HKR,    ,                         BusNumber,           0, "0" 
HKR, Ndi,                         Service,             0, "USB_RNDIS"
HKR, Ndi\Interfaces,              UpperRange,          0, "ndis5"
HKR, Ndi\Interfaces,              LowerRange,          0, "ethernet"
HKR, NDI\params\NetworkAddress, ParamDesc,  0, %NetworkAddress%
HKR, NDI\params\NetworkAddress, type,       0, "edit"
HKR, NDI\params\NetworkAddress, LimitText,  0, "12"
HKR, NDI\params\NetworkAddress, UpperCase,  0, "1"
HKR, NDI\params\NetworkAddress, default,    0, " "
HKR, NDI\params\NetworkAddress, optional,   0, "1"
HKR,                                           , PnPCapabilities, 0x00010001 , 0x00000038 
HKLM, SYSTEM\CurrentControlSet\Control\UsbFlags, IgnoreHWSerNum0cad1020, 0x00000001, 0x01
HKLM, SYSTEM\CurrentControlSet\Control\UsbFlags, IgnoreHWSerNum0cad1021, 0x00000001, 0x01

[SourceDisksNames]
1=%SourceDisk%,,1

[SourceDisksFiles]
usb8023y.sys=1
rndismpy.sys=1

[DestinationDirs]
RNDIS_CopyFiles_NT     = 12
RNDIS_CopyFiles_NT_5_1 = 12

; DO NOT CHANGE ServiceDisplayName
[Strings]
; Per the directions in 'Rndis_INF_Readme.htm', we cannot change the ServiceDisplayName
ServiceDisplayName    = "USB_RNDIS"
NetworkAddress        = "Network Address"
MOT                   = "Motorola Corporation"
MOTDevice             = "MOTOTRBO Radio"
SourceDisk            = "Motorola Installation Disk"

