[tulip] Linksys integrated cardbus PCM200 card quirk

Gong Su gongsu@activium.com
Thu, 19 Oct 2000 13:08:08 -0400


Hi, I just got this card and managed to get it to work under Linux
2.2.17pre17 by gathering and compiling all the latest files
(cb_shim.c, pci-scan.c, and tulip.c) as modules. The strange thing
though is that the driver would have a false detection of
the card at eth0 and went on to eth1 with the right detection. After
that, things seem to work fine with the card be assigned
eth1. The following is snapped from /var/log/message:

Oct 19 12:23:43 localhost kernel: Linux PCMCIA Card Services 3.1.22
Oct 19 12:23:43 localhost kernel:   kernel build: 2.2.18pre17 #1 Thu Oct
19 12:1
1:59 EDT 2000
Oct 19 12:23:43 localhost kernel:   options:  [pci] [cardbus] [apm]
Oct 19 12:23:43 localhost kernel: PCI routing table version 1.0 at
0xfdee0
Oct 19 12:23:43 localhost kernel:   00:02.0 -> irq 9
Oct 19 12:23:43 localhost kernel:   00:02.1 -> irq 11
Oct 19 12:23:43 localhost kernel: Intel PCIC probe:
Oct 19 12:23:43 localhost kernel:   TI 1450 rev 03 PCI-to-CardBus at
slot 00:02,
 mem 0x50000000
Oct 19 12:23:43 localhost kernel:     host opts [0]: [ring] [serial pci
& irq] [
pci irq 9] [lat 64/176] [bus 2/4]
Oct 19 12:23:43 localhost kernel:     host opts [1]: [ring] [serial pci
& irq] [
pci irq 11] [lat 64/176] [bus 5/7]
Oct 19 12:23:44 localhost kernel:     ISA irqs (scanned) = 3,4,7 PCI
status chan
ges
Oct 19 12:23:44 localhost cardmgr[1414]: starting, version is 3.1.22
Oct 19 12:23:44 localhost cardmgr[1414]: watching 2 sockets
Oct 19 12:23:44 localhost kernel: cs: IO port probe 0x0c00-0x0cff:
excluding 0xc
f8-0xcff
Oct 19 12:23:44 localhost kernel: cs: IO port probe 0x0800-0x08ff:
clean.
Oct 19 12:23:44 localhost kernel: cs: IO port probe 0x0100-0x04ff:
excluding 0x3
b8-0x3df 0x4d0-0x4d7
Oct 19 12:23:44 localhost kernel: cs: IO port probe 0x0a00-0x0aff:
clean.
Oct 19 12:23:47 localhost kernel: cs: cb_alloc(bus 5): vendor 0x13d1,
device 0xa
b03
Oct 19 12:23:47 localhost cardmgr[1414]: initializing socket 1
Oct 19 12:23:47 localhost cardmgr[1414]: socket 1: EtherFast Integrated
10/100 C
ardBus PC Card(PCM200)
Oct 19 12:23:47 localhost cardmgr[1414]: executing: 'modprobe
cb_enabler'
Oct 19 12:23:47 localhost cardmgr[1414]: executing: 'modprobe pci-scan'
Oct 19 12:23:47 localhost cardmgr[1414]: executing: 'modprobe cb_shim'
Oct 19 12:23:47 localhost kernel: cb_shim.c:v1.00 4/15/2000  Donald
Becker <beck
er@scyld.com>
Oct 19 12:23:47 localhost kernel:
http://www.scyld.com/linux/drivers.html
Oct 19 12:23:47 localhost cardmgr[1414]: executing: 'modprobe tulip'
Oct 19 12:23:47 localhost kernel: tulip.c:v0.92 4/17/2000  Written by
Donald Bec
ker <becker@scyld.com>
Oct 19 12:23:47 localhost kernel:
http://www.scyld.com/network/tulip.html
Oct 19 12:23:47 localhost kernel:   The PCI BIOS has not enabled the
device at 5
/0!  Updating PCI command 0002->0006.
Oct 19 12:23:47 localhost kernel: eth0: ADMtek Comet rev 17 at
0xc8085000, B0:14
:00:F0:B0:14, IRQ 0.
Oct 19 12:23:47 localhost kernel: PCI: Increasing latency timer of
device 05:00
to 64
Oct 19 12:23:47 localhost kernel: cs: cb_config(bus 5)
Oct 19 12:23:47 localhost kernel:   fn 0 bar 1: io 0x800-0x8ff
Oct 19 12:23:47 localhost kernel:   fn 0 bar 2: mem
0x60060000-0x600603ff
Oct 19 12:23:47 localhost kernel:   fn 0 rom: mem 0x60040000-0x6005ffff
Oct 19 12:23:47 localhost kernel:   irq 11
Oct 19 12:23:47 localhost kernel: Found a ADMtek Centaur-C (Linksys) at
5/0 addr
ess 0x60060000->0xc8074000 IRQ 11.
Oct 19 12:23:47 localhost kernel: ADMtek Centaur-C (Linksys) at 5/0
command 0x7.
Oct 19 12:23:47 localhost kernel: eth1: ADMtek Comet rev 17 at
0xc8074000, 00:E0
:98:89:B4:E1, IRQ 11.
Oct 19 12:23:47 localhost kernel: eth1: Handling power event 1.
Oct 19 12:23:47 localhost cardmgr[1414]: executing: './network start
eth1'
Oct 19 12:23:48 localhost pumpd[1447]: starting at (uptime 0 days,
0:04:47) Thu
Oct 19 12:23:48 2000
Oct 19 12:24:13 localhost cardmgr[1414]: + Determining IP information
for eth1..
. done.


