about registry for multiple ethernet ports



Hi, all

My design configurations are AT91SAM9260 + Wince5.0 with three ethernet
ports. The three ethernet ports used to work fine. But recently, the port2
and port3 got some problem, no data transfer and OS call miniportreset()
regularly. I guess the registry may not properly set but I can not find the
way to fix it. The following are the registries for ethernet ports:

;
;registry for ethernet port 1
;
[HKEY_LOCAL_MACHINE\Comm\EMACB]
"DisplayName"="EMACB Adapter"
"Group"="NDIS"
"ImagePath"="at91sam9260ek_emacbndis.dll"

[HKEY_LOCAL_MACHINE\Comm\EMACB\Linkage]
"Route"=multi_sz:"EMACB1"

[HKEY_LOCAL_MACHINE\Comm\EMACB1]
"DisplayName"="EMACB Adapter"
"Group"="NDIS"
"ImagePath"="at91sam9260ek_emacbndis.dll"

[HKEY_LOCAL_MACHINE\Comm\Tcpip\Linkage]
"Bind"="EMACB"

[HKEY_LOCAL_MACHINE\Comm\EMACB1\Parms]
"BusNumber"=dword:0
"BusType"=dword:0
"XmitBuffer"=dword:02
"RecvBuffer"=dword:F0
; Be carefull with the VramXmitBuffer and VramRecvBuffer values
; These params allocate EMACB1 buffer into SRAM or SDRAM....
; Be sure that the place where you allocate buffer is really empty
; if not this may cause some problems
; See if another driver isn't using the same memory space
; For example: the display driver sometimes allocate the video memory in
SRAM
"VramXmitBuffer"=dword:300000
; "VramRecvBuffer"=dword:3005F8
"IrqNumber"=dword:15
"SYSINTR" = dword:11
"MemBaseAddress"=dword:30000000
"NetworkAddress"="02-03-04-05-06-09"
"VendorID"=dword:1
"ProductID"=dword:1

[HKEY_LOCAL_MACHINE\Comm\EMACB1\Parms\TcpIp]
"EnableDHCP"=dword:0
"UseZeroBroadcast"=dword:0
"DefaultGateway"="0.0.0.0"
"IpAddress"="192.168.111.224"
"Subnetmask"="255.255.255.0"
"DNS"="0.0.0.0"
"WINS"="0.0.0.0"
"BootSettings"=dword:1 ;1=bootloader settings | 0=Registry settings


[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NDIS]
"Dll"="NDIS.Dll"
"Prefix"="NDS"
"Index"=dword:0
"Order"=dword:1
; Indicate NDS is a power manageable interface
"IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"

[HKEY_LOCAL_MACHINE\Drivers\Virtual]
"Dll"="RegEnum.dll"
"Order"=dword:1
"Flags"=dword:1

[HKEY_LOCAL_MACHINE\Drivers\Virtual\NDIS]
"Dll"="NDIS.dll"
"Order"=dword:1
"Prefix"="NDS"
"Index"=dword:0

;
;DM9000A Port 2 registry items
;
[HKEY_LOCAL_MACHINE\Comm\DM9K2]
"DisplayName"="DM9000/9000A/9010 ISA Fast Ethernet Adapter"
"Group"="NDIS"
"ImagePath"="dm9kndis40.dll"

[HKEY_LOCAL_MACHINE\Comm\DM9K2\Linkage]
"Route"=multi_sz:"DM9K21"

[HKEY_LOCAL_MACHINE\Comm\DM9K21]
"DisplayName"="DM9000/9000A/9010 ISA Fast Ethernet Adapter"
"Group"="NDIS"
"ImagePath"="dm9kndis40.dll"

[HKEY_LOCAL_MACHINE\Comm\Tcpip\Linkage]
"Bind"="dm9k21"

[HKEY_LOCAL_MACHINE\Comm\DM9K21\Parms]
"BusNumber"=dword:0
"BusType"=dword:0
"XmitBuffer"=dword:20
"RecvBuffer"=dword:20
"DeviceIndex"=dword:2 ;the 2nd ethernet port
"IrqNumber"=dword:1a ;AT91SAM9260 DeviceID = TC3 = 0x1a = 26
"MemBaseAddress"=dword:30000000 ;physical address -> EBI_CS2n segment
"NetworkAddress"="00-60-6e-28-80-00"
"VendorID"=dword:1
"ProductID"=dword:1

[HKEY_LOCAL_MACHINE\Comm\DM9K21\Parms\TcpIp]
"EnableDHCP"=dword:0
"UseZeroBroadcast"=dword:0
"DefaultGateway"=""
"IpAddress"="192.168.202.226"
"Subnetmask"="255.255.255.0"
"DNS"="0.0.0.0"
"WINS"="0.0.0.0"

;
;DM9000A Port 3 registry items
;
[HKEY_LOCAL_MACHINE\Comm\DM9K3]
"DisplayName"="DM9000/9000A/9010 ISA Fast Ethernet Adapter"
"Group"="NDIS"
"ImagePath"="dm9kndis40.dll"

[HKEY_LOCAL_MACHINE\Comm\DM9K3\Linkage]
"Route"=multi_sz:"DM9K31"

[HKEY_LOCAL_MACHINE\Comm\DM9K31]
"DisplayName"="DM9000/9000A/9010 ISA Fast Ethernet Adapter"
"Group"="NDIS"
"ImagePath"="dm9kndis40.dll"

[HKEY_LOCAL_MACHINE\Comm\Tcpip\Linkage]
"Bind"="dm9k31"

[HKEY_LOCAL_MACHINE\Comm\DM9K31\Parms]
"BusNumber"=dword:0
"BusType"=dword:0
"XmitBuffer"=dword:20
"RecvBuffer"=dword:20
"DeviceIndex"=dword:3 ;the 3rd ethernet port
"IrqNumber"=dword:1b ;AT91SAM9260 DeviceID = TC4 = 0x1b = 27
"MemBaseAddress"=dword:50000000 ;physical address -> EBI_CS4n segment
"NetworkAddress"="00-60-6e-38-80-00"
"VendorID"=dword:1
"ProductID"=dword:1

[HKEY_LOCAL_MACHINE\Comm\DM9K31\Parms\TcpIp]
"EnableDHCP"=dword:0
"UseZeroBroadcast"=dword:0
"DefaultGateway"=""
"IpAddress"="192.168.203.228"
"Subnetmask"="255.255.255.0"
"DNS"="0.0.0.0"
"WINS"="0.0.0.0"

It's appreciated for any comments, Thanks!

BR



Cheng Shi
Emtronix
5# Gaopeng Dadao, Chengdu
China 610041
86-28-86180660
www.emtronix.com



.