diff options
author | Simon Glass <sjg@chromium.org> | 2018-10-31 09:53:05 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-11-01 02:17:43 -0700 |
commit | 8ed28879229b62f3860286b2b1985af713d3e05a (patch) | |
tree | 9a8c1c7e6f35c6eefba32214690202181621286c /firmware/lib/include | |
parent | 90407e9bc1f77de570aad2d45beb73db5ee8382b (diff) | |
download | vboot-8ed28879229b62f3860286b2b1985af713d3e05a.tar.gz |
Create a new file for common vboot UI functions
Rather than having vboot_ui be the common file between that and
vboot_ui_menu, create a new file.
For now just move over vb2_error_beep(). The other common functions are
being removed in future CLs.
BUG=chromium:837018
BRANCH=none
TEST=FEATURES=test emerge-grunt --nodeps vboot_reference
Change-Id: Iff6917642ff79ea0b5cce60b383876b6f7174d20
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1310794
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'firmware/lib/include')
-rw-r--r-- | firmware/lib/include/vboot_kernel.h | 10 | ||||
-rw-r--r-- | firmware/lib/include/vboot_ui_common.h | 21 |
2 files changed, 21 insertions, 10 deletions
diff --git a/firmware/lib/include/vboot_kernel.h b/firmware/lib/include/vboot_kernel.h index eaddcea5..15c27101 100644 --- a/firmware/lib/include/vboot_kernel.h +++ b/firmware/lib/include/vboot_kernel.h @@ -122,14 +122,4 @@ void vb2_exit_altfw(void); */ void vb2_try_alt_fw(int allowed, int altfw_num); -enum vb2_beep_type { - VB_BEEP_FAILED, /* Permitted but the operation failed */ - VB_BEEP_NOT_ALLOWED, /* Operation disabled by user setting */ -}; - -/** - * Emit beeps to indicate an error - */ -void vb2_error_beep(enum vb2_beep_type beep); - #endif /* VBOOT_REFERENCE_VBOOT_KERNEL_H_ */ diff --git a/firmware/lib/include/vboot_ui_common.h b/firmware/lib/include/vboot_ui_common.h new file mode 100644 index 00000000..aa6a67e0 --- /dev/null +++ b/firmware/lib/include/vboot_ui_common.h @@ -0,0 +1,21 @@ +/* Copyright 2018 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. + * + * Common code used by both vboot_ui and vboot_ui_menu. + */ + +#ifndef VBOOT_REFERENCE_VBOOT_UI_COMMON_H_ +#define VBOOT_REFERENCE_VBOOT_UI_COMMON_H_ + +enum vb2_beep_type { + VB_BEEP_FAILED, /* Permitted but the operation failed */ + VB_BEEP_NOT_ALLOWED, /* Operation disabled by user setting */ +}; + +/** + * Emit beeps to indicate an error + */ +void vb2_error_beep(enum vb2_beep_type beep); + +#endif /* VBOOT_REFERENCE_VBOOT_UI_COMMON_H_ */ |