oem-ibm: add readFileByType handler
Add a handler for file type 'LID', to be able to read LID files over the
LPC channel.
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Change-Id: I9db77f78b0aa4e289fb0ab940121569b431f4dfe
diff --git a/oem/ibm/libpldmresponder/file_io_type_pel.cpp b/oem/ibm/libpldmresponder/file_io_type_pel.cpp
index 014511c..01919b9 100644
--- a/oem/ibm/libpldmresponder/file_io_type_pel.cpp
+++ b/oem/ibm/libpldmresponder/file_io_type_pel.cpp
@@ -25,12 +25,18 @@
using namespace phosphor::logging;
-int PelHandler::readIntoMemory(uint32_t /*offset*/, uint32_t /*length*/,
+int PelHandler::readIntoMemory(uint32_t /*offset*/, uint32_t& /*length*/,
uint64_t /*address*/)
{
return PLDM_ERROR_UNSUPPORTED_PLDM_CMD;
}
+int PelHandler::read(uint32_t /*offset*/, uint32_t& /*length*/,
+ Response& /*response*/)
+{
+ return PLDM_ERROR_UNSUPPORTED_PLDM_CMD;
+}
+
int PelHandler::writeFromMemory(uint32_t offset, uint32_t length,
uint64_t address)
{