summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2016-05-04 23:38:27 +0000
committeradrian <adrian@FreeBSD.org>2016-05-04 23:38:27 +0000
commit1927244465ddc89990ecaa8bff88966f12bbf7dd (patch)
treebd04eaf3681b18b7f54940c8f545b264d3343278 /sys/modules
parentedaf61e159f77848ee76f21bb23dfcdda0329d46 (diff)
downloadFreeBSD-src-1927244465ddc89990ecaa8bff88966f12bbf7dd.zip
FreeBSD-src-1927244465ddc89990ecaa8bff88966f12bbf7dd.tar.gz
[bwn] [bhnd] initial support for using bhnd for if_bwn devices.
This is an initial work in progress to use the replacement bhnd bus code for devices which support it. * Add manpage updates for bhnd, bhndb, siba * Add kernel options for bhnd, bhndbus, etc * Add initial support in if_bwn_pci / if_bwn_mac for using bhnd as the bus transport for suppoted NICs * if_bwn_pci will eventually be the PCI bus glue to interface to bwn, which will use the right backend bus to attach to, versus direct nexus/bhnd attachments (as found in embedded broadcom devices.) The PCI glue defaults to probing at a lower level than the bwn glue, so bwn should still attach as per normal without a boot time tunable set. It's also not fully fleshed out - the bwn probe/attach code needs to be broken out into platform and bus specific things (just like ath, ath_pci, ath_ahb) before we can shift the driver over to using this. Tested: * BCM4311, STA mode * BCM4312, STA mode Submitted by: Landon Fuller <landonf@landonf.org> Differential Revision: https://reviews.freebsd.org/D6191
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile3
-rw-r--r--sys/modules/bwn_pci/Makefile11
2 files changed, 14 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index e2c2205..57e27b0 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -50,7 +50,9 @@ SUBDIR= \
${_auxio} \
${_bce} \
bfe \
+ bhnd \
bge \
+ bhnd \
${_bxe} \
${_bios} \
${_bktr} \
@@ -58,6 +60,7 @@ SUBDIR= \
bridgestp \
bwi \
bwn \
+ bwn_pci \
cam \
${_canbepm} \
${_canbus} \
diff --git a/sys/modules/bwn_pci/Makefile b/sys/modules/bwn_pci/Makefile
new file mode 100644
index 0000000..5e3a9db
--- /dev/null
+++ b/sys/modules/bwn_pci/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/bwn
+
+KMOD= if_bwn_pci
+SRCS= if_bwn_pci.c bwn_mac.c
+SRCS+= device_if.h bus_if.h pci_if.h \
+ bhnd_bus_if.h bhndb_bus_if.h \
+ bhndb_if.h
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud