aboutsummaryrefslogtreecommitdiff
path: root/include/bt.h
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2014-09-09 15:57:27 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-10-01 14:23:06 +1000
commitf671e7f9decd909afa784f974bbceb07189f38f4 (patch)
tree0480bd455477c242eca06ca49abd284338117c10 /include/bt.h
parent69a833b6e2fc1636e25539ce58bde6e72f1c3bec (diff)
downloadskiboot-f671e7f9decd909afa784f974bbceb07189f38f4.zip
skiboot-f671e7f9decd909afa784f974bbceb07189f38f4.tar.gz
skiboot-f671e7f9decd909afa784f974bbceb07189f38f4.tar.bz2
ipmi: Refactored ipmi layer to use generic backend
The initial implementation of the ipmi stack was still tightly coupled with the backend (in this case bt). This patch refactors the ipmi code to use a generic backend device. The core ipmi messaging functionality and the implementation of specific commands has also been split into different files. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/bt.h')
-rw-r--r--include/bt.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/include/bt.h b/include/bt.h
index 5f8a91e..1763d9f 100644
--- a/include/bt.h
+++ b/include/bt.h
@@ -17,21 +17,7 @@
#ifndef __BT_H
#define __BT_H
-#include <ipmi.h>
-
/* Initialise the BT interface */
-void bt_init(void (*ipmi_cmd_done)(struct ipmi_msg *));
-
-/* Allocate an BT-IPMI message */
-struct ipmi_msg *bt_alloc_ipmi_msg(size_t request_size, size_t response_size);
-
-/* Free a BT-IPMI message */
-void bt_free_ipmi_msg(struct ipmi_msg *ipmi_msg);
-
-/* Add an IPMI message to the BT queue and wait for a resposne */
-int bt_add_ipmi_msg_wait(struct ipmi_msg *msg);
-
-/* Remove an IPMI message from the BT queue */
-void bt_del_ipmi_msg(struct ipmi_msg *ipmi_msg);
+void bt_init(void);
#endif