Subject: PCMCIA support for D-Link DE-650
To: None <current-users@NetBSD.ORG>
From: Eric S. Hvozda <hvozda@netcom.com>
List: current-users
Date: 11/06/1997 23:00:50
I see that ne has been broken out from ed.  Further I see the new
PCMCIA system uses the CIS to obtain valid iospaces.  This is a
Good Thing.

However, why does it insist on using 0x400 when it's not listed
as a valid iospace?  

This particular card worked fine under jtk's work; I'm a bit surprised
it doesn't now.  If I build a 1.2.1 kernel and try to use 0x400
as the iospace, it fails as well.

Below is dmesg(8)'s output for both 1.2.1 and 1.3A.  (yes, the
card does appear in both listings this time :-)

NetBSD 1.2.1 (HELIOS) #4: Wed Oct  1 23:19:18 EDT 1997
    hvozda@helios.ack.org:/usr/src/sys/arch/i386/compile/HELIOS
CPU: i486DX (GenuineIntel 486-class CPU)
real mem  = 20578304
avail mem = 17981440
using 276 buffers containing 1130496 bytes of memory
mainbus0 (root)
isa0 at mainbus0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or ns16450, no fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns8250 or ns16450, no fifo
lpt0 at isa0 port 0x378-0x37f: polled
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
wd0 at wdc0 drive 0: 1295MB, 2633 cyl, 16 head, 63 sec, 512 bytes/sec <TOSHIBA MK2720FC>
wd0: using 16-sector 16-bit pio transfers, lba addressing
sb0 at isa0 port 0x240-0x24f irq 7 drq 1: dsp v2.01
pcicmaster0 at isa0 port 0x3e0-0x3e1
pcic0 at pcicmaster0: Intel 82365sl Rev. 0 slots 0-1 iomem d4000-d4fff irq 11
pcmcia0 at pcic0
pcmcia0: slot 0 is empty
pcmcia0: slot 1 contains <D-Link, DE-650, Ver 01.00>
ed0 at pcmcia0 port 0x300-0x31f irq 10
ed0: address 00:80:c8:8f:d5:6d, type DE-650 (16-bit)
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
spkr0 at pc0 port 0x61
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 40c0 netmask 44c0 ttymask 4cda


Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.3_ALPHA (INSTALL_GATE_AND_HELIOS) #5: Thu Nov  6 22:00:50 EST 1997
    hvozda@gate.ack.org:/usr/src/sys/arch/i386/compile/INSTALL_GATE_AND_HELIOS
cpu0: family 4 model 8 step 0
cpu0: Intel 486DX4 (486-class)
real mem  = 20578304
avail mem = 16347136
using 276 buffers containing 1130496 bytes of memory
mainbus0 (root)
isa0 at mainbus0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or ns16450, no fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns8250 or ns16450, no fifo
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atapibus0 at wdc0
wd0 at wdc0 drive 0: <TOSHIBA MK2720FC>
wd0: 1295MB, 2633 cyl, 16 head, 63 sec, 512 bytes/sec
wd0: using 16-sector 16-bit pio transfers, lba addressing
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
pc0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xd3fff: using irq 5
pcic0: controller 0 (Cirrus PD672X) has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
pcmcia1: CIS version 2.0 or 2.01
pcmcia1: CIS info: D-Link, DE-650, Ver 01.00
pcmcia1: Manufacturer code 0xffffffff, product 0xffffffff
pcmcia1: function 0: multi-function, ccr addr 400 mask b
pcmcia1: function 0, config table entry 32: I/O card; irq mask befc; iomask a, iospace 300-31f; mwait_required rdybsy_active wp_active bvd_active io16 irqlevel
pcmcia1: function 0, config table entry 33: I/O card; irq mask befc; iomask a, iospace 320-33f; mwait_required rdybsy_active wp_active bvd_active io16 irqlevel
ne0 at pcmcia1 function 0 port 0x400-0x40f port 0x410-0x41f
ne0: D-Link DE-650 Ethernet
 bail1 0x00 ne0: where did the card go?
biomask 4040 netmask 4040 ttymask 4062
md0: internal 1537K image area
boot device: wd0
root device (default md0a): wd0a
dump device (default wd0b): 
file system (default generic): 
root on wd0a dumps on wd0b
root file system type: ffs