Subject: Re: ti0: can't map memory space
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Bill Studenmund <wrstuden@nas.nasa.gov>
List: port-alpha
Date: 03/16/2000 08:58:42
On Thu, 16 Mar 2000, Manuel Bouyer wrote:

> On Thu, Mar 16, 2000 at 03:29:33PM +0100, Manuel Bouyer wrote:
> > Drivers do this for boards which provides 2 Base address register, one
> > for I/O and one for mem. It seems the netgear doesn't do this, from the
> > output of pci_conf_print():
> 
> Ok, I got it working by changing:
> if (pci_mapreg_map(pa, 0x10, PCI_MAPREG_TYPE_MEM, BUS_SPACE_MAP_LINEAR,
>             &sc->ti_btag, &sc->ti_bhandle, NULL, NULL)) {
> to:
> if (pci_mapreg_map(pa, 0x10, PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_32BIT,
>             0 , &sc->ti_btag, &sc->ti_bhandle, NULL, NULL))

Note that it was removing BUS_SPACE_MAP_LINEAR which did it -
PCI_MAPREG_MEM_TYPE_32BIT is 0. :-)

Take care,

Bill