Subject: Re: ti0: can't map memory space
To: Frank van der Linden <frank@wins.uva.nl>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-alpha
Date: 03/16/2000 16:10:23
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))

I sill need to check if the driver itself doesn't require BUS_SPACE_MAP_LINEAR.

The driver works for ligth traffic but stressing it with ttcp -u caused
me a panic ... still investigating.

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