Subject: structural bus_space_handles
To: None <tech-kern@NetBSD.org, port-sparc@NetBSD.mailsnare.net>
From: Garrett D'Amore <garrett_damore@tadpole.com>
List: tech-kern
Date: 06/04/2006 09:39:18
SPARC64 uses a struct instead of an address or pointer for a
bus_space_handle_t.  This creates an ugly situation in some code (ath in
particular), forcing us to have #ifdef __sparc64__ in this code to
handle this case.  (The Atheros HAL layer wants a single pointer for a
bus_space_handle_t.)

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?

    -- Garrett

-- 
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134  Fax: 951 325-2191