summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-06-26 04:33:57 +0000
committeradrian <adrian@FreeBSD.org>2013-06-26 04:33:57 +0000
commitbbf3201d046378e71cf96afabf209800dfaac508 (patch)
treea3a2b31a1242eda0b5f23c9c3681c6bf43e1d03c /sys/contrib
parentd7e48af98118df093d8c8ed27c4b8dcc779c398a (diff)
downloadFreeBSD-src-bbf3201d046378e71cf96afabf209800dfaac508.zip
FreeBSD-src-bbf3201d046378e71cf96afabf209800dfaac508.tar.gz
Add a stub AR93xx RF module just to keep the linker happy.
When building AR933x test images, I'd like to only build only the ar9300 HAL. To do this, it needs to supply an RF linker entry or it won't compile. Tested: * AR933x test builds
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c
index a350eed..251957e 100644
--- a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c
+++ b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c
@@ -652,3 +652,24 @@ ar9300SetMulticastFilterIndex(struct ath_hal *ah, uint32_t ix)
}
return (AH_TRUE);
}
+
+/*
+ * RF attach stubs
+ */
+
+static HAL_BOOL
+rf9330_attach(struct ath_hal *ah, HAL_STATUS *status)
+{
+
+ (*status) = HAL_EINVAL;
+ return (AH_FALSE);
+}
+
+static HAL_BOOL
+rf9330_probe(struct ath_hal *ah)
+{
+ return (AH_FALSE);
+}
+
+AH_RF(RF9330, rf9330_probe, rf9330_attach);
+
OpenPOWER on IntegriCloud