diff options
| author | Ada Christine <adachristine18@gmail.com> | 2023-01-04 21:45:32 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2023-01-04 21:45:32 +0000 |
| commit | f82465735f0ba37c4ba202875936562c02538d5b (patch) | |
| tree | d39de345ca87228d870465e4f28a4e22e3bf7c79 /api/efi/error.h | |
| parent | 26f81e50066e5bb7aeae218094e0f834c405a8c1 (diff) | |
| parent | fcd3e818a9f1b7009c9c027a69b2ef0e7ef71293 (diff) | |
Merge branch 'gnu-efi-gone'
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) + |
