ipmi: introduce an ipmi_bmc_sdr_find() API
commit7fabcdb942c2eefa3a40f4cc5ebae25cc13f6ddc
authorCédric Le Goater <clg@kaod.org>
Wed, 5 Apr 2017 12:41:33 +0000 (5 14:41 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 26 Apr 2017 02:41:55 +0000 (26 12:41 +1000)
tree3a617fcfe70e20f62625ec25e8a0a3388bc6b071
parent540c07d3453c1a82dd66608bcb2cde79ea91b192
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 <clg@kaod.org>
Acked-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ipmi/ipmi_bmc_sim.c
include/hw/ipmi/ipmi.h