summaryrefslogtreecommitdiffstats
path: root/discover/platform-powerpc.c
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/platform-powerpc.c
parente330e3f5adf78d3ba77217995a4bc3cd1fd16f4c (diff)
downloadpetitboot-9dec4ac0431895f027cfa72e8e0656d3d69e3e63.zip
petitboot-9dec4ac0431895f027cfa72e8e0656d3d69e3e63.tar.gz
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/platform-powerpc.c')
-rw-r--r--discover/platform-powerpc.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/discover/platform-powerpc.c b/discover/platform-powerpc.c
index 7c34939..e5dac9e 100644
--- a/discover/platform-powerpc.c
+++ b/discover/platform-powerpc.c
@@ -16,6 +16,7 @@
#include <process/process.h>
#include "platform.h"
+#include "ipmi.h"
static const char *partition = "common";
static const char *sysparams_dir = "/sys/firmware/opal/sysparams/";
@@ -582,16 +583,6 @@ static void set_exclusive_devtype(struct config *config,
config->boot_priorities[1].priority = -1;
}
-/* bootdev options that we recognise */
-enum ipmi_bootdev {
- IPMI_BOOTDEV_NONE = 0x00,
- IPMI_BOOTDEV_NETWORK = 0x01,
- IPMI_BOOTDEV_DISK = 0x2,
- IPMI_BOOTDEV_SAFE = 0x3,
- IPMI_BOOTDEV_CDROM = 0x5,
- IPMI_BOOTDEV_SETUP = 0x6,
-};
-
static int read_bootdev_sysparam(const char *name, uint8_t *val)
{
uint8_t buf[2];
OpenPOWER on IntegriCloud