]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Include/IndustryStandard/E820.h
OvmfPkg/MemEncryptSevLib: find pages of initial SMRAM save state map
[mirror_edk2.git] / OvmfPkg / Include / IndustryStandard / E820.h
1 /** @file
2
3 Copyright (c) 2013, Citrix Systems UK Ltd.
4 Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
5
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions
8 of the BSD License which accompanies this distribution. The
9 full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14
15 **/
16
17
18 #ifndef __E820_H__
19 #define __E820_H__
20
21 #pragma pack(1)
22
23 typedef enum {
24 EfiAcpiAddressRangeMemory = 1,
25 EfiAcpiAddressRangeReserved = 2,
26 EfiAcpiAddressRangeACPI = 3,
27 EfiAcpiAddressRangeNVS = 4
28 } EFI_ACPI_MEMORY_TYPE;
29
30 typedef struct {
31 UINT64 BaseAddr;
32 UINT64 Length;
33 EFI_ACPI_MEMORY_TYPE Type;
34 } EFI_E820_ENTRY64;
35
36 typedef struct {
37 UINT32 BassAddrLow;
38 UINT32 BaseAddrHigh;
39 UINT32 LengthLow;
40 UINT32 LengthHigh;
41 EFI_ACPI_MEMORY_TYPE Type;
42 } EFI_E820_ENTRY;
43
44 #pragma pack()
45
46 #endif /* __E820_H__ */