]> git.ozlabs.org Git - petitboot/blobdiff - lib/pb-protocol/pb-protocol.c
Add boot command structure to petitboot protocol description
[petitboot] / lib / pb-protocol / pb-protocol.c
index 54dfbf4e1f4e9469f627351268447f426d6afd9e..1d1a84b8901a3069c6a957382b992b395dc7b7f4 100644 (file)
  * action = 0x2: device remove message
  *  payload:
  *   4-byte len, id
  * 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,
  */
 
 void pb_protocol_dump_device(const struct device *dev, const char *text,
@@ -210,6 +218,7 @@ int pb_protocol_serialise_device(const struct device *dev, char *buf, int buf_le
        }
 
        assert(pos <= buf + buf_len);
        }
 
        assert(pos <= buf + buf_len);
+       (void)buf_len;
 
        return 0;
 }
 
        return 0;
 }