discover: Add ipmi module
[petitboot] / discover / platform-powerpc.c
index 7c34939f14197ae4dd84052b8f155f7ecf8829d1..e5dac9efcc8e4b2b8a8f7ef540fe78e5232e8e04 100644 (file)
@@ -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];