Subject: Re: Cisco aironet 350 _mini-pci_ driver.
To: None <current-users@netbsd.org>
From: Martin Husemann <martin@duskware.de>
List: current-users
Date: 12/08/2002 17:41:44
On Sun, Dec 08, 2002 at 09:15:12AM +0100, Adrien Auzanneau wrote:

>     Base address register at 0x10
>       type: i/o
>       base: 0x00008000, not sized
>     Base address register at 0x14
>       type: 32-bit nonprefetchable memory
>       base: 0xd0200000, not sized
>     Base address register at 0x18
>       type: 32-bit nonprefetchable memory
>       base: 0xd0400000, not sized

Ok, we have a PCI card with 3 mappable BARs, and a driver that wants one
with IO access. I have no clue about the chipset at all, but the obvious
things you can try are:

 - change the pci_mapreg_map call (sys/dev/pci/if_an_pci.c:133) to use
   PCI_MAPREG_TYPE_MEM instead of PCI_MAPREG_TYPE_IO.

 - try the BAR at 0x10 instead of 0x18 with IO access by changing
   AN_PCI_IOBA in the same call mentioned above into 0x10.

If any of those works, please let us know. I wouldn't bet on it though...

Martin