pci: add region parameter to constructor
Add region parameter to constructor for PCI handler so that it knows
what value to send the host when requested.
Change-Id: Iefe1302aaaa43819f84b9730d01ff61dd545e2ef
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/configure.ac b/configure.ac
index da02696..52efb04 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,6 +75,12 @@
AC_SUBST([OESDK_TESTCASE_FLAGS], [$testcase_flags])
)
+AC_ARG_VAR(PCI_PHYSICAL_ADDRESS, [The physical address to use on the BMC for the PCI-to-AHB Bridge.])
+AS_IF([test "x$PCI_PHYSICAL_ADDRESS" == "x"],
+ [AC_DEFINE(PCI_PHYSICAL_ADDRESS, [0], [Default address to 0.])],
+ [AC_DEFINE(PCI_PHYSICAL_ADDRESS, [$PCI_PHYSICAL_ADDRESS], [Value for PCI-to-AHB bridge set.])]
+)
+
# Create configured output
AC_CONFIG_FILES([Makefile test/Makefile])
AC_OUTPUT