1 #ifndef _EFI_ERR_H 2 #define _EFI_ERR_H 3 4 /*++ 5 6 Copyright (c) 1998 Intel Corporation 7 8 Module Name: 9 10 efierr.h 11 12 Abstract: 13 14 EFI error codes 15 16 17 18 19 Revision History 20 21 --*/ 22 23 24 #define EFIWARN(a) (a) 25 #define EFI_ERROR(a) (((INTN) a) < 0) 26 27 28 #define EFI_SUCCESS 0 29 #define EFI_LOAD_ERROR EFIERR(1) 30 #define EFI_INVALID_PARAMETER EFIERR(2) 31 #define EFI_UNSUPPORTED EFIERR(3) 32 #define EFI_BAD_BUFFER_SIZE EFIERR(4) 33 #define EFI_BUFFER_TOO_SMALL EFIERR(5) 34 #define EFI_NOT_READY EFIERR(6) 35 #define EFI_DEVICE_ERROR EFIERR(7) 36 #define EFI_WRITE_PROTECTED EFIERR(8) 37 #define EFI_OUT_OF_RESOURCES EFIERR(9) 38 #define EFI_VOLUME_CORRUPTED EFIERR(10) 39 #define EFI_VOLUME_FULL EFIERR(11) 40 #define EFI_NO_MEDIA EFIERR(12) 41 #define EFI_MEDIA_CHANGED EFIERR(13) 42 #define EFI_NOT_FOUND EFIERR(14) 43 #define EFI_ACCESS_DENIED EFIERR(15) 44 #define EFI_NO_RESPONSE EFIERR(16) 45 #define EFI_NO_MAPPING EFIERR(17) 46 #define EFI_TIMEOUT EFIERR(18) 47 #define EFI_NOT_STARTED EFIERR(19) 48 #define EFI_ALREADY_STARTED EFIERR(20) 49 #define EFI_ABORTED EFIERR(21) 50 #define EFI_ICMP_ERROR EFIERR(22) 51 #define EFI_TFTP_ERROR EFIERR(23) 52 #define EFI_PROTOCOL_ERROR EFIERR(24) 53 #define EFI_INCOMPATIBLE_VERSION EFIERR(25) 54 #define EFI_SECURITY_VIOLATION EFIERR(26) 55 #define EFI_CRC_ERROR EFIERR(27) 56 #define EFI_END_OF_MEDIA EFIERR(28) 57 #define EFI_END_OF_FILE EFIERR(31) 58 #define EFI_INVALID_LANGUAGE EFIERR(32) 59 #define EFI_COMPROMISED_DATA EFIERR(33) 60 #define EFI_IP_ADDRESS_CONFLICT EFIERR(34) 61 #define EFI_HTTP_ERROR EFIERR(35) 62 63 #define EFI_WARN_UNKOWN_GLYPH EFIWARN(1) 64 #define EFI_WARN_UNKNOWN_GLYPH EFIWARN(1) 65 #define EFI_WARN_DELETE_FAILURE EFIWARN(2) 66 #define EFI_WARN_WRITE_FAILURE EFIWARN(3) 67 #define EFI_WARN_BUFFER_TOO_SMALL EFIWARN(4) 68 #define EFI_WARN_STALE_DATA EFIWARN(5) 69 #define EFI_WARN_FILE_SYSTEM EFIWARN(6) 70 #define EFI_WARN_RESET_REQUIRED EFIWARN(7) 71 72 #endif 73 74