Subject: Re: CNet CN40BC PCMCIA Ethernet card works on Amiga 1200 under NetBSD 1.5.2
To: Chris Edwards <cme@ihug.co.nz>
From: Ignatios Souvatzis <is@netbsd.org>
List: port-amiga
Date: 10/01/2001 20:34:06
On Mon, Oct 01, 2001 at 09:58:02PM +1200, Chris Edwards wrote:

> I'm quite pleased to have got my CNet CN40BC 10baseT/10base2 PCMCIA Ethernet card going on my A1200 under NetBSD 1.5.2 today.  Following Jukka Andberg's lead, I just went in and edited the files "if_ne_pcmcia.c" and  "pcmciadevs" in the /sys/dev/pcmcia directory.  Here are the diffs:
> 
> if_ne_pcmcia.c:
> <<<<
> 101a102,106
> >     { PCMCIA_STR_CNET_CN40BC,
> >       PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
> >       PCMCIA_CIS_CNET_CN40BC,
> >       0, -1, { 0x00, 0x80, 0xad } },
> >
> >>>>
> 
> pcmciadevs:
> <<<<
> 74a75
> > vendor CNET                   0x80ad  CNet Technology Inc.
> 82a84
> >
> 306a309
> > product CNET CN40BC           { "CNet", "CN40BC&spEthernet", "D", "NE2000" } CNet CN40BC

err - that is "CN40BC Ethernet", right? those are C strings, no HTML
entities...

CC-d to  tech-kern, because this is not Amiga specific.

	-is
> 
> Looks like you also have to remake the PCMCIA device list headers from the "pcmciadevs" source file after you apply the changes, by executing the following in the /sys/dev/pcmcia dir:
> 
> # make -f Makefile.pcmciadevs
> 
> 
> Here's what dmesg has to say about it:
> <<<<
> pccard0 at mainbus0
> pcmcia0 at pccard0
> Unknown kind of PCMCIA memory (amiga/dev/pccard.c)
Aymeric - is this line something to worry about or just an artefact of the 
Amiga code (I vaguely remember something like this)?

> pcmcia0: CIS version PCMCIA 2.0 or 2.1
> pcmcia0: CIS info: CNet, CN40BC Ethernet, D, NE2000
> pcmcia0: Manufacturer code 0xffffffff, product 0xffffffff
> pcmcia0: function 0: network adapter, ccr addr 3f8 mask 3
> pcmcia0: function 0, config table entry 32: I/O card; irq mask ffff; iomask 5, iospace 0-1f; mwait_required io8 io16 irq level
> ne0 at pcmcia0 function 0
> ne0: CNet CN40BC Ethernet
> ne0: Ethernet address 00:80:ad:c6:71:fb

yes, looks definitely like the official CNET  OUI in front there.
good work, Chris!

Regards,
	-is