tools: lpc: start implementation, send metadata
With the LPC interface, send the window information to the BMC.
Tested: Ran on test system and verified window mapped via ioctl to
driver as expected.
Change-Id: I7ffac6b52205b215fd698a574d098b505091c3d4
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/tools/lpc.hpp b/tools/lpc.hpp
index 913fc5d..9e9c8b3 100644
--- a/tools/lpc.hpp
+++ b/tools/lpc.hpp
@@ -3,9 +3,19 @@
#include "blob_interface.hpp"
#include "interface.hpp"
+#include <cstdint>
+
namespace host_tool
{
+struct LpcRegion
+{
+ /* Host LPC address at which the chunk is to be mapped. */
+ std::uint32_t address;
+ /* Size of the chunk to be mapped. */
+ std::uint32_t length;
+};
+
class LpcDataHandler : public DataInterface
{
public: