summaryrefslogtreecommitdiff
path: root/firmware/include/vboot_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/vboot_api.h')
-rw-r--r--firmware/include/vboot_api.h155
1 files changed, 0 insertions, 155 deletions
diff --git a/firmware/include/vboot_api.h b/firmware/include/vboot_api.h
index d55fde2a..739019ad 100644
--- a/firmware/include/vboot_api.h
+++ b/firmware/include/vboot_api.h
@@ -252,146 +252,6 @@ vb2_error_t VbExStreamRead(VbExStream_t stream, uint32_t bytes, void *buffer);
*/
void VbExStreamClose(VbExStream_t stream);
-
-/*****************************************************************************/
-/* Display */
-
-/* Predefined (default) screens for VbExDisplayScreen(). */
-enum VbScreenType_t {
- /* Blank (clear) screen */
- VB_SCREEN_BLANK = 0,
- /* Developer - warning */
- VB_SCREEN_DEVELOPER_WARNING = 0x101,
- /* REMOVED: Developer - easter egg (0x102) */
- /* REMOVED: Recovery - remove inserted devices (0x201) */
- /* Recovery - insert recovery image */
- VB_SCREEN_RECOVERY_INSERT = 0x202,
- /* Recovery - inserted image invalid */
- VB_SCREEN_RECOVERY_NO_GOOD = 0x203,
- /* Recovery - confirm dev mode */
- VB_SCREEN_RECOVERY_TO_DEV = 0x204,
- /* Developer - confirm normal mode */
- VB_SCREEN_DEVELOPER_TO_NORM = 0x205,
- /* Please wait - programming EC */
- VB_SCREEN_WAIT = 0x206,
- /* Confirm after DEVELOPER_TO_NORM */
- VB_SCREEN_TO_NORM_CONFIRMED = 0x207,
- /* Broken screen shown after verification failure */
- VB_SCREEN_OS_BROKEN = 0x208,
- /* REMOVED: Display base screen (no icons, no text) (0x209) */
- /* Detachable Menu - Developer Warning */
- VB_SCREEN_DEVELOPER_WARNING_MENU = 0x20a,
- /* Detachable Menu - Developer Boot */
- VB_SCREEN_DEVELOPER_MENU = 0x20b,
- /* REMOVED: Detachable Menu - Recovery (0x20c) */
- /* Detachable Menu - Confirm Dev Mode */
- VB_SCREEN_RECOVERY_TO_DEV_MENU = 0x20d,
- /* Detachable Menu - Confirm Normal Mode */
- VB_SCREEN_DEVELOPER_TO_NORM_MENU = 0x20e,
- /* Detachable Menu - Languages */
- VB_SCREEN_LANGUAGES_MENU = 0x20f,
- /* Detachable Menu - Options */
- VB_SCREEN_OPTIONS_MENU = 0x210,
- /* REMOVED: Alt OS picker screen (0x211) */
- /* Alt firmware picker screen (for keyboard UI) */
- VB_SCREEN_ALT_FW_PICK = 0x212,
- /* Alt firmware menu screen (for detachable UI ) */
- VB_SCREEN_ALT_FW_MENU = 0x213,
- /* 0x300-0x350 reserved for device-specific screens */
- /* Vendor data not set warning screen */
- VB_COMPLETE_VENDOR_DATA = 0x300,
- /* Set vendor data menu screen */
- VB_SCREEN_SET_VENDOR_DATA = 0x301,
- /* Confirm vendor data menu screen */
- VB_SCREEN_CONFIRM_VENDOR_DATA = 0x302,
- /* Confirm reboot for running diagnostics rom */
- VB_SCREEN_CONFIRM_DIAG = 0x303,
-};
-
-/* Flags to control behavior of device-specific screens. */
-enum VbVendorDataFlags_t {
- /* When set display a cursor after the prompt */
- VB_VENDOR_DATA_SHOW_CURSOR = 1 << 0,
- /* When set only redraw the cursor */
- VB_VENDOR_DATA_ONLY_DRAW_CURSOR = 1 << 1,
-};
-
-/**
- * Extra data needed when displaying vendor data screens
- */
-typedef struct VbVendorData
-{
- /* Current state of the the vendor data input */
- const char *input_text;
- /* Flags (See VbVendorDataFlags_t) */
- uint32_t flags;
- /* Current confirmation selection for new vendor data */
- uint32_t selected_index;
-} VbVendorData;
-
-/**
- * Extra data that may be used when displaying a screen
- */
-typedef struct VbScreenData
-{
- union {
- VbVendorData vendor_data;
- };
-} VbScreenData;
-
-/**
- * Display a predefined screen; see VB_SCREEN_* for valid screens.
- *
- * This is a backup method of screen display, intended for use if the GBB does
- * not contain a full set of bitmaps. It is acceptable for the backup screen
- * to be simple ASCII text such as "NO GOOD" or "INSERT"; these screens should
- * only be seen during development.
- */
-vb2_error_t VbExDisplayScreen(uint32_t screen_type, uint32_t locale,
- const VbScreenData *data);
-
-/**
- * Display a predefined menu screen; see VB_SCREEN_* for valid screens.
- *
- * @param screen_type ID of screen to draw
- * @param locale language to display
- * @param selected_index Index of menu item that is currently selected.
- * @param disabled_idx_mask Bitmap for enabling/disabling certain menu items.
- * each bit corresponds to the menu item's index.
- * @param redraw_base Setting 1 will force a full redraw of the screen
- *
- * @return VB2_SUCCESS or error code on error.
- */
-vb2_error_t VbExDisplayMenu(uint32_t screen_type, uint32_t locale,
- uint32_t selected_index, uint32_t disabled_idx_mask,
- uint32_t redraw_base);
-
-/**
- * Display a string containing debug information on the screen, rendered in a
- * platform-dependent font. Should be able to handle newlines '\n' in the
- * string. Firmware must support displaying at least 20 lines of text, where
- * each line may be at least 80 characters long. If the firmware has its own
- * debug state, it may display it to the screen below this information if the
- * full_info parameter is set.
- *
- * @param info_str The debug string to display
- * @param full_info 1 if firmware should append its own info, 0 if not
- *
- * @return VB2_SUCCESS or error code on error.
- */
-vb2_error_t VbExDisplayDebugInfo(const char *info_str, int full_info);
-
-/**
- * Write vendor data to read-only VPD
- *
- * @param vendor_data_value The value of vendor data to write to VPD. The
- * string length will be exactly VENDOR_DATA_LENGTH
- * characters and null-terminated.
- *
- * @return VB2_SUCCESS or error code on error.
- */
-vb2_error_t VbExSetVendorData(const char *vendor_data_value);
-
/*****************************************************************************/
/* Keyboard and switches */
@@ -522,21 +382,6 @@ enum VbAltFwIndex_t {
*/
vb2_error_t VbExLegacy(enum VbAltFwIndex_t altfw_num);
-enum vb_altfw {
- VB_ALTFW_COUNT = 9, /* We allow 9 bootloaders, numbered 1-9 */
-};
-
-/**
- * Get a mask of available alternative firmware options
- *
- * There are up to 9 bootloaders, numbered 1 to 9, using bits 1 to 9 of this
- * mask. Bit 0 is unused.
- *
- * @return Bit mask indicating which bootloaders are present (bit n indicates
- * bootloader n is present)
- */
-uint32_t VbExGetAltFwIdxMask(void);
-
#ifdef __cplusplus
}
#endif /* __cplusplus */