freebsd-nq/sys/dev/bhnd/bhndb
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_bhndb.c bhnd(4): extend the PMU APIs to support bwn(4) 2017-11-22 20:27:46 +00:00
bhndb_bus_if.m Migrate bhndb(4) to the new bhnd_erom API. 2016-09-04 00:58:19 +00:00
bhndb_hwdata.c bhndb(4): Implement bridge support for the BCM4312 and other PCI_V0 chipsets. 2017-11-28 00:12:14 +00:00
bhndb_hwdata.h
bhndb_if.m bhnd(4): implement MIPS and PCI(e) interrupt support 2017-11-21 23:15:20 +00:00
bhndb_pci_hwdata.c bhndb(4): Enable addrext support on DMA64 devices, and fix an incorrect DMA 2017-12-16 04:35:37 +00:00
bhndb_pci_hwdata.h
bhndb_pci_sprom.c bhndb(4): Fix probing of bhndb-attached bhnd_nvram devices. 2016-09-04 01:47:21 +00:00
bhndb_pci.c bhndb_pci(4): fix incorrect BHND_PCI_SRSH_PI workaround 2018-01-17 03:34:26 +00:00
bhndb_pcireg.h bhndb(4): Implement bridge support for the BCM4312 and other PCI_V0 chipsets. 2017-11-28 00:12:14 +00:00
bhndb_pcivar.h bhndb_pci(4): fix incorrect BHND_PCI_SRSH_PI workaround 2018-01-17 03:34:26 +00:00
bhndb_private.h bhndb(4): Implement bridge support for the BCM4312 and other PCI_V0 chipsets. 2017-11-28 00:12:14 +00:00
bhndb_subr.c bhndb(4): Enable addrext support on DMA64 devices, and fix an incorrect DMA 2017-12-16 04:35:37 +00:00
bhndb.c bhnd(4)/bwn(4): Fix a number of small issues reported by Coverity. 2017-12-15 04:51:47 +00:00
bhndb.h bhndb(4): Implement bridge support for the BCM4312 and other PCI_V0 chipsets. 2017-11-28 00:12:14 +00:00
bhndbvar.h bhndb(4): Implement bridge support for the BCM4312 and other PCI_V0 chipsets. 2017-11-28 00:12:14 +00:00