On Mon, 12 Jan 2026 at 18:21, Sean Anderson <[email protected]> wrote: > > Add a PCI bridge emulation device. Although real bridges need to be > configured in order to forward requests, this happens automatically for > now (see arch/sandbox/lib/pci_io.c). So just record the window registers > and check them in a test to make sure pci_auto is sane. > > As each bridge consume at least 4k I/O registers, increase the root > port's I/O space so we have some left for other devices. > > Signed-off-by: Sean Anderson <[email protected]> > --- > > Changes in v3: > - New > > arch/sandbox/dts/test.dts | 35 +++++- > arch/sandbox/include/asm/test.h | 1 + > drivers/pci/Makefile | 2 +- > drivers/pci/pci_sandbox_bridge.c | 192 +++++++++++++++++++++++++++++++ > test/dm/pci.c | 142 +++++++++++++++++++++++ > 5 files changed, 370 insertions(+), 2 deletions(-) > create mode 100644 drivers/pci/pci_sandbox_bridge.c
Reviewed-by: Simon Glass <[email protected]>

