aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2014-09-11 15:43:52 +0930
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-10-01 14:23:06 +1000
commitd3c3e88c3111ffc10eed29fbf8cc524b7a465cb2 (patch)
treead8e6ccc73c0059faa9b201f513a5fc2c22e86a4 /include
parent1e487eb0dd97963298a5b67b0899b36c36eb8747 (diff)
downloadskiboot-d3c3e88c3111ffc10eed29fbf8cc524b7a465cb2.zip
skiboot-d3c3e88c3111ffc10eed29fbf8cc524b7a465cb2.tar.gz
skiboot-d3c3e88c3111ffc10eed29fbf8cc524b7a465cb2.tar.bz2
ipmi: Add ipmi_present API
Similar to the use of fsp_present, this is so code can safely call functions which may not work on the platform they are running on, or as protection against calling before the device is initialised. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r--include/ipmi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ipmi.h b/include/ipmi.h
index c64e1bd..6a438fb 100644
--- a/include/ipmi.h
+++ b/include/ipmi.h
@@ -18,6 +18,7 @@
#define __IPMI_H
#include <stdint.h>
+#include <stdbool.h>
/*
* IPMI codes as defined by the standard.
@@ -136,6 +137,8 @@ struct ipmi_backend {
/* Initialise the IPMI interface */
void ipmi_init(void);
+bool ipmi_present(void);
+
void ipmi_free_msg(struct ipmi_msg *msg);
struct ipmi_msg *ipmi_mkmsg_simple(uint32_t code, void *req_data, size_t req_size);