Re: NDIS WDM driver installation for multi-port NIC

Tech-Archive recommends: Fix windows errors by optimizing your registry



Try this one. This is similar to the netdrv.inf that's part of the pcidrv sample. The difference is that this one installs ndisedge as a function driver for the device.

-Eliyas

;-------------------------------------------------------------------------------
; NETDRV.INF
;
; Microsoft Sample WDM PCI Driver For Ethernet Adapter With NDIS-WDM sample
; as device upper filter
; Intel 82557/82558 Based PCI Ethernet Adapter (10/100) and Intel compatibles
; Copyright (c) Microsoft Corporation. All rights reserved.


[version]
Signature = "$Windows NT$"
Class = Net
ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider = %Msft%
DriverVer=9/6/2006,3.0.5600.0

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%Msft% = Msft,NTx86, NTia64, NTamd64

; For Win2K
[Msft]
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_1229
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_103D
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_1031
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_1038

; For XP and later
[Msft.NTx86]
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_1229
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_103D
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_1031
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_1038

[Msft.NTia64]
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_1229
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_103D
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_1031
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_1038

[Msft.NTamd64]
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_1229
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_103D
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_1031
%NETDRV.DeviceDesc% = NETDRV.ndi, PCI\VEN_8086&DEV_1038


[NETDRV.ndi]
Characteristics = 0x84 ; NCF_PHYSICAL|NCF_HAS_UI
BusType = 5 ; if you specify NCF_PHYSICAL, you must specify bustype
AddReg = NETDRV.Reg
CopyFiles = NETDRV.CopyFiles

[NETDRV.ndi.Services]
AddService = NdisEdge, 0x00000002, NdisEdge.Service, NETDRV.EventLog

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

;-----------------------------------------------------------------------------
; Driver and Service Section
;
[NETDRV.CopyFiles]
NdisEdge.sys,,,2

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


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

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

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

[SourceDisksNames.x86]
1 = %DiskId1%,,,\i386

[SourceDisksNames.ia64]
1 = %DiskId1%,,,\ia64

[SourceDisksNames.amd64]
1 = %DiskId1%,,,\amd64


[SourceDisksFiles]
NdisEdge.sys = 1,,

;-----------------------------------------------------------------------------
; DestinationDirs
;
[DestinationDirs]
NETDRV.CopyFiles = 12

;-----------------------------------------------------------------------------
; Localizable Strings
;
[Strings]
Msft = "Microsoft"
NETDRV.DeviceDesc = "Sample WDM PCI Driver For Ethernet Adapter With NDIS Upper Edge"
NdisEdge.Service.DispName = "Sample NDIS-WDM Driver Service"
DiskId1 = "Sample WDM PCI Driver For Ethernet Adapter Device Installation Disk #1"

--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/driver/tips/default.mspx

.



Relevant Pages

  • Radeon 9200 SE: device cannot start
    ... RADEON 9200 component does not report any missing file. ... parameter is incorrect" in setapi.log and the driver is not installed. ... In the first case the installation went ... HKR,, DALRULE_ADDNATIVEMODESTOMODETABLE, %REG_DWORD%, 1 ...
    (microsoft.public.windowsxp.embedded)
  • bug fix for aue driver
    ... I have a D-Link DSB-650 USB ethernet adapter, which uses an ADMtek AN986 USB MAC, a Broadcom BCM5201 PHY device, and the aue driver. ...
    (freebsd-current)
  • video card drivers programming --- and directx-ddraw
    ... video card drivers programming --- and directx-ddraw ... i can acces all other resolution, ... this is a driver problem, coz when i had windows 98 all resolutions were ... HKR,, 2D_OEMSetup, %REG_MULTI_SZ%, 0 ...
    (microsoft.public.win32.programmer.directx.graphics)
  • video card drivers programming --- and directx-ddraw
    ... video card drivers programming --- and directx-ddraw ... i can acces all other resolution, ... this is a driver problem, coz when i had windows 98 all resolutions were ... HKR,, 2D_OEMSetup, %REG_MULTI_SZ%, 0 ...
    (microsoft.public.win32.programmer.wmi)
  • [PATCH 0/4] atl1: Attansic L1 ethernet driver
    ... This is the latest submittal of the patchset providing support for the ... Attansic L1 gigabit ethernet adapter. ... kernel version 2.6.20-rc4 current git as of 20070109. ... this driver is a modified version of the Attansic reference ...
    (Linux-Kernel)