lpc_handler also requires a BMC address for mapping
Rename the PCI_PHYSICAL_ADDRESS to MAPPED_ADDRESS to refer to a region
of BMC memory reserved for the mapping.
Change-Id: Ie3f0a87a92c985cae0770162bf957caa1c035f82
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/lpc_handler.hpp b/lpc_handler.hpp
index 91c976b..52073da 100644
--- a/lpc_handler.hpp
+++ b/lpc_handler.hpp
@@ -29,9 +29,13 @@
/**
* Create an LpcDataHandler.
*
+ * @param[in] regionAddress - BMC address to point the map for the LPC
+ * memory region.
* @param[in] mapper - pointer to a mapper implementation to use.
*/
- explicit LpcDataHandler(std::unique_ptr<LpcMapperInterface> mapper) :
+ LpcDataHandler(std::uint32_t regionAddress,
+ std::unique_ptr<LpcMapperInterface> mapper) :
+ regionAddress(regionAddress),
mapper(std::move(mapper))
{
}
@@ -43,6 +47,7 @@
std::vector<std::uint8_t> read() override;
private:
+ std::uint32_t regionAddress;
std::unique_ptr<LpcMapperInterface> mapper;
};