From 7fabcdb942c2eefa3a40f4cc5ebae25cc13f6ddc Mon Sep 17 00:00:00 2001 From: Cédric Le Goater Date: Wed, 5 Apr 2017 14:41:33 +0200 Subject: ipmi: introduce an ipmi_bmc_sdr_find() API This patch exposes a new IPMI routine to query a sdr entry from the sdr table maintained by the IPMI BMC simulator. The API is very similar to the internal sdr_find_entry() routine and should be used the same way to query one or all sdrs. A typical use would be to loop on the sdrs to build nodes of a device tree. Signed-off-by: Cédric Le Goater Acked-by: Corey Minyard Signed-off-by: David Gibson --- include/hw/ipmi/ipmi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/hw/ipmi') diff --git a/include/hw/ipmi/ipmi.h b/include/hw/ipmi/ipmi.h index 91b83b5bb0..0d36cfc6b7 100644 --- a/include/hw/ipmi/ipmi.h +++ b/include/hw/ipmi/ipmi.h @@ -259,4 +259,6 @@ struct ipmi_sdr_compact { typedef uint8_t ipmi_sdr_compact_buffer[sizeof(struct ipmi_sdr_compact)]; +int ipmi_bmc_sdr_find(IPMIBmc *b, uint16_t recid, + const struct ipmi_sdr_compact **sdr, uint16_t *nextrec); #endif -- cgit v1.2.3-55-g7522