summaryrefslogtreecommitdiffstats
path: root/sys/modules/bwn
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2016-05-17 07:15:25 +0000
committeradrian <adrian@FreeBSD.org>2016-05-17 07:15:25 +0000
commiteba4e792410a58591e672dc7b07805b617a7db7a (patch)
treecf0fc0a25258eaa2c5b0ac7d6a470dd60974bcd3 /sys/modules/bwn
parentea63d2f3cf3ec465ccf96fbdf8d5567702ee5454 (diff)
downloadFreeBSD-src-eba4e792410a58591e672dc7b07805b617a7db7a.zip
FreeBSD-src-eba4e792410a58591e672dc7b07805b617a7db7a.tar.gz
[bwn] add in bwn n-phy linking.
* The default kernel and options won't build the GPL PHY bits; * bwn(4) defaults to building as a module anyway!; * If BWN_GPL_PHY is specified in the config file, and you uncomment the GPL PHY bits in the module Makefile, you'll get a working N-PHY. This is specifically designed to be obtuse for now, as I don't want to flip it on by default. It's easy enough for people to flip on and build, and it's a module so the default GENERIC kernel won't be GPL tainted. I'll have to add an actual HAL layer that allows the GPL PHY to be loaded before if_bwn so it can be "magic", but that'll come later. Tested: * BCM4321 11abg NIC, STA mode
Diffstat (limited to 'sys/modules/bwn')
-rw-r--r--sys/modules/bwn/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/modules/bwn/Makefile b/sys/modules/bwn/Makefile
index a55ee96..dbad3c3 100644
--- a/sys/modules/bwn/Makefile
+++ b/sys/modules/bwn/Makefile
@@ -9,10 +9,23 @@ SRCS+= if_bwn_util.c
# PHY
SRCS+= if_bwn_phy_common.c
SRCS+= if_bwn_phy_g.c if_bwn_phy_lp.c
+SRCS+= if_bwn_phy_n.c
# Other
SRCS+= device_if.h bus_if.h pci_if.h
+# Uncomment this for the GPL PHY code; this requires the
+# module be built with BWN_GPL_PHY set in the kernel
+# configuration.
+
+#.PATH: ${.CURDIR}/../../gnu/dev/bwn/phy_n
+#SRCS+= if_bwn_radio_2055.c
+#SRCS+= if_bwn_radio_2056.c
+#SRCS+= if_bwn_radio_2057.c
+#SRCS+= if_bwn_phy_n_tables.c
+#SRCS+= if_bwn_phy_n_ppr.c
+#SRCS+= if_bwn_phy_n_core.c
+
.include <bsd.kmod.mk>
# XXX Work around clang warning, until maintainer approves fix.
OpenPOWER on IntegriCloud