tool: LPC data handler needs an address and length
The host needs to have memory set aside for this purpose, and this
enables the caller to provide those values.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: If40ec3b08bd1932cba91d3f770c7fde6f280463d
diff --git a/tools/lpc.hpp b/tools/lpc.hpp
index bdcf7be..7343648 100644
--- a/tools/lpc.hpp
+++ b/tools/lpc.hpp
@@ -22,9 +22,10 @@
{
public:
LpcDataHandler(ipmiblob::BlobInterface* blob, HostIoInterface* io,
+ long address, long length,
const internal::Sys* sys = &internal::sys_impl) :
blob(blob),
- io(io), sys(sys){};
+ io(io), address(address), length(length), sys(sys){};
bool sendContents(const std::string& input, std::uint16_t session) override;
ipmi_flash::FirmwareBlobHandler::UpdateFlags supportedType() const override
@@ -35,6 +36,8 @@
private:
ipmiblob::BlobInterface* blob;
HostIoInterface* io;
+ long address;
+ long length;
const internal::Sys* sys;
};