xref: /netbsd-src/sys/external/bsd/gnu-efi/dist/inc/efierr.h (revision 1eb4b21779cd330f45cea12cb60eb09e852039cb)
1 /*	$NetBSD: efierr.h,v 1.1.1.2 2021/09/30 18:50:09 jmcneill Exp $	*/
2 
3 #ifndef _EFI_ERR_H
4 #define _EFI_ERR_H
5 
6 /*++
7 
8 Copyright (c) 1998  Intel Corporation
9 
10 Module Name:
11 
12     efierr.h
13 
14 Abstract:
15 
16     EFI error codes
17 
18 
19 
20 
21 Revision History
22 
23 --*/
24 
25 
26 #define EFIWARN(a)                            (a)
27 #define EFI_ERROR(a)              (((INTN) a) < 0)
28 
29 
30 #define EFI_SUCCESS                             0
31 #define EFI_LOAD_ERROR                  EFIERR(1)
32 #define EFI_INVALID_PARAMETER           EFIERR(2)
33 #define EFI_UNSUPPORTED                 EFIERR(3)
34 #define EFI_BAD_BUFFER_SIZE             EFIERR(4)
35 #define EFI_BUFFER_TOO_SMALL            EFIERR(5)
36 #define EFI_NOT_READY                   EFIERR(6)
37 #define EFI_DEVICE_ERROR                EFIERR(7)
38 #define EFI_WRITE_PROTECTED             EFIERR(8)
39 #define EFI_OUT_OF_RESOURCES            EFIERR(9)
40 #define EFI_VOLUME_CORRUPTED            EFIERR(10)
41 #define EFI_VOLUME_FULL                 EFIERR(11)
42 #define EFI_NO_MEDIA                    EFIERR(12)
43 #define EFI_MEDIA_CHANGED               EFIERR(13)
44 #define EFI_NOT_FOUND                   EFIERR(14)
45 #define EFI_ACCESS_DENIED               EFIERR(15)
46 #define EFI_NO_RESPONSE                 EFIERR(16)
47 #define EFI_NO_MAPPING                  EFIERR(17)
48 #define EFI_TIMEOUT                     EFIERR(18)
49 #define EFI_NOT_STARTED                 EFIERR(19)
50 #define EFI_ALREADY_STARTED             EFIERR(20)
51 #define EFI_ABORTED                     EFIERR(21)
52 #define EFI_ICMP_ERROR                  EFIERR(22)
53 #define EFI_TFTP_ERROR                  EFIERR(23)
54 #define EFI_PROTOCOL_ERROR              EFIERR(24)
55 #define EFI_INCOMPATIBLE_VERSION        EFIERR(25)
56 #define EFI_SECURITY_VIOLATION          EFIERR(26)
57 #define EFI_CRC_ERROR                   EFIERR(27)
58 #define EFI_END_OF_MEDIA                EFIERR(28)
59 #define EFI_END_OF_FILE                 EFIERR(31)
60 #define EFI_INVALID_LANGUAGE            EFIERR(32)
61 #define EFI_COMPROMISED_DATA            EFIERR(33)
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 
69 #endif
70 
71