oem ibm: support reading LIDs based on type
This commit reads the LIDs requested by Host. Host
sends request as T or P side. This commit evaluates the
current boot side and reads the appropriate LIDs.
Also this commit stores the image LIDs sent by Host
during an inband code update
Change-Id: Ia4bae68fa95f19bc228ef7002493d54abab3dc93
Signed-off-by: Sampa Misra <sampmisr@in.ibm.com>
diff --git a/oem/ibm/libpldmresponder/file_io_type_pel.hpp b/oem/ibm/libpldmresponder/file_io_type_pel.hpp
index 90d012f..fb01b3e 100644
--- a/oem/ibm/libpldmresponder/file_io_type_pel.hpp
+++ b/oem/ibm/libpldmresponder/file_io_type_pel.hpp
@@ -23,13 +23,19 @@
{}
virtual int writeFromMemory(uint32_t offset, uint32_t length,
- uint64_t address);
+ uint64_t address,
+ oem_platform::Handler* /*oemPlatformHandler*/);
+
virtual int readIntoMemory(uint32_t offset, uint32_t& length,
- uint64_t address);
- virtual int read(uint32_t offset, uint32_t& length, Response& response);
+ uint64_t address,
+ oem_platform::Handler* /*oemPlatformHandler*/);
+
+ virtual int read(uint32_t offset, uint32_t& length, Response& response,
+ oem_platform::Handler* /*oemPlatformHandler*/);
virtual int write(const char* /*buffer*/, uint32_t /*offset*/,
- uint32_t& /*length*/)
+ uint32_t& /*length*/,
+ oem_platform::Handler* /*oemPlatformHandler*/)
{
return PLDM_ERROR_UNSUPPORTED_PLDM_CMD;
}