freebsd-nq/sys/dev/bhnd
Landon J. Fuller 84d6a5d4a7 bhndb_pci(4): fix incorrect BHND_PCI_SRSH_PI workaround
On a SPROM-less device, the PCI(e) bridge core will be initialized with its
power-on-reset defaults; this can leave the SPROM-derived BHND_PCI_SRSH_PI
value pointing to the wrong backplane address. This value is used by the
PCI core when performing address translation between the static register
windows in BAR0 that map the PCI core's register block, and backplane
address space.

Previously, bhndb_pci(4) incorrectly used the potentially invalid static
BAR0 PCI register windows when attempting to correct the BHND_PCI_SRSH_PI
value in the PCI core's SPROM shadow.

Instead, we now read/update BHND_PCI_SRSH_PI by fetching the PCI core's
backplane address from the core enumeration table, and then using a dynamic
register window to explicitly map the PCI core's register block into BAR0.

Sponsored by:	The FreeBSD Foundation
2018-01-17 03:34:26 +00:00
..
bcma dev/bhnd: Make use of mallocarray(9). 2018-01-11 15:44:03 +00:00
bhndb bhndb_pci(4): fix incorrect BHND_PCI_SRSH_PI workaround 2018-01-17 03:34:26 +00:00
cores bhndb_pci(4): fix incorrect BHND_PCI_SRSH_PI workaround 2018-01-17 03:34:26 +00:00
nvram dev/bhnd: Make use of mallocarray(9). 2018-01-11 15:44:03 +00:00
siba dev/bhnd: Make use of mallocarray(9). 2018-01-11 15:44:03 +00:00
tools bhnd(4): Add missing enclosing parentheses to the bhnd bus space macros to 2017-12-14 03:03:08 +00:00
bhnd_bus_if.m bhnd(4): Fix bcma/siba core reset behavior 2017-11-27 22:13:30 +00:00
bhnd_debug.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
bhnd_erom_if.m bhnd: Add support for supplying bus I/O callbacks when initializing an EROM 2017-09-27 19:48:34 +00:00
bhnd_erom_types.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
bhnd_erom.c bhnd(4)/bwn(4): Fix a number of small issues reported by Coverity. 2017-12-15 04:51:47 +00:00
bhnd_erom.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
bhnd_eromvar.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
bhnd_ids.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
bhnd_match.h bhnd(4): Include board_devid in the bhnd_board_info structure, and populate 2017-12-14 01:58:05 +00:00
bhnd_private.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
bhnd_subr.c bhnd(4): Include board_devid in the bhnd_board_info structure, and populate 2017-12-14 01:58:05 +00:00
bhnd_types.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
bhnd.c bhnd(4): Include board_devid in the bhnd_board_info structure, and populate 2017-12-14 01:58:05 +00:00
bhnd.h bhnd(4): Add missing enclosing parentheses to the bhnd bus space macros to 2017-12-14 03:03:08 +00:00
bhndreg.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
bhndvar.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00