]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Guid/VarErrorFlag.h
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Include / Guid / VarErrorFlag.h
CommitLineData
4edb1866
SZ
1/** @file\r
2 Variable error flag definitions.\r
3\r
4 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
9d510e61 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
4edb1866
SZ
6\r
7**/\r
8\r
9#ifndef _VARIABLE_ERROR_FLAG_H_\r
10#define _VARIABLE_ERROR_FLAG_H_\r
11\r
12//\r
13// Before EndOfDxe, the variable indicates the last boot variable error flag,\r
14// then it means the last boot variable error flag must be got before EndOfDxe.\r
15// After EndOfDxe, the variable indicates the current boot variable error flag,\r
16// then it means the current boot variable error flag must be got after EndOfDxe.\r
17//\r
18// If the variable is not present, it has the same meaning with VAR_ERROR_FLAG_NO_ERROR.\r
19//\r
20#define VAR_ERROR_FLAG_NAME L"VarErrorFlag"\r
21\r
22#define VAR_ERROR_FLAG_NO_ERROR 0xFF // 1111-1111\r
23#define VAR_ERROR_FLAG_SYSTEM_ERROR 0xEF // 1110-1111\r
24#define VAR_ERROR_FLAG_USER_ERROR 0xFE // 1111-1110\r
25\r
26typedef UINT8 VAR_ERROR_FLAG;\r
27\r
28#define EDKII_VAR_ERROR_FLAG_GUID { \\r
29 0x4b37fe8, 0xf6ae, 0x480b, { 0xbd, 0xd5, 0x37, 0xd9, 0x8c, 0x5e, 0x89, 0xaa } \\r
30};\r
31\r
32extern EFI_GUID gEdkiiVarErrorFlagGuid;\r
33\r
34#endif\r
35\r