summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/errfile.h
diff options
context:
space:
mode:
authorMichael Brown2013-04-18 22:29:53 +0200
committerMichael Brown2013-04-19 14:34:19 +0200
commit54409583e29c481556e94a99dc73316d18aafc74 (patch)
tree150a8ceb85c1b523dc8dd8dd36daf8f6260e6538 /src/include/ipxe/errfile.h
parent[libc] Redefine low 8 bits of error code as "platform error code" (diff)
downloadipxe-54409583e29c481556e94a99dc73316d18aafc74.tar.gz
ipxe-54409583e29c481556e94a99dc73316d18aafc74.tar.xz
ipxe-54409583e29c481556e94a99dc73316d18aafc74.zip
[efi] Perform meaningful error code conversions
Exploit the redefinition of iPXE error codes to include a "platform error code" to allow for meaningful conversion of EFI_STATUS values to iPXE errors and vice versa. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/errfile.h')
-rw-r--r--src/include/ipxe/errfile.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h
index f906dbd5..67edcc93 100644
--- a/src/include/ipxe/errfile.h
+++ b/src/include/ipxe/errfile.h
@@ -266,6 +266,15 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define ERRFILE_nslookup ( ERRFILE_OTHER | 0x00300000 )
#define ERRFILE_efi_snp_hii ( ERRFILE_OTHER | 0x00310000 )
#define ERRFILE_readline ( ERRFILE_OTHER | 0x00320000 )
+#define ERRFILE_efi_bofm ( ERRFILE_OTHER | 0x00330000 )
+#define ERRFILE_efi_console ( ERRFILE_OTHER | 0x00340000 )
+#define ERRFILE_efi_debug ( ERRFILE_OTHER | 0x00350000 )
+#define ERRFILE_efi_download ( ERRFILE_OTHER | 0x00360000 )
+#define ERRFILE_efi_driver ( ERRFILE_OTHER | 0x00370000 )
+#define ERRFILE_efi_file ( ERRFILE_OTHER | 0x00380000 )
+#define ERRFILE_efi_init ( ERRFILE_OTHER | 0x00390000 )
+#define ERRFILE_efi_timer ( ERRFILE_OTHER | 0x003a0000 )
+#define ERRFILE_efi_umalloc ( ERRFILE_OTHER | 0x003b0000 )
/** @} */