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