pci_handler: add support for opening, mapping, closing
Add support for opening, mapping, closing the aspeed-p2a-ctrl.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I8a9361d69af0218365ab752ea69f9276bd0e767a
diff --git a/main.cpp b/main.cpp
index a0716ef..e9de21c 100644
--- a/main.cpp
+++ b/main.cpp
@@ -54,7 +54,7 @@
#ifdef ENABLE_PCI_BRIDGE
#if defined(ASPEED_P2A)
-PciDataHandler pciDataHandler(MAPPED_ADDRESS);
+PciDataHandler pciDataHandler(MAPPED_ADDRESS, memoryRegionSize);
#else
#error "You must specify a hardware implementation."
#endif