lpc mappers: provide BMC memory address for mapping
Provide the memory address to use for mmapping the window into the BMC
memory space.
Change-Id: I9cefcf7a2b5f88464457b2d9e2933645344ac49c
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/lpc_aspeed.cpp b/lpc_aspeed.cpp
index 25f027a..dabea8a 100644
--- a/lpc_aspeed.cpp
+++ b/lpc_aspeed.cpp
@@ -34,12 +34,13 @@
const std::string LpcMapperAspeed::lpcControlPath = "/dev/aspeed-lpc-ctrl";
std::unique_ptr<HardwareMapperInterface>
- LpcMapperAspeed::createAspeedMapper(std::size_t regionSize)
+ LpcMapperAspeed::createAspeedMapper(std::uint32_t regionAddress,
+ std::size_t regionSize)
{
/* NOTE: considered using a joint factory to create one or the other, for
* now, separate factories.
*/
- return std::make_unique<LpcMapperAspeed>(regionSize);
+ return std::make_unique<LpcMapperAspeed>(regionAddress, regionSize);
}
std::pair<std::uint32_t, std::uint32_t>