diff options
author | Alistair Popple <alistair@popple.id.au> | 2014-08-12 17:59:39 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-08-13 15:42:27 +1000 |
commit | 391291ba265ab36819ea10b2459bcf56468b07b3 (patch) | |
tree | 939f1869af96f58b1428214de5f4a1b052fdb71e /include/bt.h | |
parent | 793b06d73e1543350fc7c4c7c615c594ec1ddd62 (diff) | |
download | skiboot-391291ba265ab36819ea10b2459bcf56468b07b3.zip skiboot-391291ba265ab36819ea10b2459bcf56468b07b3.tar.gz skiboot-391291ba265ab36819ea10b2459bcf56468b07b3.tar.bz2 |
ipmi: Add a base IPMI stack with a BT driver
This patch adds a basic IPMI layer to the sapphire core and support
for a BT IPMI interface as found on the Aspeed BMC of the Palmetto
platform
[ Changed the compatible property -- BenH ]
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.h | 31 |
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 |