84d6a5d4a7
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 |
||
---|---|---|
.. | ||
bhnd_bhndb.c | ||
bhndb_bus_if.m | ||
bhndb_hwdata.c | ||
bhndb_hwdata.h | ||
bhndb_if.m | ||
bhndb_pci_hwdata.c | ||
bhndb_pci_hwdata.h | ||
bhndb_pci_sprom.c | ||
bhndb_pci.c | ||
bhndb_pcireg.h | ||
bhndb_pcivar.h | ||
bhndb_private.h | ||
bhndb_subr.c | ||
bhndb.c | ||
bhndb.h | ||
bhndbvar.h |