diff options
author | Xo Wang <xow@google.com> | 2017-08-09 15:34:16 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-09-25 09:59:48 -0700 |
commit | f542e8b0ecedb54fd4e1fbd7a8c2a9f73098dcec (patch) | |
tree | 898a92a6c85cee75b28863bcaef3e5a80317e4d1 /host-ipmid | |
parent | ba19c184dffca849007746ebb41e365bd6c60efe (diff) | |
download | phosphor-host-ipmid-f542e8b0ecedb54fd4e1fbd7a8c2a9f73098dcec.tar.gz phosphor-host-ipmid-f542e8b0ecedb54fd4e1fbd7a8c2a9f73098dcec.zip |
apphandler: Implement Get/Set System Info Parameter
Implement Get System Info Parameter using the parameter storage code to
back the string-type parameters. Supports up to 255 chunks (known as
"sets" in the spec) for those parameters. Currently, iterated reads by
chunk of a string parameter will repeatedly invoke that parameter's
callback, which can result in chunks being incoherent with each other if
the string changes between invocations. This is noted in a TODO comment.
Stub out Set System Info Parameter. Full implementation for that is
pending support for read-only flags in the parameter storage code.
Change-Id: If0a9d807725ccf1f1f62e931010024841575469c
Signed-off-by: Xo Wang <xow@google.com>
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'host-ipmid')
-rw-r--r-- | host-ipmid/ipmid-api.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/host-ipmid/ipmid-api.h b/host-ipmid/ipmid-api.h index a085270..820776a 100644 --- a/host-ipmid/ipmid-api.h +++ b/host-ipmid/ipmid-api.h @@ -114,6 +114,8 @@ enum ipmi_return_codes IPMI_CC_OK = 0x00, IPMI_DCMI_CC_NO_ACTIVE_POWER_LIMIT = 0x80, IPMI_WDOG_CC_NOT_INIT = 0x80, + IPMI_CC_SYSTEM_INFO_PARAMETER_NOT_SUPPORTED = 0x80, + IPMI_CC_SYSTEM_INFO_PARAMETER_SET_READ_ONLY = 0x82, IPMI_CC_BUSY = 0xC0, IPMI_CC_INVALID = 0xC1, IPMI_CC_INVALID_RESERVATION_ID = 0xC5, |