aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2014-11-13 17:16:03 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-12-02 18:38:04 +1100
commitf8a0bb99bb6879124f153a161339bbfdef2049bf (patch)
tree2b38b3d7323a76f24d5477f63c4a9fb2ffdee6a5 /core
parent89348d6f95a3dff8ccc1d51c132b524d60c1b1eb (diff)
downloadskiboot-f8a0bb99bb6879124f153a161339bbfdef2049bf.zip
skiboot-f8a0bb99bb6879124f153a161339bbfdef2049bf.tar.gz
skiboot-f8a0bb99bb6879124f153a161339bbfdef2049bf.tar.bz2
ipmi/bt: Enable adding messages to the start of the queue
By default new ipmi messages are added to the end of the transmission queue. However sometimes it is necessary to add messages to the start of the queue. This patch adds a new ipmi function that adds messages to the start of the transmission queue. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r--core/ipmi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/ipmi.c b/core/ipmi.c
index 32f1f4d..14c35f3 100644
--- a/core/ipmi.c
+++ b/core/ipmi.c
@@ -64,6 +64,11 @@ struct ipmi_msg *ipmi_mkmsg(int interface, uint32_t code,
return msg;
}
+int ipmi_queue_msg_head(struct ipmi_msg *msg)
+{
+ return msg->backend->queue_msg_head(msg);
+}
+
int ipmi_queue_msg(struct ipmi_msg *msg)
{
/* Here we could choose which interface to use if we want to support