summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-06-07 18:09:33 +0000
committersam <sam@FreeBSD.org>2006-06-07 18:09:33 +0000
commit02261790e07dcd43b8b109c6b1563b37983ed368 (patch)
tree12894d567a17e53dbc382811df7dbb36f4241271 /sys
parenta2b14256a599014cf14a4258422f6552fb3b3334 (diff)
downloadFreeBSD-src-02261790e07dcd43b8b109c6b1563b37983ed368.zip
FreeBSD-src-02261790e07dcd43b8b109c6b1563b37983ed368.tar.gz
reposition defines so things build on architectures where AH_REGOPS_FUNC
is defined
Diffstat (limited to 'sys')
-rw-r--r--sys/contrib/dev/ath/freebsd/ah_osdep.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/sys/contrib/dev/ath/freebsd/ah_osdep.c b/sys/contrib/dev/ath/freebsd/ah_osdep.c
index aed0161..823ee39 100644
--- a/sys/contrib/dev/ath/freebsd/ah_osdep.c
+++ b/sys/contrib/dev/ath/freebsd/ah_osdep.c
@@ -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)
{
OpenPOWER on IntegriCloud