mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-15 20:37:33 +00:00
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>
39 lines
1.4 KiB
C
39 lines
1.4 KiB
C
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*
|
|
* Display functions used in kernel selection.
|
|
*/
|
|
|
|
#ifndef VBOOT_REFERENCE_VBOOT_DISPLAY_H_
|
|
#define VBOOT_REFERENCE_VBOOT_DISPLAY_H_
|
|
|
|
#include "vboot_api.h"
|
|
#include "vboot_nvstorage.h"
|
|
|
|
VbError_t VbDisplayScreenFromGBB(VbCommonParams* cparams, uint32_t screen,
|
|
VbNvContext *vncptr);
|
|
VbError_t VbDisplayScreen(VbCommonParams* cparams, uint32_t screen, int force,
|
|
VbNvContext *vncptr);
|
|
VbError_t VbDisplayDebugInfo(VbCommonParams* cparams, VbNvContext *vncptr);
|
|
VbError_t VbCheckDisplayKey(VbCommonParams* cparams, uint32_t key,
|
|
VbNvContext *vncptr);
|
|
|
|
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_ */
|
|
|