diff options
| author | Ada Christine <adachristine18@gmail.com> | 2023-01-04 21:41:09 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2023-01-04 21:41:09 +0000 |
| commit | fcd3e818a9f1b7009c9c027a69b2ef0e7ef71293 (patch) | |
| tree | 8ea63301dae5ba65ee92876f87dc501d032130d0 /api/efi/error.h | |
| parent | eb022d780afe1e5e92547b6b3c2369dde1c4cc0b (diff) | |
use homespun efi code
Diffstat (limited to 'api/efi/error.h')
| -rw-r--r-- | api/efi/error.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/api/efi/error.h b/api/efi/error.h new file mode 100644 index 0000000..b02f7ff --- /dev/null +++ b/api/efi/error.h @@ -0,0 +1,13 @@ +#pragma once + +#define EFI_ERROR(status) ((INTN)status < 0) + +#define EFI_ERROR_CODE(code) (INTN_MIN|code) + +#define EFI_SUCCESS 0 +#define EFI_INVALID_PARAMETER EFI_ERROR_CODE(2) +#define EFI_NOT_READY EFI_ERROR_CODE(6) +#define EFI_ABORTED EFI_ERROR_CODE(21) +#define EFI_NOT_FOUND EFI_ERROR_CODE(14) +#define EFI_BUFFER_TOO_SMALL EFI_ERROR_CODE(5) + |
