summaryrefslogtreecommitdiffstats
path: root/discover/ipmi.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-12-08 14:39:14 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-12-15 10:38:48 +0800
commit9dec4ac0431895f027cfa72e8e0656d3d69e3e63 (patch)
tree608b572b1c40d797e0d1e4e6b4d73e17fe12d994 /discover/ipmi.h
parente330e3f5adf78d3ba77217995a4bc3cd1fd16f4c (diff)
downloadtalos-petitboot-9dec4ac0431895f027cfa72e8e0656d3d69e3e63.tar.gz
talos-petitboot-9dec4ac0431895f027cfa72e8e0656d3d69e3e63.zip
discover: Add ipmi module
Move our IPMI-specific definitions to a separate header, and a mostly-empty ipmi.c file. We'll populate this with IPMI functionality in later changes. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/ipmi.h')
-rw-r--r--discover/ipmi.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/discover/ipmi.h b/discover/ipmi.h
new file mode 100644
index 0000000..0ed6068
--- /dev/null
+++ b/discover/ipmi.h
@@ -0,0 +1,18 @@
+#ifndef _IPMI_H
+#define _IPMI_H
+
+#include <stdbool.h>
+#include <stdint.h>
+
+enum ipmi_bootdev {
+ IPMI_BOOTDEV_NONE = 0x0,
+ IPMI_BOOTDEV_NETWORK = 0x1,
+ IPMI_BOOTDEV_DISK = 0x2,
+ IPMI_BOOTDEV_SAFE = 0x3,
+ IPMI_BOOTDEV_CDROM = 0x5,
+ IPMI_BOOTDEV_SETUP = 0x6,
+};
+
+bool ipmi_present(void);
+
+#endif /* _IPMI_H */
OpenPOWER on IntegriCloud