]> git.ozlabs.org Git - petitboot/blobdiff - ui/common/ui-system.h
Add initial dtb support
[petitboot] / ui / common / ui-system.h
index 63d1a92d2374166cfb51ffbfa64f5a487adb3869..5ce501af81e1b9dddc5ca92d22c888fb5c75cf69 100644 (file)
 #if !defined(_PB_UI_SYSTEM_H)
 #define _PB_UI_SYSTEM_H
 
-#include "pb-protocol/pb-protocol.h"
+#include <stdint.h>
+
 #include "system/system.h"
+#include "types/types.h"
 #include "ui/common/timer.h"
+#include "ui/common/discover-client.h"
 
 #include <signal.h>
 
-struct pb_kexec_data {
-       char *image;
-       char *initrd;
-       char *args;
-};
-
-int pb_run_kexec(const struct pb_kexec_data *kd, int dry_run);
 int pb_start_daemon(void);
 
 unsigned int pb_elf_hash(const char *str);
@@ -45,7 +41,7 @@ static inline uint32_t pb_opt_hash(const struct device *dev,
 
 struct pb_opt_data {
        const char *name;
-       struct pb_kexec_data *kd;
+       struct pb_boot_data *bd;
 
        /* optional data */
        const struct device *dev;