Subject: RE: Marvell/evbppc - netbsd-current
To: Steve Woodford <scw@netbsd.org>
From: Fraser Douglas <D.Fraser@flarion.com>
List: port-powerpc
Date: 03/20/2004 14:01:18
Steve,

Thanks, that is how I had set it up locally,
just direct address and it worked. It was good
to get some second hand confirmation on that.
I am new to NetBSD, so the config can seem
a little opaque at times.

Doug



-----Original Message-----
From: Steve Woodford [mailto:scw@netbsd.org]
Sent: Friday, March 19, 2004 6:04 PM
To: Fraser Douglas; port-powerpc@NetBSD.org
Subject: Re: Marvell/evbppc - netbsd-current


On Friday 19 March 2004 9:49 pm, Fraser Douglas wrote:
> It needs (for the ev64260 port) to define macros
> for:
> PHYS_TO_BUS_MEM
> and
> BUS_MEM_TO_PHYS
[in <evbppc/bus.h>]
> which I am afraid will most likely break other
> evbppc based ports if they are using that bus.h.
>
> Can anyone suggest a place to invoke those macros
> other than in that particular header?
>
> Possibly as an option in the config? (though that seems 'brutish')

I can't think of any other way to specify this. I've rattled up an=20
evbppc-specific defflag "EVBPPC_BUS_DMA_NEEDS_P2B" which DTRT if=20
specified in the kernel config file. If there are no objections, I'll=20
commit this.

As I recall, you just need the following definitions for the macros:

#define PHYS_TO_BUS_MEM(t, addr)        (addr)
#define BUS_MEM_TO_PHYS(t, addr)        (addr)

Cheers, Steve