xref: /freebsd/stand/efi/include/efierr.h (revision 4f52dfbb8d6c4d446500c5b097e3806ec219fbd4)
1 /* $FreeBSD$ */
2 #ifndef _EFI_ERR_H
3 #define _EFI_ERR_H
4 
5 /*++
6 
7 Copyright (c)  1999 - 2002 Intel Corporation. All rights reserved
8 This software and associated documentation (if any) is furnished
9 under a license and may only be used or copied in accordance
10 with the terms of the license. Except as permitted by such
11 license, no part of this software or documentation may be
12 reproduced, stored in a retrieval system, or transmitted in any
13 form or by any means without the express written consent of
14 Intel Corporation.
15 
16 Module Name:
17 
18     efierr.h
19 
20 Abstract:
21 
22     EFI error codes
23 
24 
25 
26 
27 Revision History
28 
29 --*/
30 
31 
32 #define EFIWARN(a)                            (a)
33 #define EFI_ERROR(a)             (((INTN) a) < 0)
34 #define EFI_ERROR_CODE(a)   (unsigned long)(a & ~EFI_ERROR_MASK)
35 
36 
37 #define EFI_SUCCESS                             0
38 #define EFI_LOAD_ERROR                  EFIERR(1)
39 #define EFI_INVALID_PARAMETER           EFIERR(2)
40 #define EFI_UNSUPPORTED                 EFIERR(3)
41 #define EFI_BAD_BUFFER_SIZE             EFIERR(4)
42 #define EFI_BUFFER_TOO_SMALL            EFIERR(5)
43 #define EFI_NOT_READY                   EFIERR(6)
44 #define EFI_DEVICE_ERROR                EFIERR(7)
45 #define EFI_WRITE_PROTECTED             EFIERR(8)
46 #define EFI_OUT_OF_RESOURCES            EFIERR(9)
47 #define EFI_VOLUME_CORRUPTED            EFIERR(10)
48 #define EFI_VOLUME_FULL                 EFIERR(11)
49 #define EFI_NO_MEDIA                    EFIERR(12)
50 #define EFI_MEDIA_CHANGED               EFIERR(13)
51 #define EFI_NOT_FOUND                   EFIERR(14)
52 #define EFI_ACCESS_DENIED               EFIERR(15)
53 #define EFI_NO_RESPONSE                 EFIERR(16)
54 #define EFI_NO_MAPPING                  EFIERR(17)
55 #define EFI_TIMEOUT                     EFIERR(18)
56 #define EFI_NOT_STARTED                 EFIERR(19)
57 #define EFI_ALREADY_STARTED             EFIERR(20)
58 #define EFI_ABORTED                     EFIERR(21)
59 #define EFI_ICMP_ERROR                  EFIERR(22)
60 #define EFI_TFTP_ERROR                  EFIERR(23)
61 #define EFI_PROTOCOL_ERROR              EFIERR(24)
62 
63 #define EFI_WARN_UNKNOWN_GLYPH          EFIWARN(1)
64 #define EFI_WARN_DELETE_FAILURE         EFIWARN(2)
65 #define EFI_WARN_WRITE_FAILURE          EFIWARN(3)
66 #define EFI_WARN_BUFFER_TOO_SMALL       EFIWARN(4)
67 
68 #endif
69