Subject: Re: troubles mapping isa registers
To: None <port-alpha@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-alpha
Date: 08/31/1999 18:18:45
On Tue, Aug 31, 1999 at 06:13:32PM +0200, Manuel Bouyer wrote:
> Hi,
> in order to fully support the cypress IDE controller, I need to read/write
> things to I/O 0x22/0x23. A first attempt to map these registers fails.
> Here is how I did it:
> first I need  a bus_space_tag_t, and of course none is passed from the
> upper level for this. As the bus-master DMA registers are supposed to be
> in I/O space too I've 'duplicated' it:
> sc->cy693_dmamode_iot = sc->sc_dma_iot;

And I just figured one thing: maybe I should use pa->pa_iot instead here ?
(pa is the struct pci_attach_args). This is what's used for mapping the
compat channels.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--