aboutsummaryrefslogtreecommitdiff
path: root/include/ipmi.h
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2014-09-15 10:58:08 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-10-01 14:25:26 +1000
commit7f414dbb7f7851eccbe98875b1a2cb155b592f3e (patch)
treefbc80310765c4ad1ef7be80bec7274e1dc3b47d9 /include/ipmi.h
parentd3c3e88c3111ffc10eed29fbf8cc524b7a465cb2 (diff)
downloadskiboot-7f414dbb7f7851eccbe98875b1a2cb155b592f3e.zip
skiboot-7f414dbb7f7851eccbe98875b1a2cb155b592f3e.tar.gz
skiboot-7f414dbb7f7851eccbe98875b1a2cb155b592f3e.tar.bz2
ipmi/bt: Improve message validation and allow out-of-order command responses
This patch adds validation of the ipmi cmd and netfn numbers returned by the bmc. It also ensures the sequence number is correct by searching the outstanding message queue for the corresponding sequence number. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/ipmi.h')
-rw-r--r--include/ipmi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ipmi.h b/include/ipmi.h
index 6a438fb..9543515 100644
--- a/include/ipmi.h
+++ b/include/ipmi.h
@@ -151,7 +151,7 @@ struct ipmi_msg *ipmi_mkmsg(int interface, uint32_t code,
int ipmi_queue_msg(struct ipmi_msg *msg);
/* Process a completed message */
-void ipmi_cmd_done(struct ipmi_msg *msg);
+void ipmi_cmd_done(uint8_t cmd, uint8_t netfn, uint8_t cc, struct ipmi_msg *msg);
/* 28.3 Chassis Control Command. Changes the power state of the P8. */
int ipmi_chassis_control(uint8_t request);