[bhnd] Add support for querying the attachment type of the bhnd bus.
authoradrian <adrian@FreeBSD.org>
Mon, 23 May 2016 03:47:44 +0000 (03:47 +0000)
committeradrian <adrian@FreeBSD.org>
Mon, 23 May 2016 03:47:44 +0000 (03:47 +0000)
commit81c5de57d49f1e89bc0f80838f0c4d0d38ba0ba5
treec34a6fb76ca3e662a3096fd8c53a6d1757a3eac9
parent3561b45e67ca42b4cda1a768077ef782a565db4e
[bhnd] Add support for querying the attachment type of the bhnd bus.

This adds a BHND_BUS_GET_ATTACH_TYPE(); the primary use-case is to let
chipc make a coarse-grained determination as to whether UART, SPI, etc
drivers ought to be attached, and on fullmac devices, whether a real
CPU driver ought to be skipped for the ARM core, etc.

Tested:

* BCM4331 (BHND)
* BCM4312 (SIBA)

Submitted by: Landon Fuller <landonf@landonf.org>
Differential Revision: https://reviews.freebsd.org/D6492
sys/conf/files
sys/dev/bhnd/bcma/bcma_bhndb.c
sys/dev/bhnd/bhnd.h
sys/dev/bhnd/bhnd_bus_if.m
sys/dev/bhnd/bhnd_types.h
sys/dev/bhnd/bhndb/bhnd_bhndb.c [new file with mode: 0644]
sys/dev/bhnd/bhndb/bhndb.h
sys/dev/bhnd/siba/siba_bhndb.c
sys/dev/bhnd/soc/bhnd_soc.c
sys/modules/bhnd/bhndb/Makefile