Subject: kern/8594: ep driver does not support 3Com 3c574B PCMCIA card
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/09/1999 17:27:52
>Number:         8594
>Category:       kern
>Synopsis:       ep driver does not support 3Com 3c574B
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct  9 17:27:00 1999
>Originator:     Ron Roskens
>Release:        NetBSD-current 10/09/1999
System: NetBSD laptop 1.4K NetBSD 1.4K (POS) #0: Sat Oct  9 14:50:09 EDT 1999 root@laptop:/usr/src/sys/arch/i386/compile/POS i386
Toshiba 330CDS laptop with a 3Com 3c574B network card.

	/*	$NetBSD: elink3.c,v 1.58 1999/05/18 23:52:55 thorpej Exp $      */
	/*	$NetBSD: elink3reg.h,v 1.20 1999/04/28 22:47:44 jonathan Exp $  */
	/*	$NetBSD: elink3var.h,v 1.21 1998/11/18 18:34:52 thorpej Exp $   */

	The current ep driver does not support all 3c574 network cards. My card
	is probed:

pcmcia0 at pcic0 controller 0 socket 0
pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: 3Com, Megahertz 574B, B, 001
pcmcia0: Manufacturer code 0x101, product 0x574
pcmcia0: function 0: network adapter, ccr addr 10000 mask 3
pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 5, iospace 0-1f ; rdybsy_active wp_active bvd_active io8 io16 irqlevel
ep0 at pcmcia0 function 0 port 0x340-0x35f: 3Com 3c574-TX 10/100Mbps Ethernet
ep0: address 02:01:02:01:02:01, 64KB word-wide FIFO, 1:1 Rx:Tx split

	The current driver uses a hardcoded eeprom location (READ_EEPROM in elink3reg.h)
	This value is incorrect for this card and should be set to 0x200 not 0x80 (1<<7).
	Changing the value in elink3reg.h, the driver correctly probed the card for
	the mac address.

	But even this did not make the card function to use. When you ifconfig the card,
	the kernel goes into a spin loop printing out ep0: adapter failure (0x????).

	build a kernel with support for the pcmcia ep driver and boot a laptop up with
	this network card.