reposition defines so things build on architectures where AH_REGOPS_FUNC

is defined
This commit is contained in:
Sam Leffler 2006-06-07 18:09:33 +00:00
parent 3735f6ff08
commit a08db7182a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159380

View file

@ -52,6 +52,20 @@
#include <contrib/dev/ath/ah.h>
/*
* WiSoC boards overload the bus tag with information about the
* board layout. We must extract the bus space tag from that
* indirect structure. For everyone else the tag is passed in
* directly.
* XXX cache indirect ref privately
*/
#ifdef AH_SUPPORT_AR5312
#define BUSTAG(ah) \
((bus_space_tag_t) ((struct ar531x_config *)((ah)->ah_st))->tag)
#else
#define BUSTAG(ah) ((bus_space_tag_t) (ah)->ah_st)
#endif
extern void ath_hal_printf(struct ath_hal *, const char*, ...)
__printflike(2,3);
extern void ath_hal_vprintf(struct ath_hal *, const char*, __va_list)
@ -248,20 +262,6 @@ ath_hal_alq_get(struct ath_hal *ah)
return ale;
}
/*
* WiSoC boards overload the bus tag with information about the
* board layout. We must extract the bus space tag from that
* indirect structure. For everyone else the tag is passed in
* directly.
* XXX cache indirect ref privately
*/
#ifdef AH_SUPPORT_AR5312
#define BUSTAG(ah) \
((bus_space_tag_t) ((struct ar531x_config *)((ah)->ah_st))->tag)
#else
#define BUSTAG(ah) ((bus_space_tag_t) (ah)->ah_st)
#endif
void
ath_hal_reg_write(struct ath_hal *ah, u_int32_t reg, u_int32_t val)
{