Add boot command structure to petitboot protocol description
authorJeremy Kerr <jk@ozlabs.org>
Wed, 27 Feb 2013 01:09:47 +0000 (09:09 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 15 Apr 2013 06:54:21 +0000 (14:54 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
lib/pb-protocol/pb-protocol.c
lib/pb-protocol/pb-protocol.h
lib/types/types.h

index fdf24471377160e9a3c51abb87c4197e4e034e1c..1d1a84b8901a3069c6a957382b992b395dc7b7f4 100644 (file)
  * 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,
index 07ef7e15f0a1cbe2bf4c501bf3242a947a343793..beb18cc2e0f11f6e07fdc0f1456511e3b1ee6233 100644 (file)
@@ -14,6 +14,7 @@
 enum pb_protocol_action {
        PB_PROTOCOL_ACTION_ADD          = 0x1,
        PB_PROTOCOL_ACTION_REMOVE       = 0x2,
+       PB_PROTOCOL_ACTION_BOOT         = 0x3,
 };
 
 struct pb_protocol_message {
index acd9e3ef74c6fe12f3f98d992fecd5d148228656..1843557728814111383342402c64c98f46974514 100644 (file)
@@ -29,4 +29,11 @@ struct boot_option {
        void            *ui_info;
 };
 
+struct boot_command {
+       char *option_id;
+       char *boot_image_file;
+       char *initrd_file;
+       char *boot_args;
+};
+
 #endif /* _TYPES_H */