Subject: Re: NDC Ethernet (pcmcia), anyone?
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: current-users
Date: 09/11/1998 08:43:21
In article <199809110210.LAA11723@donald.awadi> blymn@baea.com.au (Brett Lymn) writes:
>According to Hubert Feyrer:
>>
>>
>>pcmcia0: CIS info: NDC, Ethernet, A, 004743118001
>>pcmcia0: Manufacturer code 0xffffffff, product 0xffffffff
>>
>>I've looked at pcmciadevs but got no clue on what to enter there.
>>Can someone help me, please? :>
>>
>
>Put the following into if_ne_pcmcia.c (in the ne2000_devs array):
>
> { "NDC Instant-Link",
> PCMCIA_MANUFACTURER_INVALID, PCMCIA_PRODUCT_INVALID,
> "NDC", "Ethernet", 0,
> 0x003a, { 0x00, 0x80, 0xc6 } },
>
>And build a new kernel. You should get the card coming up as an ne
>network interface after that. This was what I did to get an accton
>card to work - I am not sure if the process has changed in a recent
>current. It had not the last time I looked.
Well, it kind of has.. Here's a patch:
Index: if_ne_pcmcia.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pcmcia/if_ne_pcmcia.c,v
retrieving revision 1.17
diff -u -r1.17 if_ne_pcmcia.c
--- if_ne_pcmcia.c 1998/08/15 19:00:04 1.17
+++ if_ne_pcmcia.c 1998/09/11 08:49:19
@@ -148,6 +148,12 @@
PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
PCMCIA_CIS_ACCTON_EN2212,
0, 0x0ff0, { 0x00, 0x00, 0xe8 } },
+
+ { PCMCIA_STR_NDC_INSTANTLINK,
+ PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
+ PCMCIA_CIS_NDC_INSTANTLINK,
+ 0, 0x003a, { 0x00, 0x80, 0xc6 } },
+
#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
@@ -218,9 +224,6 @@
{ "Maxtech PCN2000",
0x0000, 0x0000, NULL, NULL, 0,
0x5000, { 0x00, 0x00, 0xe8 } },
- { "NDC Instant-Link",
- 0x0000, 0x0000, NULL, NULL, 0,
- 0x003a, { 0x00, 0x80, 0xc6 } },
{ "NE2000 Compatible",
0x0000, 0x0000, NULL, NULL, 0,
0x0ff0, { 0x00, 0xa0, 0x0c } },
Index: pcmciadevs
===================================================================
RCS file: /cvsroot/src/sys/dev/pcmcia/pcmciadevs,v
retrieving revision 1.14
diff -u -r1.14 pcmciadevs
--- pcmciadevs 1998/09/05 14:17:38 1.14
+++ pcmciadevs 1998/09/11 08:49:19
@@ -119,6 +119,7 @@
vendor ACCTON -1 ACCTON
vendor YEDATA -1 Y-E DATA
vendor DIGITAL -1 Digital Equipment Corporation
+vendor NDC -1 NDC
product MEGAHERTZ XJ2288 { "MEGAHERTZ", "MODEM&spXJ2288", NULL, NULL } Megahertz XJ2288 Modem
product PREMAX PE200 { "PMX&sp&sp&sp", "PE-200", NULL, NULL } PreMax PE-200
@@ -129,3 +130,4 @@
product ACCTON EN2212 { "ACCTON", "EN2212", NULL, NULL } Accton EN2212
product YEDATA EXTERNAL_FDD { "Y-E&spDATA", "External&spFDD", NULL, NULL } Y-E DATA External FDD
product DIGITAL DEPCMXX { "DIGITAL", "DEPCM-XX", NULL, NULL } DEC DEPCM-BA
+product NDC INSTANTLINK { "NDC", "Ethernet", NULL, NULL } NDC Instant-Link
Index: pcmciadevs.h
===================================================================
RCS file: /cvsroot/src/sys/dev/pcmcia/pcmciadevs.h,v
retrieving revision 1.15
diff -u -r1.15 pcmciadevs.h
--- pcmciadevs.h 1998/09/05 14:18:04 1.15
+++ pcmciadevs.h 1998/09/11 08:49:19
@@ -1,4 +1,4 @@
-/* $NetBSD: pcmciadevs.h,v 1.15 1998/09/05 14:18:04 christos Exp $ */
+/* $NetBSD$ */
/*
* THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
@@ -174,6 +174,7 @@
#define PCMCIA_VENDOR_ACCTON -1 /* ACCTON */
#define PCMCIA_VENDOR_YEDATA -1 /* Y-E DATA */
#define PCMCIA_VENDOR_DIGITAL -1 /* Digital Equipment Corporation */
+#define PCMCIA_VENDOR_NDC -1 /* NDC */
#define PCMCIA_CIS_MEGAHERTZ_XJ2288 { "MEGAHERTZ", "MODEM XJ2288", NULL, NULL }
#define PCMCIA_PRODUCT_MEGAHERTZ_XJ2288 -1
@@ -202,3 +203,6 @@
#define PCMCIA_CIS_DIGITAL_DEPCMXX { "DIGITAL", "DEPCM-XX", NULL, NULL }
#define PCMCIA_PRODUCT_DIGITAL_DEPCMXX -1
#define PCMCIA_STR_DIGITAL_DEPCMXX "DEC DEPCM-BA"
+#define PCMCIA_CIS_NDC_INSTANTLINK { "NDC", "Ethernet", NULL, NULL }
+#define PCMCIA_PRODUCT_NDC_INSTANTLINK -1
+#define PCMCIA_STR_NDC_INSTANTLINK "NDC Instant-Link"
Index: pcmciadevs_data.h
===================================================================
RCS file: /cvsroot/src/sys/dev/pcmcia/pcmciadevs_data.h,v
retrieving revision 1.15
diff -u -r1.15 pcmciadevs_data.h
--- pcmciadevs_data.h 1998/09/05 14:18:04 1.15
+++ pcmciadevs_data.h 1998/09/11 08:49:19
@@ -1,4 +1,4 @@
-/* $NetBSD: pcmciadevs_data.h,v 1.15 1998/09/05 14:18:04 christos Exp $ */
+/* $NetBSD$ */
/*
* THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
@@ -276,6 +276,13 @@
"DEC DEPCM-BA" },
},
{
+ PCMCIA_VENDOR_UNKNOWN, PCMCIA_PRODUCT_NDC_INSTANTLINK,
+ PCMCIA_CIS_NDC_INSTANTLINK,
+ 0,
+ "NDC",
+ "NDC Instant-Link" },
+ },
+ {
PCMCIA_VENDOR_NEWMEDIA, 0,
PCMCIA_KNOWNDEV_NOPROD,
PCMCIA_CIS_INVALID,
@@ -427,6 +434,13 @@
PCMCIA_KNOWNDEV_NOPROD,
PCMCIA_CIS_INVALID,
"Digital Equipment Corporation",
+ NULL,
+ },
+ {
+ PCMCIA_VENDOR_NDC, 0,
+ PCMCIA_KNOWNDEV_NOPROD,
+ PCMCIA_CIS_INVALID,
+ "NDC",
NULL,
},
{ 0, 0, { NULL, NULL, NULL, NULL }, 0, NULL, NULL, }