bhnd(4): Implement backplane interrupt handling.
authorlandonf <landonf@FreeBSD.org>
Mon, 5 Sep 2016 22:11:46 +0000 (22:11 +0000)
committerlandonf <landonf@FreeBSD.org>
Mon, 5 Sep 2016 22:11:46 +0000 (22:11 +0000)
commit47d8c9cde3f7fd17a55aaf322076df449b8bb79e
treec602ad8ab6f5d214b237106e73c10195b9460045
parentbc0784fd1f84355f86aad18eee844b992342791e
bhnd(4): Implement backplane interrupt handling.

This adds bhnd(4) bus-level support for querying backplane interrupt vector
routing, and delegating machine/bridge-specific interrupt handling to the
concrete bhnd(4) driver implementation.

On bhndb(4) bridged PCI devices, we provide the PCI/MSI interrupt directly
to attached cores.

On MIPS devices, we report a backplane interrupt count of 0, effectively
disabling the bus-level interrupt assignment. This allows mips/broadcom
to temporarily continue using hard-coded MIPS IRQs until bhnd_mips PIC
support is implemented.

Reviewed by: mizhka
Approved by: adrian (mentor, implicit)
17 files changed:
sys/dev/bhnd/bcma/bcma.c
sys/dev/bhnd/bcma/bcma_dmp.h
sys/dev/bhnd/bcma/bcmavar.h
sys/dev/bhnd/bhnd.c
sys/dev/bhnd/bhnd.h
sys/dev/bhnd/bhnd_bus_if.m
sys/dev/bhnd/bhnd_nexus.c
sys/dev/bhnd/bhndb/bhnd_bhndb.c
sys/dev/bhnd/bhndb/bhndb.c
sys/dev/bhnd/bhndb/bhndb_pci.c
sys/dev/bhnd/bhndb/bhndb_pcivar.h
sys/dev/bhnd/cores/pmu/bhnd_pmu_subr.c
sys/dev/bhnd/siba/siba.c
sys/dev/bhnd/siba/siba_bhndb.c
sys/dev/bhnd/siba/sibareg.h
sys/dev/bhnd/siba/sibavar.h
sys/dev/bwn/bwn_mac.c