offload: Moved existing pldm offload as oem/ibm command
Currently used host mctp end point id is ibm specific and also
the used effecter id (0x05) is for phyp and "SetNumericEffecterValue"
pldm command is common so, changing existing pldm offload implementation
into oem based and added default pldm offload interface as well.
Signed-off-by: Ramesh Iyyar <rameshi1@in.ibm.com>
Change-Id: I8a401e03d29f9245dd54577b8b7b1d87d4a13d18
diff --git a/host-transport-extensions/pldm/default/meson.build b/host-transport-extensions/pldm/default/meson.build
new file mode 100644
index 0000000..0ddd8b5
--- /dev/null
+++ b/host-transport-extensions/pldm/default/meson.build
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0
+
+phosphor_dump_manager_sources += [
+ 'host-transport-extensions/pldm/default/pldm_interface.cpp'
+]
diff --git a/host-transport-extensions/pldm/default/pldm_interface.cpp b/host-transport-extensions/pldm/default/pldm_interface.cpp
new file mode 100644
index 0000000..57658af
--- /dev/null
+++ b/host-transport-extensions/pldm/default/pldm_interface.cpp
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: Apache-2.0
+
+namespace phosphor
+{
+namespace dump
+{
+namespace host
+{
+/**
+ * @brief Initiate offload of the dump with provided dump source ID
+ *
+ * @param[in] id - The Dump Source ID.
+ *
+ */
+void requestOffload(uint32_t)
+{
+ throw std::runtime_error("PLDM: Hostdump offload method not specified");
+}
+} // namespace host
+} // namespace dump
+} // namespace phosphor