freebsd-dev/sys/dev/bhnd/cores/pci
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
..
bhnd_pci_hostb.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
bhnd_pci_hostbvar.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
bhnd_pci.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
bhnd_pcib.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
bhnd_pcibvar.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
bhnd_pcireg.h bhndb_pci(4): fix incorrect BHND_PCI_SRSH_PI workaround 2018-01-17 03:34:26 +00:00
bhnd_pcivar.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00