Subject: SPARCbook PCMCIA
To: None <port-sparc@netbsd.org>
From: Michael <macallan18@earthlink.net>
List: port-sparc
Date: 03/11/2005 01:40:45
--Signature=_Fri__11_Mar_2005_01_40_46_-0500_GO/0xHCFaITlTiiQ
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Hello,

I've been struggling with OpenBSD's tslot driver, finally got it to work, sort of. The only PCMCIA card I have right now is a D-Link DWL-650 wireless LAN card, when the kernel tries to configure it I get this:

tslot0 at sbus0 slot 1 offset 0x2000000 level 11: 2 slots
08000000: fe034000 04000000: fe134000 06000000: fe234000 pcmcia0 at tslot0 socke
t 0
tslot0: enable slot 0
pcmcia0: ++enabled_count = 1
[mem alloc 400][mem map 1 0/400->fe134000/400]cis mem map fe134000
pcmcia0: CIS tuple chain:
 01 03 00 00 ff
CISTPL_DEVICE type=null speed=null
 17 04 67 5a 08 ff
CISTPL_DEVICE_A type=sram speed=ext
 1d 05 01 67 5a 08 ff
unhandled CISTPL 1d
 fe 0f ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ff
unhandled CISTPL fe
 15 38 01 00 44 2d 4c 69 6e 6b 00 44 57 4c 2d 36
 35 30 20 57 69 72 65 6c 65 73 73 20 50 43 20 43
 61 72 64 20 52 65 76 50 00 49 53 4c 33 37 31 30
 31 50 2d 31 30 00 41 33 00 ff
CISTPL_VERS_1
 fe 04 ff ff ff ff
unhandled CISTPL fe
 20 04 0b 00 10 71
CISTPL_MANFID
 21 02 06 00
CISTPL_FUNCID
 22 02 01 07
 22 05 02 40 42 0f 00
 22 05 02 80 84 1e 00
 22 05 02 60 ec 53 00
 22 05 02 c0 d8 a7 00
 22 02 03 07
 22 08 04 06 00 0d 88 4c 14 b6
 fe 06 ff ff ff ff ff ff
unhandled CISTPL fe
 22 02 05 01
 1a 07 03 01 e0 03 00 00 01
CISTPL_CONFIG
 1b 10 c1 01 19 77 55 c5 4b d5 19 36 36 05 47 ff
 ff ff
CISTPL_CFTABLE_ENTRY
 ff
CISTPL_END
[mem unmap 0][mem map 0 0/400->fe034000/400]cis mem map fe134000
CISTPL_LINKTARGET expected, code 01 observed
[mem unmap 0][mem free]pcmcia0: CIS version unknown (major=1, minor=0)
pcmcia0: CIS info: D-Link, DWL-650 Wireless PC Card RevP, ISL37101P-10, A3
pcmcia0: Manufacturer code 0xb, product 0x7110
pcmcia0: function 0: network adapter, ccr addr 3e0 mask 1
pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 7, io
space 0-7f; io16 irqshare irqpulse irqlevel
wi0 at pcmcia0 function 0: <D-Link, DWL-650 Wireless PC Card RevP, ISL37101P-10,
 A3>
pcmcia_config_alloc: io 0 start=0 length=80 align=80 skew=0
[io alloc 80][io map 0/80->fe234000/80]window iobase 0 iomax 7f
function iobase 0 iomax 7f
pcmcia0: ++enabled_count = 2
[mem alloc 14][mem map 1 3e0/14->fe1343e0/14]pcmcia0: function 0 CCR at 0 offset
 0: 41 80 22 11, a7 b6 7b 75, 50
tslot_slot_settype(1)
wi0:wi0: command timed out, cmd=0x0, arg=0x0
wi0: wi_cmd: busy bit won't clear.
wi0: wi_cmd: busy bit won't clear.
wi0: wi_cmd: busy bit won't clear.
wi0: init failed
wi0: failed to attach controller
[mem unmap 0][mem free]pcmcia0: --enabled_count = 1
[io unmap][io free]tslot0: disable slot 0
pcmcia0: --enabled_count = 0
0c000000: fe334000 05000000: fe434000 07000000: fe534000 pcmcia1 at tslot0 socke
t 1

So the card is recognized and all that but the wi driver doesn't get it to work for some reason. 
What strikes me odd is this:
- it tries to use 14 bytes  memory at 3e0 and 128 bytes IO at 0 - I'd expect it at IO 3e0.
- CIS version unknown?
So - is this card supposed to work at all? Does the configuration stuff make sense? The ts102 has some funky byte order reshuffling logic - could this be the culprit?

have fun
Michael

--Signature=_Fri__11_Mar_2005_01_40_46_-0500_GO/0xHCFaITlTiiQ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQjE9bspnzkX8Yg2nAQJ/cAgArfaXosxlDIqeLpR6saRDYc0LV7pq/Qdq
ZQKj9l0wPMDTQIf7ftS3gunI0z+/0aO3Ibcerj9obXgSUq+PR7BjgXf8m7UQ/3NM
Ig5XAb+0ujuHunB7K2zVm9/IpkXnwSvkN9XgkTa8Z6mnpyyQ3fUX60upcsNtg4+E
ueLIIuwQ4mIUVznuA4OUpQ1FLYQIiQBgyjvGtd7aolRp7o9BqOwu2207s/V35a1V
eQaxi5dWRaR+OdCKCsV1NxeKEq139UotN6UkaGIilTQkomJeVLCmsT0Xc1G5Z217
IES3+HWF0QsRjjNKX9L/j/cwidHQrONsUjCTdy2Rv5NmULB1NVO60w==
=nt0X
-----END PGP SIGNATURE-----

--Signature=_Fri__11_Mar_2005_01_40_46_-0500_GO/0xHCFaITlTiiQ--