Subject: Re: structural bus_space_handles
To: Garrett D'Amore <garrett_damore@tadpole.com>
From: Martin Husemann <martin@duskware.de>
List: tech-kern
Date: 06/04/2006 18:44:03
On Sun, Jun 04, 2006 at 09:39:18AM -0700, Garrett D'Amore wrote:
> It would be cleaner to have a macro in bus.h, ala
> __BUS_SPACE_HANDLE_IS_STRUCT, so that I could test for that flag instead
> of having a test for a specific port.  What do folks think?

The ath HAL code is bogus in this regard - it has no right to assume anything
about the opaque type. I don't think a more general solution is needed,
as the HAL already needs per-arch configuration, and that's where this check
goes too.

What problem are you trying to solve?

Martin