summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShelley Chen <shchen@chromium.org>2017-03-13 17:37:40 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-03-29 13:43:11 -0700
commitfa0f48378205d70eedc72e788d6faa47bd830651 (patch)
tree49aba8f3eb6ee0371abbd719e02c8e7a3e46818b
parentcfbc083efed99bf4edb53013bc5ab7583278691b (diff)
downloadvboot-stabilize-9430.B.tar.gz
detachables: Define VbExDisplayMenu()stabilize-9430.Bstabilize-9428.B
Create new callback for drawing detachable firmware menus BUG=b:35585623 BRANCH=None TEST=None Change-Id: Ief207f6119f00151e2d480549aaac3a8755cb1b4 Signed-off-by: Shelley Chen <shchen@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/457838 Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
-rw-r--r--firmware/include/vboot_api.h11
-rw-r--r--firmware/stub/vboot_api_stub.c6
2 files changed, 17 insertions, 0 deletions
diff --git a/firmware/include/vboot_api.h b/firmware/include/vboot_api.h
index bb205bba..fdae5dda 100644
--- a/firmware/include/vboot_api.h
+++ b/firmware/include/vboot_api.h
@@ -792,6 +792,17 @@ VbError_t VbExDisplayGetDimension(uint32_t *width, uint32_t *height);
VbError_t VbExDisplayScreen(uint32_t screen_type, uint32_t locale);
/**
+ * Display a predefined menu 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.
+ */
+VbError_t VbExDisplayMenu(uint32_t screen_type, uint32_t locale,
+ uint32_t selected_index, uint32_t redraw_base);
+
+/**
* Write an image to the display, with the upper left corner at the specified
* pixel coordinates. The bitmap buffer is a pointer to the platform-dependent
* uncompressed binary blob with dimensions and format specified internally
diff --git a/firmware/stub/vboot_api_stub.c b/firmware/stub/vboot_api_stub.c
index 66c491fe..6dd257d9 100644
--- a/firmware/stub/vboot_api_stub.c
+++ b/firmware/stub/vboot_api_stub.c
@@ -51,6 +51,12 @@ VbError_t VbExDisplayScreen(uint32_t screen_type, uint32_t locale)
return VBERROR_SUCCESS;
}
+VbError_t VbExDisplayMenu(uint32_t screen_type, uint32_t locale,
+ uint32_t selected_index, uint32_t redraw_base)
+{
+ return VBERROR_SUCCESS;
+}
+
VbError_t VbExDisplayImage(uint32_t x, uint32_t y,
void *buffer, uint32_t buffersize)
{