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