summaryrefslogtreecommitdiff
path: root/firmware/2lib/include/2return_codes.h
diff options
context:
space:
mode:
authorChromeOS Developer <rspangler@chromium.org>2016-10-31 16:19:20 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-01-12 15:56:22 -0800
commit284bf5549a4df474534f288902db489902407830 (patch)
tree35a57427366db7dfdff622b439b0709371726005 /firmware/2lib/include/2return_codes.h
parentd1408000508eb4d80e6d499da4530bb6251b3509 (diff)
downloadvboot-284bf5549a4df474534f288902db489902407830.tar.gz
firmware: Refactor and clean up ec_sync
Previously, the EC software sync process called VbDisplayScreen() from several function calls deep. Refactor software sync so that the UI decisions are at a higher level (in ec_sync_all.c) and isolated from the low-level EC software sync functionality (in ec_sync.c). This is one in a series of changes which are more clearly separating out the UI, to make it easier to support multiple UI across a range of devices. BUG=chromium:611535 BRANCH=none TEST=make runtests; build_packages --board=reef chromeos-firmware; boot reef Change-Id: I40597abeb5b0cc8f5d8fc2098e4acbed4bf59bf6 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/411921 Reviewed-by: Shelley Chen <shchen@chromium.org>
Diffstat (limited to 'firmware/2lib/include/2return_codes.h')
-rw-r--r--firmware/2lib/include/2return_codes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h
index 75484783..f754cded 100644
--- a/firmware/2lib/include/2return_codes.h
+++ b/firmware/2lib/include/2return_codes.h
@@ -488,6 +488,15 @@ enum vb2_return_code {
/* Unable to verify body in vb2_load_partition() */
VB2_ERROR_LOAD_PARTITION_VERIFY_BODY,
+ /* Unable to get EC image hash in ec_sync_phase1() */
+ VB2_ERROR_EC_HASH_IMAGE,
+
+ /* Unable to get expected EC image hash in ec_sync_phase1() */
+ VB2_ERROR_EC_HASH_EXPECTED,
+
+ /* Expected and image hashes are different size in ec_sync_phase1() */
+ VB2_ERROR_EC_HASH_SIZE,
+
/**********************************************************************
* API-level errors
*/