Subject: Re: PCI configuration problem
To: Martin Husemann <martin@duskware.de>
From: Nathan J. Williams <nathanw@MIT.EDU>
List: tech-kern
Date: 01/10/2001 02:19:00
Martin Husemann <martin@duskware.de> writes:

> Now I'm trying to map BAR 0x14 in io space, but: I/O space accesses: off.
> So the pci_attach_arg I get has pa->pa_flags without the io enabled bit and
> pci_mapreg_map fails accordingly. (The other errors included in the dump
> are because of my idiotic try to map this io space BAR in mem space).

Note that the I/O BAR and the mem BAR are the same size, and that the
driver only touches one of them. There's a good chance that they
actually map the register space, so you can avoid the problem by
memory mapping the BAR at 0x10, rather than I/O mapping the BAR at
0x14. Give that a try.

(I don't know why I/O would be disabled on the device, though).

        - Nathan