diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-02-27 09:09:47 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-04-15 14:54:21 +0800 |
commit | c25601a71b0951225691aa2edc389826f7f3836c (patch) | |
tree | a0378983f0659e77b018a8a5e36e63d0e4b86994 | |
parent | 1b0b59295d0500764c5096753f7cd11bf3ab5df4 (diff) | |
download | talos-petitboot-c25601a71b0951225691aa2edc389826f7f3836c.tar.gz talos-petitboot-c25601a71b0951225691aa2edc389826f7f3836c.zip |
Add boot command structure to petitboot protocol description
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r-- | lib/pb-protocol/pb-protocol.c | 8 | ||||
-rw-r--r-- | lib/pb-protocol/pb-protocol.h | 1 | ||||
-rw-r--r-- | lib/types/types.h | 7 |
3 files changed, 16 insertions, 0 deletions
diff --git a/lib/pb-protocol/pb-protocol.c b/lib/pb-protocol/pb-protocol.c index fdf2447..1d1a84b 100644 --- a/lib/pb-protocol/pb-protocol.c +++ b/lib/pb-protocol/pb-protocol.c @@ -38,6 +38,14 @@ * 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, diff --git a/lib/pb-protocol/pb-protocol.h b/lib/pb-protocol/pb-protocol.h index 07ef7e1..beb18cc 100644 --- a/lib/pb-protocol/pb-protocol.h +++ b/lib/pb-protocol/pb-protocol.h @@ -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 { diff --git a/lib/types/types.h b/lib/types/types.h index acd9e3e..1843557 100644 --- a/lib/types/types.h +++ b/lib/types/types.h @@ -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 */ |