aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2015-02-04 16:07:45 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-09 13:55:26 +1100
commitc5a06a551ef55468e7bc46615f71f4ee4dbeaa02 (patch)
treef701ba60986781f2c28210081c37ad1371ffde66 /include
parente8b2e4ab0683dbbdf975c96a22c374d05dac8d90 (diff)
downloadskiboot-c5a06a551ef55468e7bc46615f71f4ee4dbeaa02.zip
skiboot-c5a06a551ef55468e7bc46615f71f4ee4dbeaa02.tar.gz
skiboot-c5a06a551ef55468e7bc46615f71f4ee4dbeaa02.tar.bz2
ipmi: Add support for synchronous message sending
This patch adds support for sending ipmi messages synchronously. This is necessary to allow messages to be sent during skiboot initialisation as interrupt servicing/polling is controlled by the host operating system which is not yet running. Signed-off-by: Alistair Popple <alistair@popple.id.au> Reviewed-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/ipmi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ipmi.h b/include/ipmi.h
index bbeae5a..5660704 100644
--- a/include/ipmi.h
+++ b/include/ipmi.h
@@ -176,6 +176,10 @@ int ipmi_queue_msg(struct ipmi_msg *msg);
/* Add an ipmi message to the start of the queue */
int ipmi_queue_msg_head(struct ipmi_msg *msg);
+/* Synchronously send an ipmi message. This won't return until the
+ * messages callback has been called. */
+void ipmi_queue_msg_sync(struct ipmi_msg *msg);
+
/* Process a completed message */
void ipmi_cmd_done(uint8_t cmd, uint8_t netfn, uint8_t cc, struct ipmi_msg *msg);