summaryrefslogtreecommitdiff
path: root/firmware/lib/include/vboot_ui_legacy_wilco.h
blob: d6b779659a91306456ba8822b81ef02a5c83424b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Copyright 2020 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.
 *
 * Wilco-specific feature support for vboot_ui
 */

#ifndef VBOOT_REFERENCE_VBOOT_UI_WILCO_H_
#define VBOOT_REFERENCE_VBOOT_UI_WILCO_H_

/*
 * User interface for setting the vendor data in VPD
 */
vb2_error_t vb2_vendor_data_ui(struct vb2_context *ctx);

/*
 * Determine whether the user has pressed the keys to enter diagnostics mode
 */
vb2_error_t vb2_check_diagnostic_key(struct vb2_context *ctx, uint32_t key);

/*
 * User interface for confirming launch of diagnostics rom
 *
 * This asks the user to confirm the launch of the diagnostics rom. The user
 * can press the power button to confirm or press escape. There is a 30-second
 * timeout which acts the same as escape.
 */
vb2_error_t vb2_diagnostics_ui(struct vb2_context *ctx);

#endif  /* VBOOT_REFERENCE_VBOOT_UI_WILCO_H_ */