xref: /DragonStub/inc/efierr.h (revision 9b63de7db6850b2415bb46fa28e0d62fa2f2f50e)
1530d68baSNigel Croxon #ifndef _EFI_ERR_H
2530d68baSNigel Croxon #define _EFI_ERR_H
3530d68baSNigel Croxon 
4530d68baSNigel Croxon /*++
5530d68baSNigel Croxon 
6530d68baSNigel Croxon Copyright (c) 1998  Intel Corporation
7530d68baSNigel Croxon 
8530d68baSNigel Croxon Module Name:
9530d68baSNigel Croxon 
10530d68baSNigel Croxon     efierr.h
11530d68baSNigel Croxon 
12530d68baSNigel Croxon Abstract:
13530d68baSNigel Croxon 
14530d68baSNigel Croxon     EFI error codes
15530d68baSNigel Croxon 
16530d68baSNigel Croxon 
17530d68baSNigel Croxon 
18530d68baSNigel Croxon 
19530d68baSNigel Croxon Revision History
20530d68baSNigel Croxon 
21530d68baSNigel Croxon --*/
22530d68baSNigel Croxon 
23530d68baSNigel Croxon 
24530d68baSNigel Croxon #define EFIWARN(a)                            (a)
25530d68baSNigel Croxon #define EFI_ERROR(a)              (((INTN) a) < 0)
26530d68baSNigel Croxon 
27530d68baSNigel Croxon 
28530d68baSNigel Croxon #define EFI_SUCCESS                             0
29530d68baSNigel Croxon #define EFI_LOAD_ERROR                  EFIERR(1)
30530d68baSNigel Croxon #define EFI_INVALID_PARAMETER           EFIERR(2)
31530d68baSNigel Croxon #define EFI_UNSUPPORTED                 EFIERR(3)
32530d68baSNigel Croxon #define EFI_BAD_BUFFER_SIZE             EFIERR(4)
33530d68baSNigel Croxon #define EFI_BUFFER_TOO_SMALL            EFIERR(5)
34530d68baSNigel Croxon #define EFI_NOT_READY                   EFIERR(6)
35530d68baSNigel Croxon #define EFI_DEVICE_ERROR                EFIERR(7)
36530d68baSNigel Croxon #define EFI_WRITE_PROTECTED             EFIERR(8)
37530d68baSNigel Croxon #define EFI_OUT_OF_RESOURCES            EFIERR(9)
38530d68baSNigel Croxon #define EFI_VOLUME_CORRUPTED            EFIERR(10)
39530d68baSNigel Croxon #define EFI_VOLUME_FULL                 EFIERR(11)
40530d68baSNigel Croxon #define EFI_NO_MEDIA                    EFIERR(12)
41530d68baSNigel Croxon #define EFI_MEDIA_CHANGED               EFIERR(13)
42530d68baSNigel Croxon #define EFI_NOT_FOUND                   EFIERR(14)
43530d68baSNigel Croxon #define EFI_ACCESS_DENIED               EFIERR(15)
44530d68baSNigel Croxon #define EFI_NO_RESPONSE                 EFIERR(16)
45530d68baSNigel Croxon #define EFI_NO_MAPPING                  EFIERR(17)
46530d68baSNigel Croxon #define EFI_TIMEOUT                     EFIERR(18)
47530d68baSNigel Croxon #define EFI_NOT_STARTED                 EFIERR(19)
48530d68baSNigel Croxon #define EFI_ALREADY_STARTED             EFIERR(20)
49530d68baSNigel Croxon #define EFI_ABORTED                     EFIERR(21)
50530d68baSNigel Croxon #define EFI_ICMP_ERROR                  EFIERR(22)
51530d68baSNigel Croxon #define EFI_TFTP_ERROR                  EFIERR(23)
52530d68baSNigel Croxon #define EFI_PROTOCOL_ERROR              EFIERR(24)
53530d68baSNigel Croxon #define EFI_INCOMPATIBLE_VERSION        EFIERR(25)
54530d68baSNigel Croxon #define EFI_SECURITY_VIOLATION          EFIERR(26)
55530d68baSNigel Croxon #define EFI_CRC_ERROR                   EFIERR(27)
56530d68baSNigel Croxon #define EFI_END_OF_MEDIA                EFIERR(28)
57530d68baSNigel Croxon #define EFI_END_OF_FILE                 EFIERR(31)
58530d68baSNigel Croxon #define EFI_INVALID_LANGUAGE            EFIERR(32)
59530d68baSNigel Croxon #define EFI_COMPROMISED_DATA            EFIERR(33)
60530d68baSNigel Croxon 
61*9b63de7dSNigel Croxon #define EFI_WARN_UNKOWN_GLYPH           EFIWARN(1)
625d0d538cSNigel Croxon #define EFI_WARN_UNKNOWN_GLYPH          EFIWARN(1)
63530d68baSNigel Croxon #define EFI_WARN_DELETE_FAILURE         EFIWARN(2)
64530d68baSNigel Croxon #define EFI_WARN_WRITE_FAILURE          EFIWARN(3)
65530d68baSNigel Croxon #define EFI_WARN_BUFFER_TOO_SMALL       EFIWARN(4)
66530d68baSNigel Croxon 
67530d68baSNigel Croxon #endif
68530d68baSNigel Croxon 
69