]>
Commit | Line | Data |
---|---|---|
79964ac8 | 1 | /** @file\r |
2 | GUID for use in reserving SMRAM regions.\r | |
3 | \r | |
2bbaeb0d | 4 | Copyright (c) 2007 - 2009, Intel Corporation\r |
79964ac8 | 5 | All rights reserved. This program and the accompanying materials\r |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | Module Name: SmramMemoryReserve.h\r | |
14 | \r | |
15 | @par Revision Reference:\r | |
16 | GUIDs defined in SmmCis spec version 0.9\r | |
17 | \r | |
18 | **/\r | |
19 | \r | |
20 | #ifndef _EFI_SMM_PEI_SMRAM_MEMORY_RESERVE_H_\r | |
21 | #define _EFI_SMM_PEI_SMRAM_MEMORY_RESERVE_H_\r | |
22 | \r | |
b80fbe85 | 23 | #include <PiPei.h>\r |
24 | \r | |
79964ac8 | 25 | #define EFI_SMM_PEI_SMRAM_MEMORY_RESERVE \\r |
26 | { \\r | |
27 | 0x6dadf1d1, 0xd4cc, 0x4910, {0xbb, 0x6e, 0x82, 0xb1, 0xfd, 0x80, 0xff, 0x3d } \\r | |
28 | }\r | |
29 | \r | |
30 | //\r | |
31 | // *******************************************************\r | |
32 | // EFI_SMRAM_DESCRIPTOR\r | |
33 | // *******************************************************\r | |
34 | //\r | |
35 | typedef struct {\r | |
2bbaeb0d | 36 | EFI_PHYSICAL_ADDRESS PhysicalStart; ///< Phsyical location in DRAM\r |
37 | EFI_PHYSICAL_ADDRESS CpuStart; ///< Address CPU uses to access the SMI handler\r | |
79964ac8 | 38 | // May or may not match PhysicalStart\r |
39 | //\r | |
40 | UINT64 PhysicalSize;\r | |
41 | UINT64 RegionState;\r | |
42 | } EFI_SMRAM_DESCRIPTOR;\r | |
43 | \r | |
44 | //\r | |
45 | // *******************************************************\r | |
46 | // EFI_SMRAM_STATE\r | |
47 | // *******************************************************\r | |
48 | //\r | |
49 | #define EFI_SMRAM_OPEN 0x00000001\r | |
50 | #define EFI_SMRAM_CLOSED 0x00000002\r | |
51 | #define EFI_SMRAM_LOCKED 0x00000004\r | |
52 | #define EFI_CACHEABLE 0x00000008\r | |
53 | #define EFI_ALLOCATED 0x00000010\r | |
54 | #define EFI_NEEDS_TESTING 0x00000020\r | |
55 | #define EFI_NEEDS_ECC_INITIALIZATION 0x00000040\r | |
56 | \r | |
57 | //\r | |
58 | // *******************************************************\r | |
59 | // EFI_SMRAM_HOB_DESCRIPTOR_BLOCK\r | |
60 | // *******************************************************\r | |
61 | //\r | |
62 | typedef struct {\r | |
63 | UINTN NumberOfSmmReservedRegions;\r | |
64 | EFI_SMRAM_DESCRIPTOR Descriptor[1];\r | |
65 | } EFI_SMRAM_HOB_DESCRIPTOR_BLOCK;\r | |
66 | \r | |
67 | extern EFI_GUID gEfiSmmPeiSmramMemoryReserveGuid;\r | |
68 | \r | |
69 | #endif\r |