ipmi: add SET_SENSOR_READING command
authorCédric Le Goater <clg@kaod.org>
Mon, 18 Nov 2019 09:24:29 +0000 (10:24 +0100)
committerCorey Minyard <cminyard@mvista.com>
Fri, 17 Jul 2020 16:39:46 +0000 (11:39 -0500)
commite3f7320caa1cc08a9b752e555b79abd6218c7c7a
treeeef8e751096c5e8b0dd67d7f302f45181718c762
parent789101b73d93ab11f37a44c24fff44336f041345
ipmi: add SET_SENSOR_READING command

SET_SENSOR_READING is a complex IPMI command (see IPMI spec 35.17)
which enables the host software to set the reading value and the event
status of sensors supporting it.

Below is a proposal for all the operations (reading, assert, deassert,
event data) with the following limitations :

 - No event are generated for threshold-based sensors.
 - The case in which the BMC needs to generate its own events is not
   supported.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Corey Minyard <cminyard@mvista.com>
Message-Id: <20191118092429.16149-1-clg@kaod.org>
[Moved the break statement for case SENSOR_GEN_EVENT_DATA above the
 closing brace to keep the indention consistent.]
Signed-off-by: Corey Minyard <cminyard@mvista.com>
hw/ipmi/ipmi_bmc_sim.c