mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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>
This commit is contained in:
parent
540c07d345
commit
7fabcdb942
2 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue