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