diff options
author | Patrick Venture <venture@google.com> | 2019-01-17 11:37:40 -0800 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-01-17 11:40:57 -0800 |
commit | 517710d3d3e7202b6dce81e3a128e9242377a138 (patch) | |
tree | 611df5dc097b8b0912a47e8b0ab82172dc91f391 /window_hw_interface.hpp | |
parent | 5251da9898a9ef682d6749a26ad4bbafadb7cd3d (diff) | |
download | phosphor-ipmi-flash-517710d3d3e7202b6dce81e3a128e9242377a138.tar.gz phosphor-ipmi-flash-517710d3d3e7202b6dce81e3a128e9242377a138.zip |
hardware interface: add copyFrom
Add a copyFrom method to the hardware window interface and empty
implementations of it within the current lpc handlers.
Change-Id: If2ab6a47763387721edd1a0c451ed8c6087eb475
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'window_hw_interface.hpp')
-rw-r--r-- | window_hw_interface.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/window_hw_interface.hpp b/window_hw_interface.hpp index a9de4dd..d00bfcd 100644 --- a/window_hw_interface.hpp +++ b/window_hw_interface.hpp @@ -2,6 +2,7 @@ #include <cstdint> #include <utility> +#include <vector> namespace blobs { @@ -29,6 +30,14 @@ class HardwareMapperInterface */ virtual std::pair<std::uint32_t, std::uint32_t> mapWindow(std::uint32_t address, std::uint32_t length) = 0; + + /** + * Returns the bytes from the mapped window. + * + * @param[in] length - the number of bytes to copy. + * @return the bytes copied out of the region. + */ + virtual std::vector<std::uint8_t> copyFrom(std::uint32_t length) = 0; }; } // namespace blobs |