bmc: lpc: add support for lpc mapping and copying
The lpc handler object now handles copying the data after the window is
mapped, but the hardware specific pieces still play in dealing with the
driver directly.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I2f448411fd4ef9b61b5d1158915c70902b16666b
diff --git a/lpc_aspeed.hpp b/lpc_aspeed.hpp
index 9300efd..ac87c22 100644
--- a/lpc_aspeed.hpp
+++ b/lpc_aspeed.hpp
@@ -31,12 +31,13 @@
LpcMapperAspeed(LpcMapperAspeed&&) = default;
LpcMapperAspeed& operator=(LpcMapperAspeed&&) = default;
+ /* throws MapperException */
+ MemorySet open() override;
+
void close() override;
- std::pair<std::uint32_t, std::uint32_t>
- mapWindow(std::uint32_t address, std::uint32_t length) override;
-
- std::vector<std::uint8_t> copyFrom(std::uint32_t length) override;
+ WindowMapResult mapWindow(std::uint32_t address,
+ std::uint32_t length) override;
/**
* Attempt to mmap the region.