Subject: ISA->PCMCIA bridges
To: None <current-users@netbsd.org>
From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
List: current-users
Date: 06/24/2000 00:29:43
  I am attempting to get a BayStack AWI card to work in an ISA->PCMCIA
adapter that I got. It is a device that plugs into an ISA slot and cables
to a 3.5" adapter that has a VIA chip on it and two PCMCIA slots on it.
  It will be my "cabled" side for a wireless lan around my house.

  Here are the boot messages:

ncr0 at pci0 dev 11 function 0: ncr 53c875 fast20 wide scsi
ncr0: interrupting at irq 5
ncr0: minsync=12, maxsync=137, maxoffs=16, 128 dwords burst, large dma fifo
ncr0: single-ended, open drain IRQ driver, using on-chip SRAM
ncr0: restart (scsi reset).
scsibus0 at ncr0: 16 targets, 8 luns per target
...
isapnp0: read port 0x20b
pcic1 at isapnp0 port 0x3e0/2
pcic1: VIA PCMCIA CARD (ident 0x82 OK): using iomem 0xc8000 iosiz 0x4000 irq 15
pcic1: controller 0 (Cirrus PD672X) has sockets A and B
pcmcia0 at pcic1 controller 0 socket 0
pcmcia1 at pcic1 controller 0 socket 1
apm0 at mainbus0: Power Management spec V1.2 (slowidle)
...
awi0 at pcmcia1 function 0 port 0x300-0x30f: BayStack 650 Wireless (802.11)
awi0: unable to allocate memory space; using i/o only
awi0: Ethernet address from CIS: 00:20:d8:00:f2:85
awi0: firmware PCnetMobile:v1.50 102097 APIx.x
awi0: 802.11 address 00:20:d8:00:f2:85
....
pcmcia1: card irq 5
awi0: starting DAD for fe80:000f::0220:d8ff:fe00:f285
awi0: timeout waiting for command completion
awi0: cmd status: 1
awi0: cmd: 1
CSB: ff 20 00 01 70 00 00 00 00 00 00 00 00 00 00 00
awi0: reset
awi0: could not run DAD, driver problem?

  Since the adapter is on an ISA bus, I would expect it to use edge triggered
interrupts rather than level triggered ones, so I would expect an attempt to
share irq 5 should fail... I expect that it doesn't because most PCMCIA
adapters are not on ISA buses.
  I expect I need to use something like:

options		PCIC_ISA_INTR_ALLOC_MASK=0xf380

  to keep it away from the irq's that have been allocated to PCI devices...
Does this sound like the right diagnostic, or have I misread the problem?

   :!mcr!:            |  Cow#1: Are you worried about getting Mad Cow Disease?
   Michael Richardson |  Cow#2: No. I'm a duck.
 Home: mcr@sandelman.ottawa.on.ca. PGP key available.