rename lpcmapperinterface to hardwaremapperinterface
The P2A bridge and the LPC bridge both require mapping and copying data
out. In the case of the aspeed-lpc-ctrl driver, the copyFrom will be
handled via mmap. However, the similarities between all Host-BMC window
hardware supports making this interface more generic.
Change-Id: I68a325cac4cf8415b0c6f069faf78a9520ca14fd
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/lpc_nuvoton.cpp b/lpc_nuvoton.cpp
index 416980e..ce0cf30 100644
--- a/lpc_nuvoton.cpp
+++ b/lpc_nuvoton.cpp
@@ -16,7 +16,7 @@
#include "lpc_nuvoton.hpp"
-#include "lpc_interface.hpp"
+#include "window_hw_interface.hpp"
#include <fcntl.h>
#include <sys/mman.h>
@@ -33,7 +33,7 @@
using std::uint32_t;
using std::uint8_t;
-std::unique_ptr<LpcMapperInterface> LpcMapperNuvoton::createNuvotonMapper()
+std::unique_ptr<HardwareMapperInterface> LpcMapperNuvoton::createNuvotonMapper()
{
/* NOTE: Considered making one factory for both types. */
return std::make_unique<LpcMapperNuvoton>();