]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhnd: Add support for supplying bus I/O callbacks when initializing an EROM
authorLandon J. Fuller <landonf@FreeBSD.org>
Wed, 27 Sep 2017 19:48:34 +0000 (19:48 +0000)
committerLandon J. Fuller <landonf@FreeBSD.org>
Wed, 27 Sep 2017 19:48:34 +0000 (19:48 +0000)
commit89294a783a51c4dfc6382017c2d86646c14fb6bc
tree762d16ba11101dd0d62418ee934240a606ce0f02
parent8e35bf8319f3f087abd63079aa5b8820e5f837b4
bhnd: Add support for supplying bus I/O callbacks when initializing an EROM
parser.

This allows us to use the EROM parser API in cases where the standard bus
space I/O APIs are unsuitable. In particular, this will allow us to parse
the device enumeration table directly from bhndb(4) drivers, prior to
full attach and configuration of the bridge.

Approved by: adrian (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D12510
18 files changed:
sys/dev/bhnd/bcma/bcma.c
sys/dev/bhnd/bcma/bcma_erom.c
sys/dev/bhnd/bhnd_erom.c
sys/dev/bhnd/bhnd_erom.h
sys/dev/bhnd/bhnd_erom_if.m
sys/dev/bhnd/bhnd_eromvar.h [new file with mode: 0644]
sys/dev/bhnd/bhndb/bhndb.c
sys/dev/bhnd/bhndb/bhndb_pci.c
sys/dev/bhnd/bhndb/bhndb_pcivar.h
sys/dev/bhnd/bhndb/bhndb_private.h
sys/dev/bhnd/bhndb/bhndb_subr.c
sys/dev/bhnd/bhndb/bhndbvar.h
sys/dev/bhnd/bhndreg.h
sys/dev/bhnd/siba/siba.c
sys/dev/bhnd/siba/siba_erom.c
sys/mips/broadcom/bcm_machdep.c
sys/mips/broadcom/bcm_machdep.h
sys/modules/bhnd/bhndb_pci/Makefile