aboutsummaryrefslogtreecommitdiff
path: root/include/bt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bt.h')
-rw-r--r--include/bt.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/bt.h b/include/bt.h
new file mode 100644
index 0000000..4eac355
--- /dev/null
+++ b/include/bt.h
@@ -0,0 +1,31 @@
+/* Copyright 2013-2014 IBM Corp.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __BT_H
+#define __BT_H
+
+#include <ipmi.h>
+
+/* Initialise the BT interface */
+void bt_init(void (*ipmi_cmd_done)(struct 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);
+
+#endif