diff options
Diffstat (limited to 'firmware/lib')
-rw-r--r-- | firmware/lib/include/vboot_display.h | 14 | ||||
-rw-r--r-- | firmware/lib/vboot_display.c | 10 |
2 files changed, 16 insertions, 8 deletions
diff --git a/firmware/lib/include/vboot_display.h b/firmware/lib/include/vboot_display.h index f8aa810b..d65d67c3 100644 --- a/firmware/lib/include/vboot_display.h +++ b/firmware/lib/include/vboot_display.h @@ -20,7 +20,21 @@ VbError_t VbCheckDisplayKey(VbCommonParams *cparams, uint32_t key, VbNvContext *vncptr); /* Internal functions, for unit testing */ + +/** + * Return a description of the recovery reason code. + */ const char *RecoveryReasonString(uint8_t code); +/** + * Return a fixed string representing the HWID. + */ +char *VbHWID(VbCommonParams *cparams); + +/** + * Get the number of localizations in the GBB bitmap data. + */ +VbError_t VbGetLocalizationCount(VbCommonParams *cparams, uint32_t *count); + #endif /* VBOOT_REFERENCE_VBOOT_DISPLAY_H_ */ diff --git a/firmware/lib/vboot_display.c b/firmware/lib/vboot_display.c index 929cacc2..b081b385 100644 --- a/firmware/lib/vboot_display.c +++ b/firmware/lib/vboot_display.c @@ -16,10 +16,7 @@ static uint32_t disp_current_screen = VB_SCREEN_BLANK; static uint32_t disp_width = 0, disp_height = 0; - -/* Get the number of localizations in the GBB bitmap data. */ -static VbError_t VbGetLocalizationCount(VbCommonParams* cparams, - uint32_t* count) { +VbError_t VbGetLocalizationCount(VbCommonParams *cparams, uint32_t *count) { GoogleBinaryBlockHeader* gbb = (GoogleBinaryBlockHeader*)cparams->gbb_data; BmpBlockHeader* hdr; @@ -47,10 +44,7 @@ static VbError_t VbGetLocalizationCount(VbCommonParams* cparams, return VBERROR_SUCCESS; } - - -/* Return a fixed string representing the HWID */ -static char *VbHWID(VbCommonParams* cparams) { +char *VbHWID(VbCommonParams *cparams) { GoogleBinaryBlockHeader* gbb = (GoogleBinaryBlockHeader*)cparams->gbb_data; if (0 == gbb->hwid_size || gbb->hwid_offset > cparams->gbb_size || |