oem/libpldm: Implement requester flow for GetAlertStatus
For the requester, need to encode reqeuest data and send responder,
waiting for recive responder data to decode, so need to implement
encode/decode(Requester flow only) for GetAlertStatus.
The GetAlertStatus is a custom oem command to report enclosure ids of
system, alert status and flags, and config ID.
Request Data:
Type - Request Data
uint8 - Version of the command/response format. 0x0 for this format.
Response Data:
Type - Response Data
enum8 - completionCode.value{PLDM_BASE_CODES, UNSUPPORTED_FORMAT_VERSION=0x81}
uint32 - Enclosure ID, AlertStatus, Flags, Config ID.(rack entry)
uint32 - Enclosure ID, AlertStatus, Flags, Config ID.(pri cec node)
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I0a3d1d8f79fe80194a0b2208bce090783ad74f0b
diff --git a/libpldm/meson.build b/libpldm/meson.build
index b96503f..7c072a2 100644
--- a/libpldm/meson.build
+++ b/libpldm/meson.build
@@ -24,10 +24,12 @@
if get_option('oem-ibm').enabled()
headers += [
- '../oem/ibm/libpldm/file_io.h'
+ '../oem/ibm/libpldm/file_io.h',
+ '../oem/ibm/libpldm/host.h'
]
sources += [
- '../oem/ibm/libpldm/file_io.c'
+ '../oem/ibm/libpldm/file_io.c',
+ '../oem/ibm/libpldm/host.c'
]
libpldm_headers += ['../oem/ibm']
endif