The output of tulip-diag:

[root@localhost tulip]# ./tulip-diag -aa
tulip-diag.c:v2.04 9/26/2000 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a ADMtek AL985 Centaur (Linksys CardBus) adapter at
0x800.
 * A potential Tulip chip has been found, but it appears to be active.
 * Either shutdown the network, or use the '-f' flag to see all values.
 Port selection is 100mbps-SYM/PCS 100baseTx scrambler, half-duplex.
 Transmit started, Receive started, half-duplex.
  The Rx process state is 'Waiting for packets'.
  The Tx process state is 'Idle'.
  The transmit threshold is 128.
 The Comet MAC registers are 8998e000 ffffe1b4 filter 8000000000000000.


[root@localhost tulip]# ./tulip-diag -ee
tulip-diag.c:v2.04 9/26/2000 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a ADMtek AL985 Centaur (Linksys CardBus) adapter at
0x800.
 Port selection is 100mbps-SYM/PCS 100baseTx scrambler, half-duplex.
 Transmit started, Receive started, half-duplex.
  The Rx process state is 'Waiting for packets'.
  The Tx process state is 'Idle'.
  The transmit threshold is 128.
 The Comet MAC registers are 8998e000 ffffe1b4 filter 8000000000000000.
EEPROM size is 8.
  Ethernet MAC Station Address 00:e0:98:89:b4:e1.
  Default connection type 'Autosense'.
  PCI IDs Vendor 13d1 Device ab03  Subsystem 13d1 ab03
  PCI min_grant 255 max_latency 255.
  CSR18 power-up setting 0x804c****.
EEPROM contents:
  0985 0002 0000 0000 e000 8998 e1b4 0000
  0000 0400 0000 0000 0000 0000 0000 0100
  ab03 13d1 ab03 13d1 ffff 0202 0000 804c
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0040 0060 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 e7f6
 ID block CRC 0x66 (vs. 00).
  Full contents CRC 0xe7f6 (read as 0xe7f6).


[root@localhost tulip]# ./tulip-diag -mm
tulip-diag.c:v2.04 9/26/2000 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a ADMtek AL985 Centaur (Linksys CardBus) adapter at
0x800.
 Port selection is 100mbps-SYM/PCS 100baseTx scrambler, half-duplex.
 Transmit started, Receive started, half-duplex.
  The Rx process state is 'Waiting for packets'.
  The Tx process state is 'Idle'.
  The transmit threshold is 128.
 The Comet MAC registers are 8998e000 ffffe1b4 filter 8000000000000000.
 MII PHY found at address 1, status 0x786d.
 MII PHY found at address 2, status 0x786d.
 MII PHY found at address 3, status 0x786d.
 MII PHY found at address 4, status 0x786d.
 MII PHY #1 transceiver registers:
   3000 786d 0022 5410 01e1 41e1 0005 2801
   ffff ffff ffff ffff ffff ffff ffff ffff
   01c0 0000 0e99 8020 4f52 0304 0026 0000
   0000 cfbf 0000 ffff ffff ffff ffff ffff.
 MII PHY #2 transceiver registers:
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff.
 MII PHY #3 transceiver registers:
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff.
 MII PHY #4 transceiver registers:
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff
   ffff ffff ffff ffff ffff ffff ffff ffff.