aboutsummaryrefslogtreecommitdiff
path: root/include/ipmi.h
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-10-09 00:32:27 -0700
committerStewart Smith <stewart@linux.ibm.com>2018-10-10 18:09:25 -0500
commitd4048420962097ce5b46167b2715b458142d394f (patch)
treeb6090d2123f2e4d6460629d79ca6cfb9b8495bb4 /include/ipmi.h
parent527286706ab1861774742402c4e69e1b3b6f6cde (diff)
downloadskiboot-d4048420962097ce5b46167b2715b458142d394f.zip
skiboot-d4048420962097ce5b46167b2715b458142d394f.tar.gz
skiboot-d4048420962097ce5b46167b2715b458142d394f.tar.bz2
ipmi: Introduce registration for SEL command handlers
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include/ipmi.h')
-rw-r--r--include/ipmi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ipmi.h b/include/ipmi.h
index 0acfbf5..a2735f1 100644
--- a/include/ipmi.h
+++ b/include/ipmi.h
@@ -241,6 +241,11 @@ void ipmi_register_backend(struct ipmi_backend *backend);
/* Allocate IPMI SEL panic message */
void ipmi_sel_init(void);
+/* Register SEL handler with IPMI core */
+int ipmi_sel_register(uint8_t oem_cmd,
+ void (*handler)(uint8_t data, void *context),
+ void *context);
+
/* Register rtc ipmi commands with as opal callbacks. */
void ipmi_rtc_init(void);