Subject: fix for disappeared PCMCIA socket found
To: None <port-i386@netbsd.org>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: port-i386
Date: 07/17/2004 14:30:34
Hello,

Some time ago, I wrote here about a bug in 2.0_BETA, that one of two
PCMCIA slots doesn't work.
(http://mail-index.netbsd.org/port-i386/2004/05/26/0003.html)

Now I have found a fix: after reverting this commit by Charles M.
Hannum, both sockets work again: 
http://mail-index.netbsd.org/source-changes/2003/09/05/0003.html

here is part of dmesg for the fixed kernel (with PCMCIAVERBOSE):

--- cut here ---
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xdffff irq 
pcic0: controller 0 (Cirrus PD6710) has sockets A and B
pcic0: controller 1 (Unknown controller) has no sockets
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
...
pcic0: using irq 3 for socket events
...
pcmcia0: CIS version PC Card Standard 5.0
pcmcia0: CIS info: Lucent Technologies, WaveLAN/IEEE, Version 01.01, 
pcmcia0: Manufacturer code 0x156, product 0x2
pcmcia0: function 0: network adapter, ccr addr 3e0 mask 1
pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 6, iospace 0-3f; io16 irqpulse irqlevel
wi0 at pcmcia0 function 0: Lucent Technologies, WaveLAN/IEEE, Version 01.01
pcic0: port 0x400-0x43f
pcmcia0: card irq 5
wi0: 802.11 address 00:60:1d:1c:a5:37
wi0: using Lucent Technologies, WaveLAN/IEEE
wi0: Lucent Firmware: Station (4.52.1)
wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
pcmcia1: CIS version PCMCIA 2.0 or 2.1
pcmcia1: CIS info: DIGITAL, DEPCM-XX, R01
pcmcia1: Manufacturer code 0x1bf, product 0x2216
pcmcia1: function 0: network adapter, ccr addr 3f8 mask 3
pcmcia1: function 0, config table entry 32: I/O card; irq mask ffff; iomask a, iospace 300-31f; mwait_required io16 irqlevel
pcmcia1: function 0, config table entry 33: I/O card; irq mask ffff; iomask a, iospace 320-33f; mwait_required io16 irqlevel
pcmcia1: function 0, config table entry 34: I/O card; irq mask ffff; iomask a, iospace 340-35f; mwait_required io16 irqlevel
pcmcia1: function 0, config table entry 35: I/O card; irq mask ffff; iomask a, iospace 360-37f; mwait_required io16 irqlevel
ne0 at pcmcia1 function 0wd0 at atabus0 drive 0: <IBM-DBOA-2540>
wd0: drive supports 32-sector PIO transfers, LBA addressing
wd0: 516 MB, 1050 cyl, 16 head, 63 sec, 512 bytes/sect x 1058400 sectors
wd0: drive supports PIO mode 3, DMA mode 1
pcic0: port 0x300-0x30f
pcic0: port 0x310-0x31f

ne0: I-O DATA PCLA/TE Ethernet
ne0: Ethernet address 00:00:e8:38:71:8e
boot device: wd0
root on wd0a dumps on wd0b
WARNING: NVRAM century is 19 but RTC year is 2004
root file system type: ffs
pcmcia0: card irq 5
pcmcia1: card irq 9
--- cut here ---

Unless the problem fixed by this commit was serious, could it be backed
out? This is a regression from 1.6.2 .

Bye	Pavel