From 8ed28879229b62f3860286b2b1985af713d3e05a Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 31 Oct 2018 09:53:05 -0600 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1310794 Reviewed-by: Julius Werner --- firmware/lib/include/vboot_kernel.h | 10 ---------- firmware/lib/include/vboot_ui_common.h | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 firmware/lib/include/vboot_ui_common.h (limited to 'firmware/lib/include') 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_ */ -- cgit v1.2.1