]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - 6/sys/boot/efi/include/efierr.h
merge fix for boot-time hang on centos' xen
[FreeBSD/FreeBSD.git] / 6 / sys / boot / efi / include / efierr.h
1 /* $FreeBSD$ */
2 #ifndef _EFI_ERR_H
3 #define _EFI_ERR_H
4
5 /*++
6
7 Copyright (c) 1998  Intel Corporation
8
9 Module Name:
10
11     efierr.h
12
13 Abstract:
14
15     EFI error codes
16
17
18
19
20 Revision History
21
22 --*/
23
24
25 #define EFIWARN(a)                            (a)
26 #define EFI_ERROR(a)              (((INTN) a) < 0)
27
28
29 #define EFI_SUCCESS                             0
30 #define EFI_LOAD_ERROR                  EFIERR(1)
31 #define EFI_INVALID_PARAMETER           EFIERR(2)
32 #define EFI_UNSUPPORTED                 EFIERR(3)
33 #define EFI_BAD_BUFFER_SIZE             EFIERR(4)
34 #define EFI_BUFFER_TOO_SMALL            EFIERR(5)
35 #define EFI_NOT_READY                   EFIERR(6)
36 #define EFI_DEVICE_ERROR                EFIERR(7)
37 #define EFI_WRITE_PROTECTED             EFIERR(8)
38 #define EFI_OUT_OF_RESOURCES            EFIERR(9)
39 #define EFI_VOLUME_CORRUPTED            EFIERR(10)
40 #define EFI_VOLUME_FULL                 EFIERR(11)
41 #define EFI_NO_MEDIA                    EFIERR(12)
42 #define EFI_MEDIA_CHANGED               EFIERR(13)
43 #define EFI_NOT_FOUND                   EFIERR(14)
44 #define EFI_ACCESS_DENIED               EFIERR(15)
45 #define EFI_NO_RESPONSE                 EFIERR(16)
46 #define EFI_NO_MAPPING                  EFIERR(17)
47 #define EFI_TIMEOUT                     EFIERR(18)
48 #define EFI_NOT_STARTED                 EFIERR(19)
49 #define EFI_ALREADY_STARTED             EFIERR(20)
50 #define EFI_ABORTED                     EFIERR(21)
51 #define EFI_ICMP_ERROR                  EFIERR(22)
52 #define EFI_TFTP_ERROR                  EFIERR(23)
53 #define EFI_PROTOCOL_ERROR              EFIERR(24)
54
55 #define EFI_WARN_UNKOWN_GLYPH           EFIWARN(1)
56 #define EFI_WARN_DELETE_FAILURE         EFIWARN(2)
57 #define EFI_WARN_WRITE_FAILURE          EFIWARN(3)
58 #define EFI_WARN_BUFFER_TOO_SMALL       EFIWARN(4)
59
60 #endif