]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Efi/Include/EfiError.h
Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Efi / Include / EfiError.h
1 /*++
2
3 Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 EfiError.h
15
16 Abstract:
17
18 EFI error levels and thier associated defines
19
20 --*/
21
22 #ifndef _EFI_ERROR_H_
23 #define _EFI_ERROR_H_
24
25 //
26 // Set the upper bit to indicate EFI Error.
27 //
28 #define EFIERR(a) (EFI_MAX_BIT | (a))
29
30 #define EFIWARN(a) (a)
31 #define EFI_ERROR(a) (((INTN) (a)) < 0)
32
33 #define EFI_SUCCESS 0
34 #define EFI_LOAD_ERROR EFIERR (1)
35 #define EFI_INVALID_PARAMETER EFIERR (2)
36 #define EFI_UNSUPPORTED EFIERR (3)
37 #define EFI_BAD_BUFFER_SIZE EFIERR (4)
38 #define EFI_BUFFER_TOO_SMALL EFIERR (5)
39 #define EFI_NOT_READY EFIERR (6)
40 #define EFI_DEVICE_ERROR EFIERR (7)
41 #define EFI_WRITE_PROTECTED EFIERR (8)
42 #define EFI_OUT_OF_RESOURCES EFIERR (9)
43 #define EFI_VOLUME_CORRUPTED EFIERR (10)
44 #define EFI_VOLUME_FULL EFIERR (11)
45 #define EFI_NO_MEDIA EFIERR (12)
46 #define EFI_MEDIA_CHANGED EFIERR (13)
47 #define EFI_NOT_FOUND EFIERR (14)
48 #define EFI_ACCESS_DENIED EFIERR (15)
49 #define EFI_NO_RESPONSE EFIERR (16)
50 #define EFI_NO_MAPPING EFIERR (17)
51 #define EFI_TIMEOUT EFIERR (18)
52 #define EFI_NOT_STARTED EFIERR (19)
53 #define EFI_ALREADY_STARTED EFIERR (20)
54 #define EFI_ABORTED EFIERR (21)
55 #define EFI_ICMP_ERROR EFIERR (22)
56 #define EFI_TFTP_ERROR EFIERR (23)
57 #define EFI_PROTOCOL_ERROR EFIERR (24)
58 #define EFI_INCOMPATIBLE_VERSION EFIERR (25)
59 #define EFI_SECURITY_VIOLATION EFIERR (26)
60 #define EFI_CRC_ERROR EFIERR (27)
61 #define EFI_END_OF_MEDIA EFIERR (28)
62 #define EFI_END_OF_FILE EFIERR (31)
63 #define EFI_INVALID_LANGUAGE EFIERR (32)
64
65 #define EFI_WARN_UNKNOWN_GLYPH EFIWARN (1)
66 #define EFI_WARN_DELETE_FAILURE EFIWARN (2)
67 #define EFI_WARN_WRITE_FAILURE EFIWARN (3)
68 #define EFI_WARN_BUFFER_TOO_SMALL EFIWARN (4)
69
70 #endif