summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2017-08-26 17:39:42 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-08-29 19:37:04 -0700
commitff87bfac4e4883dff6076887f28358e2ea51b11e (patch)
tree6a8147f5cef6a7bc00016e35258d9b78a1fb3eb2 /include
parent472d50b7296630d1ff15e7f69425f83dd7ca3d9f (diff)
downloadchrome-ec-ff87bfac4e4883dff6076887f28358e2ea51b11e.tar.gz
EFS: Add error codes
This patch defines more error codes to make the consle more descriptive. BUG=none BRANCH=none TEST=Boot Fizz. Change-Id: I84cc6cd7f309bb2f2e1f36dea6cf5a7f0f862f50 Reviewed-on: https://chromium-review.googlesource.com/639160 Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/common.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 6f6b964c5f..fff9415240 100644
--- a/include/common.h
+++ b/include/common.h
@@ -143,6 +143,26 @@ enum ec_error_list {
EC_ERROR_NOT_HANDLED = 21,
/* Data has not changed */
EC_ERROR_UNCHANGED = 22,
+ /* Memory allocation */
+ EC_ERROR_MEMORY_ALLOCATION = 23,
+
+ /* Verified boot errors */
+ EC_ERROR_VBOOT_SIGNATURE = 0x1000, /* 4096 */
+ EC_ERROR_VBOOT_SIG_MAGIC = 0x1001,
+ EC_ERROR_VBOOT_SIG_SIZE = 0x1002,
+ EC_ERROR_VBOOT_SIG_ALGORITHM = 0x1003,
+ EC_ERROR_VBOOT_HASH_ALGORITHM = 0x1004,
+ EC_ERROR_VBOOT_SIG_OFFSET = 0x1005,
+ EC_ERROR_VBOOT_DATA_SIZE = 0x1006,
+
+ /* Verified boot key errors */
+ EC_ERROR_VBOOT_KEY = 0x1100,
+ EC_ERROR_VBOOT_KEY_MAGIC = 0x1101,
+ EC_ERROR_VBOOT_KEY_SIZE = 0x1102,
+
+ /* Verified boot data errors */
+ EC_ERROR_VBOOT_DATA = 0x1200,
+ EC_ERROR_VBOOT_DATA_VERIFY = 0x1201,
/* Module-internal error codes may use this range. */
EC_ERROR_INTERNAL_FIRST = 0x10000,