Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* action = 0x2: device remove message
* payload:
* 4-byte len, id
+ *
+ * action = 0x3: boot
+ * payload:
+ * 4-byte len, boot option id
+ * 4-byte len, boot_image_file
+ * 4-byte len, initrd_file
+ * 4-byte len, boot_args
+ *
*/
void pb_protocol_dump_device(const struct device *dev, const char *text,
enum pb_protocol_action {
PB_PROTOCOL_ACTION_ADD = 0x1,
PB_PROTOCOL_ACTION_REMOVE = 0x2,
+ PB_PROTOCOL_ACTION_BOOT = 0x3,
};
struct pb_protocol_message {
void *ui_info;
};
+struct boot_command {
+ char *option_id;
+ char *boot_image_file;
+ char *initrd_file;
+ char *boot_args;
+};
+
#endif /* _TYPES_H */