summaryrefslogtreecommitdiff
path: root/firmware/lib/include/vboot_display.h
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2011-09-23 15:14:49 -0700
committerBill Richardson <wfrichar@chromium.org>2011-09-26 13:25:26 -0700
commit25a3dbc83c3d2e9745cac7f466c541ee6215af0e (patch)
tree62f31603db80bbfd9414471f7e180672fbb257ff /firmware/lib/include/vboot_display.h
parent4313fba2fb928f662a63b7566f235291dc1455f7 (diff)
downloadvboot-25a3dbc83c3d2e9745cac7f466c541ee6215af0e.tar.gz
Make startup delay and noises simpler to change.
BUG=none TEST=manual Booted in dev-mode. All noises and delays are unchanged (2 second delay when gbb.flags is 1, 30-second with beeps at 20 seconds when gbb.flags is 0). Change-Id: I816e57c4f8f6025299851b3d42b4a350f9925994 Reviewed-on: http://gerrit.chromium.org/gerrit/8240 Reviewed-by: Randall Spangler <rspangler@chromium.org> Tested-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'firmware/lib/include/vboot_display.h')
-rw-r--r--firmware/lib/include/vboot_display.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/lib/include/vboot_display.h b/firmware/lib/include/vboot_display.h
index 8dc22606..aace9708 100644
--- a/firmware/lib/include/vboot_display.h
+++ b/firmware/lib/include/vboot_display.h
@@ -21,5 +21,18 @@ VbError_t VbCheckDisplayKey(VbCommonParams* cparams, uint32_t key,
void VbExEasterEgg(VbCommonParams* cparams, VbNvContext *vncptr);
+typedef struct VbDevMusicNote {
+ uint16_t msec;
+ uint16_t frequency;
+} __attribute__((packed)) VbDevMusicNote;
+
+typedef struct VbDevMusic {
+ uint8_t sig[4]; /* "$SND" */
+ uint32_t checksum; /* crc32 over count & all notes */
+ uint32_t count; /* number of notes */
+ VbDevMusicNote notes[1]; /* gcc allows [0], MSVC doesn't */
+ /* more VbDevMusicNotes follow immediately */
+} __attribute__((packed)) VbDevMusic;
+
#endif /* VBOOT_REFERENCE_VBOOT_DISPLAY_H_ */