Subject: Re: adding PCM100 to pcmcia
To: None <tech-kern@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-kern
Date: 02/26/2003 15:47:29
> I am adding to support for Linksys EtherFast 10/100 Integrated PC Card
> (Model No: PCM100).

More info, manually typed in:

pcmcia1: CIS version PCMCIA 2.0 or 2.1
pcmcia1: CIS info: Linksys, EtherFast 10/100 Integrated PC Card (PCM100), ver 1.0,
pcmcia1: Manuafacturer code 0x149, product 0xc1ab
pcmcia1: function 0: network adapter, ccr addr 400 mask 1
pcmcia1: function 0, config table entry 16: I/O card; irq mask befc; iomask 5, iospace 0-1f; mwait_required io16 irqlevel
pcmcia1: function 0, config table entry 1: I/O card; irq mask befc; iomask a, iospace 300-31f; mwait_required io16 irqlevel
pcmcia1: function 0, config table entry 2: I/O card; irq mask befc; iomask a, iospace 320-33f; mwait_required io16 irqlevel
pcmcia1: function 0, config table entry 3: I/O card; irq mask befc; iomask a, iospace 340-35f; mwait_required io16 irqlevel
pcmcia1: function 0, config table entry 4: I/O card; irq mask befc; iomask a, iospace 380-39f; mwait_required io16 irqlevel
pcmcia1: function 0, config table entry 5: I/O card; irq mask befc; iomask a, iospace 200-21f; mwait_required io16 irqlevel
pcmcia1: function 0, config table entry 6: I/O card; irq mask befc; iomask a, iospace 220-24f; mwait_required io16 irqlevel
pcmcia1: function 0, config table entry 7: I/O card; irq mask befc; iomask a, iospace 240-25f; mwait_required io16 irqlevel
ne2 at pcmcia1 function 0 port 0x400-0x40f port 0x410-ox41f
ne2: Linksys EtherFast PCM100 Ethernet
ne2: Ethernet address 01:d4:ff:03:00:20
pcmcia1: card irq 10


Unpatched kernel wrongly detects as:

ne2 at pcmcia1 function 0 port 0x400-0x40f port 0x410-0x41f
ne2: Linksys Combo EthernetCard Ethernet
ne2: Ethernet address 01:d4:ff:03:00:20
nsphyter0 at ne2 phy 5: DP83815 10/100 media interface, rev. 3
nsphyter0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,

(Both don't work. UDP works but TCP does not.)

There are some notes in pcmciadevs about conflicts with product ID 0xc1ab.
Can someone explain this?

Here is what Linux says:

Linux PCMCIA Card Services 3.1.33
  kernel build: 2.2.20 #1 Sat Apr 20 11:45:28 EST 2002
  options:  [pci] [cardbus] [apm]
Intel ISA/PCI/CardBus PCIC probe:
  Intel i82365sl B step rev 00 ISA-to-PCMCIA at port 0x3e0 ofs 0x00
    host opts [0]: none
    host opts [1]: none
    ISA irqs (scanned) = 3,4,5,7,9,10,11,12 status change on irq 11
cs: memory probe 0x0d0000-0x0dffff: clean.
cs: IO port probe 0x0100-0x04ff: excluding 0x120-0x127 0x220-0x22f 0x378-0x37f 0
x388-0x38f 0x480-0x48f 0x4d0-0x4d7
cs: IO port probe 0x0128-0x021f: clean.
cs: IO port probe 0x0230-0x0377: clean.
cs: IO port probe 0x0380-0x0387: clean.
cs: IO port probe 0x0390-0x047f: clean.
cs: IO port probe 0x0490-0x04cf: clean.
cs: IO port probe 0x04d8-0x04ff: clean.
cs: IO port probe 0x0800-0x08ff: clean.
cs: IO port probe 0x0a00-0x0aff: clean.
cs: IO port probe 0x0c00-0x0cff: clean.
eth0: NE2000 (DL10022 rev 05): io 0x300, irq 3, hw_addr 00:04:5A:08:78:E1
eth0: found link beat
eth0: link partner did not autonegotiate

lsmod ...
Module                  Size  Used by
pcnet_cs               12612   1
8390                    5944   0  [pcnet_cs]
ds                      6400   2  [pcnet_cs]
i82365                 22672   2
pcmcia_core            45824   0  [pcnet_cs ds i82365]
af_packet               6152   0  (unused)
unix                   11352   9  (autoclean)


And OpenBSD floppyC32.fs floppy image worked fine for PCM100 card.


Any suggestions would be appreciated.

Thanks,

   Jeremy C. Reed
   http://bsd.reedmedia.net/