Subject: kern/17502: carbus needs offset to pcmcia iomem base address
To: None <gnats-bugs@gnats.netbsd.org>
From: Brett Lymn (Master of the Siren) <blymn@baesystems.com.au>
List: netbsd-bugs
Date: 07/07/2002 21:31:23
>Number:         17502
>Category:       kern
>Synopsis:       carbus needs offset to pcmcia iomem base address
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 07 05:02:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Brett Lymn (Master of the Siren)
>Release:        NetBSD 1.6A
>Organization:
Brett Lymn
>Environment:
System: NetBSD siren 1.6A NetBSD 1.6A (SIREN) #21: Mon Jul 1 22:33:09 CST 2002 toor@siren:/usr/src/sys/arch/i386/compile/SIREN i386
Architecture: i386
Machine: i386
>Description:
	I recently bought a Ricoh 5C476 based PCI-Cardbus bridge and found
that when I tried to run my wavelan (wi) in the bridge it would not work.
The error was "could not connect to controller" and it failed to read the
ethernet address from the card.  This is a classic symptom of the wavelan
card clashing with some other hardware in the machine.  I could get my
wavelan to work by editing syssrc/dev/pci/pccbb.c and hard coding the 
start variable in pccbb_pcmcia_io_alloc to be 0x500.  This is not very
elegant and we really should have a way of modifying the io memory based
address that is something akin to the PCIC_ISA_ALLOC_IOBASE and 
PCIC_ISA_ALLOC_IOSIZE that are available for ISA to PCMCIA bridges.
>How-To-Repeat:
	This may or may not be difficult depending on your hardware setup
but for me simply trying to use a wavelan wireless network card in the
PCI-PCMCIA bridge on my desktop machine fails to work.
>Fix:
	As described above, hardcoding the start variable in 
pccbb_pcmcia_io_alloc will work around the problem.  I don't know enough
about the pcmcia probe/attach to suggest a better solution.

>Release-Note:
>Audit-Trail:
>Unformatted: