blob: b6892cb9507b39a8af0c08a843782d3bfc5f4339 [file] [log] [blame]
/* 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.
*
* User interfaces for developer and recovery mode menus.
*/
#include "2api.h"
#include "2common.h"
#include "2ui.h"
/*****************************************************************************/
/* Entry points */
vb2_error_t vb2_developer_menu(struct vb2_context *ctx)
{
/* TODO(roccochen): Init, wait for user, and boot. */
vb2ex_display_ui(VB2_SCREEN_BLANK, 0);
while (1);
return VB2_SUCCESS;
}
vb2_error_t vb2_broken_recovery_menu(struct vb2_context *ctx)
{
/* TODO(roccochen): Init and wait for user to reset or shutdown. */
vb2ex_display_ui(VB2_SCREEN_BLANK, 0);
while (1);
return VB2_SUCCESS;
}
vb2_error_t vb2_manual_recovery_menu(struct vb2_context *ctx)
{
/* TODO(roccochen): Init and wait for user. */
vb2ex_display_ui(VB2_SCREEN_BLANK, 0);
while (1);
return VB2_SUCCESS;
}