]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Include/Guid/StatusCodeDataTypeVariable.h
MdeModulePkg: Add match2 opcode support in SetupBrowserDxe and sample code in DriverS...
[mirror_edk2.git] / MdeModulePkg / Include / Guid / StatusCodeDataTypeVariable.h
1 /** @file
2 This file defines the GUID and data structure used to pass variable setting
3 failure information to the Status Code Protocol.
4
5 Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials are licensed and made available under
7 the terms and conditions of the BSD License that accompanies this distribution.
8 The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php.
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 #ifndef _STATUS_CODE_DATA_TYPE_VARIABLE_H_
17 #define _STATUS_CODE_DATA_TYPE_VARIABLE_H_
18
19 ///
20 /// The Global ID used to identify a structure of type EDKII_SET_VARIABLE_STATUS.
21 /// The status code value is PcdGet32 (PcdErrorCodeSetVariable).
22 ///
23 #define EDKII_STATUS_CODE_DATA_TYPE_VARIABLE_GUID \
24 { \
25 0xf6ee6dbb, 0xd67f, 0x4ea0, { 0x8b, 0x96, 0x6a, 0x71, 0xb1, 0x9d, 0x84, 0xad } \
26 }
27
28 typedef struct {
29 EFI_GUID Guid;
30 UINTN NameSize;
31 UINTN DataSize;
32 EFI_STATUS SetStatus;
33 UINT32 Attributes;
34 // CHAR16 Name[];
35 // UINT8 Data[];
36 } EDKII_SET_VARIABLE_STATUS;
37
38 extern EFI_GUID gEdkiiStatusCodeDataTypeVariableGuid;
39
40 #endif // _STATUS_CODE_DATA_TYPE_VARIABLE_H_