Subject: kern/6349: Add PCMCIA ethernet card to if_ne_pcmcia.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ingolf@mipool.uni-jena.de>
List: netbsd-bugs
Date: 10/23/1998 18:36:48
>Number:         6349
>Category:       kern
>Synopsis:       Compex PCMCIA ethernet card missing in if_ne_pcmcia.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 23 09:50:01 1998
>Last-Modified:
>Originator:     Ingolf Koch
>Organization:
	Jena-Optronik GmbH
>Release:        NetBSD-1.3.2
>Environment:
System: NetBSD elefant 1.3.2 NetBSD 1.3.2 (ELEFANT) #11: Fri Oct 23 18:09:14 MEST 1998 ingolf@elefant:/usr/src/sys/arch/i386/compile/ELEFANT i386


>Description:
	The PCMCIA ethernet card ENET-B by Compex is not configured
	because there is no entry for this card in the ne2000devs
	array.

	* PLEASE NOTE *
	After applying the patch below, I was able to boot my
	laptop, but after configuring the ethernet card, the
	display turned black. (I could still use the keyboard.)

	From a remote computer, I could ping the card (the local
	ifconfig had been successful). It was not possible to
	log in via telnet and the ethernet interface.

	This might be an interrupt issue, I don't know.

	Any hints/feedback appreciated.

	This is what Compex says in their manual:

	Default port:       300H
	Default interrupt:  5
	Memory address:     D400H

	Both port and interrupt seem to be configurable, but
	they only ship a precompiled DOS utility.
>How-To-Repeat:
	Get a Compex ENET-B PCMCIA ethernet card and plug it into
	a NetBSD-1.3.2 machine.
>Fix:
	Apply the following patch on the original 1.3.2 source
	to enable the card*:

--- sys/dev/pcmcia/if_ne_pcmcia.c.orig Tue May  5 08:52:20 1998
+++ sys/dev/pcmcia/if_ne_pcmcia.c      Fri Oct 23 18:08:18 1998
@@ -113,6 +113,9 @@
       PCMCIA_MANUFACTURER_INVALID, PCMCIA_PRODUCT_INVALID,
       "D-Link", "DE-650", 0,
       0x0040, { 0x00, 0x80, 0xc8 } },
+    { "Compex LinkPort ENET-B",
+      0x8a01, 0x0100, "PCMCIA", "Ethernet Card",
+      0, 0xd400, { 0x01, 0x03, 0xdc } },
 #if 0
     /* the rest of these are stolen from the linux pcnet pcmcia device
        driver.  Since I don't know the manfid or cis info strings for
>Audit-Trail:
>Unformatted: