]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[bwn] [bhnd] initial support for using bhnd for if_bwn devices.
authoradrian <adrian@FreeBSD.org>
Wed, 4 May 2016 23:38:27 +0000 (23:38 +0000)
committeradrian <adrian@FreeBSD.org>
Wed, 4 May 2016 23:38:27 +0000 (23:38 +0000)
commit1927244465ddc89990ecaa8bff88966f12bbf7dd
treebd04eaf3681b18b7f54940c8f545b264d3343278
parentedaf61e159f77848ee76f21bb23dfcdda0329d46
[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
17 files changed:
share/man/man4/Makefile
share/man/man4/bcma.4 [new file with mode: 0644]
share/man/man4/bhnd.4 [new file with mode: 0644]
share/man/man4/bhndb.4 [new file with mode: 0644]
share/man/man4/siba.4
sys/conf/files
sys/dev/bhnd/bhndb/bhndb.c
sys/dev/bhnd/bhndb/bhndb_pci.c
sys/dev/bhnd/bhndb/bhndb_subr.c
sys/dev/bwn/bwn_mac.c [new file with mode: 0644]
sys/dev/bwn/if_bwn.c
sys/dev/bwn/if_bwn.c.c [new file with mode: 0644]
sys/dev/bwn/if_bwn_debug.h
sys/dev/bwn/if_bwn_pci.c [new file with mode: 0644]
sys/dev/bwn/if_bwn_pcivar.h [new file with mode: 0644]
sys/modules/Makefile
sys/modules/bwn_pci/Makefile [new file with mode: 0644]