79964ac8 |
1 | /** @file\r |
2 | GUID for use in reserving SMRAM regions.\r |
3 | \r |
4 | Copyright (c) 2007, Intel Corporation\r |
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 |
23 | #define EFI_SMM_PEI_SMRAM_MEMORY_RESERVE \\r |
24 | { \\r |
25 | 0x6dadf1d1, 0xd4cc, 0x4910, {0xbb, 0x6e, 0x82, 0xb1, 0xfd, 0x80, 0xff, 0x3d } \\r |
26 | }\r |
27 | \r |
28 | //\r |
29 | // *******************************************************\r |
30 | // EFI_SMRAM_DESCRIPTOR\r |
31 | // *******************************************************\r |
32 | //\r |
33 | typedef struct {\r |
34 | EFI_PHYSICAL_ADDRESS PhysicalStart; // Phsyical location in DRAM\r |
35 | EFI_PHYSICAL_ADDRESS CpuStart; // Address CPU uses to access the SMI handler\r |
36 | // May or may not match PhysicalStart\r |
37 | //\r |
38 | UINT64 PhysicalSize;\r |
39 | UINT64 RegionState;\r |
40 | } EFI_SMRAM_DESCRIPTOR;\r |
41 | \r |
42 | //\r |
43 | // *******************************************************\r |
44 | // EFI_SMRAM_STATE\r |
45 | // *******************************************************\r |
46 | //\r |
47 | #define EFI_SMRAM_OPEN 0x00000001\r |
48 | #define EFI_SMRAM_CLOSED 0x00000002\r |
49 | #define EFI_SMRAM_LOCKED 0x00000004\r |
50 | #define EFI_CACHEABLE 0x00000008\r |
51 | #define EFI_ALLOCATED 0x00000010\r |
52 | #define EFI_NEEDS_TESTING 0x00000020\r |
53 | #define EFI_NEEDS_ECC_INITIALIZATION 0x00000040\r |
54 | \r |
55 | //\r |
56 | // *******************************************************\r |
57 | // EFI_SMRAM_HOB_DESCRIPTOR_BLOCK\r |
58 | // *******************************************************\r |
59 | //\r |
60 | typedef struct {\r |
61 | UINTN NumberOfSmmReservedRegions;\r |
62 | EFI_SMRAM_DESCRIPTOR Descriptor[1];\r |
63 | } EFI_SMRAM_HOB_DESCRIPTOR_BLOCK;\r |
64 | \r |
65 | extern EFI_GUID gEfiSmmPeiSmramMemoryReserveGuid;\r |
66 | \r |
67 | #endif\r |