]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/Include/Guid/ArmGlobalVariableHob.h
ArmPkg: Introduce GetGlobalEnvironmentVariable() function.
[mirror_edk2.git] / ArmPlatformPkg / Include / Guid / ArmGlobalVariableHob.h
1 /** @file
2 *
3 * Copyright (c) 2011-2013, ARM Limited. All rights reserved.
4 *
5 * This program and the accompanying materials
6 * are licensed and made available under the terms and conditions of the BSD License
7 * which accompanies this distribution. The full text of the license may be found at
8 * http://opensource.org/licenses/bsd-license.php
9 *
10 * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 *
13 **/
14
15 #ifndef __ARM_GLOBAL_VARIABLE_GUID_H__
16 #define __ARM_GLOBAL_VARIABLE_GUID_H__
17
18 #include <Pi/PiBootMode.h>
19 #include <Pi/PiHob.h>
20
21 #define ARM_HOB_GLOBAL_VARIABLE_GUID \
22 { 0xc3253c90, 0xa24f, 0x4599, { 0xa6, 0x64, 0x1f, 0x88, 0x13, 0x77, 0x8f, 0xc9} };
23
24 extern EFI_GUID gArmGlobalVariableGuid;
25
26 ///
27 /// Describes all memory ranges used during the HOB producer
28 /// phase that exist outside the HOB list. This HOB type
29 /// describes how memory is used, not the physical attributes of memory.
30 ///
31 typedef struct {
32 ///
33 /// The Guid HOB header. Header.HobType = EFI_HOB_TYPE_GUID_EXTENSION
34 /// and Header.Name = gArmGlobalVariableGuid
35 ///
36 EFI_HOB_GUID_TYPE Header;
37
38 ///
39 /// The base address of memory allocated by this HOB. Type
40 /// EFI_PHYSICAL_ADDRESS is defined in AllocatePages() in the UEFI 2.0
41 /// specification.
42 ///
43 EFI_PHYSICAL_ADDRESS GlobalVariableBase;
44
45 ///
46 /// The length in bytes of memory allocated by this HOB.
47 ///
48 UINT32 GlobalVariableSize;
49 } ARM_HOB_GLOBAL_VARIABLE;
50
51 #endif