]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commit
pci: forward-declare bridge memory banks internally
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Sun, 31 May 2026 04:15:10 +0000 (21:15 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Mon, 1 Jun 2026 21:17:23 +0000 (14:17 -0700)
commit76385af538b06701362189815f8aadd3c5099974
tree2b0f097d85eca759e731e2e440804ce5c24e8d31
parent7ac04cc778b5e7c6138f8236ba1b180ad49f3060
pci: forward-declare bridge memory banks internally

The PCI bridge code maps the config, I/O, memory, and bridge banks
before their definitions later in pci.cpp. Clang requires declarations
before those uses.

Keep the declarations and definitions in an anonymous namespace. The
objects remain private to pci.cpp even though the forward declarations
use extern syntax.
pci.cpp