summaryrefslogtreecommitdiffstats
path: root/src/commonlib
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2022-02-11 15:49:37 +0100
committerLean Sheng Tan <sheng.tan@9elements.com>2023-02-07 12:57:36 +0000
commit55d0af4618494a058d0c5a77b21cfaa003de7fa1 (patch)
tree937c783bb9235c1bd7ef6c0866175f47f4dd6921 /src/commonlib
parent9c8249195d0c8fc115dc951215411bf025800870 (diff)
downloadcoreboot-55d0af4618494a058d0c5a77b21cfaa003de7fa1.tar.gz
coreboot-55d0af4618494a058d0c5a77b21cfaa003de7fa1.tar.bz2
coreboot-55d0af4618494a058d0c5a77b21cfaa003de7fa1.zip
bsd/cb_err: Add error code for UEFI variable store
Add a new set of errors that will be used by the introduced EFI non-volatile variable store in flash. Change-Id: I6baea9fb138d1a2755d22a3d587105793adb9c90 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/61960 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Diffstat (limited to 'src/commonlib')
-rw-r--r--src/commonlib/bsd/include/commonlib/bsd/cb_err.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/commonlib/bsd/include/commonlib/bsd/cb_err.h b/src/commonlib/bsd/include/commonlib/bsd/cb_err.h
index 725882c60273..452f58b1ceba 100644
--- a/src/commonlib/bsd/include/commonlib/bsd/cb_err.h
+++ b/src/commonlib/bsd/include/commonlib/bsd/cb_err.h
@@ -41,6 +41,16 @@ enum cb_err {
CB_CBFS_NOT_FOUND = -401, /**< File not found in directory */
CB_CBFS_HASH_MISMATCH = -402, /**< Master hash validation failed */
CB_CBFS_CACHE_FULL = -403, /**< Metadata cache overflowed */
+
+ /* EFI errors */
+ CB_EFI_FVH_INVALID = -500, /**< UEFI FVH (Firmware Volume Header) is corrupted */
+ CB_EFI_CHECKSUM_INVALID = -501, /**< UEFI FVH checksum is invalid */
+ CB_EFI_VS_NOT_FORMATTED_INVALID = -502, /**< UEFI variable store not formatted */
+ CB_EFI_VS_CORRUPTED_INVALID = -503, /**< UEFI variable store is corrupted */
+ CB_EFI_ACCESS_ERROR = -504, /**< UEFI variable store access error */
+ CB_EFI_STORE_FULL = -505, /**< UEFI variable store is full */
+ CB_EFI_OPTION_NOT_FOUND = -506, /**< UEFI variable not found */
+ CB_EFI_BUFFER_TOO_SMALL = -507, /**< UEFI Buffer is too small. */
};
#endif /* _COMMONLIB_BSD_CB_ERR_H_ */