tools/pci: add Nuvoton bridge configuration
The Nuvoton PCI device requires the Memory Space bit to be set in its
command register in order to access the mailbox over MMIO.
Signed-off-by: Benjamin Fair <benjaminfair@google.com>
Change-Id: Ic262b907ae55c622999aa68891b618650ccad3f2
diff --git a/tools/test/pciaccess_mock.hpp b/tools/test/pciaccess_mock.hpp
index e717c74..a030a18 100644
--- a/tools/test/pciaccess_mock.hpp
+++ b/tools/test/pciaccess_mock.hpp
@@ -16,6 +16,12 @@
MOCK_CONST_METHOD1(pci_device_next,
struct pci_device*(struct pci_device_iterator*));
MOCK_CONST_METHOD1(pci_device_probe, int(struct pci_device*));
+ MOCK_CONST_METHOD3(pci_device_cfg_read_u8,
+ int(struct pci_device* dev, std::uint8_t* data,
+ pciaddr_t offset));
+ MOCK_CONST_METHOD3(pci_device_cfg_write_u8,
+ int(struct pci_device* dev, std::uint8_t data,
+ pciaddr_t offset));
MOCK_CONST_METHOD5(pci_device_map_range, int(struct pci_device*, pciaddr_t,
pciaddr_t, unsigned, void**));
MOCK_CONST_METHOD3(pci_device_unmap_range,