]>
Commit | Line | Data |
---|---|---|
e42e9404 | 1 | /** @file\r |
2 | The internal header file that declared a data structure that is shared\r | |
3 | between the SMM IPL and the SMM Core.\r | |
4 | \r | |
5 | Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r | |
6 | This program and the accompanying materials are licensed and made available \r | |
7 | under the terms and conditions of the BSD License which accompanies this \r | |
8 | distribution. The full text of the license may be found at \r | |
9 | http://opensource.org/licenses/bsd-license.php \r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #ifndef _PI_SMM_CORE_PRIVATE_DATA_H_\r | |
17 | #define _PI_SMM_CORE_PRIVATE_DATA_H_\r | |
18 | \r | |
19 | ///\r | |
20 | /// Signature for the private structure shared between the SMM IPL and the SMM Core\r | |
21 | ///\r | |
22 | #define SMM_CORE_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('s', 'm', 'm', 'c')\r | |
23 | \r | |
24 | ///\r | |
25 | /// Private structure that is used to share information between the SMM IPL and \r | |
26 | /// the SMM Core. This structure is allocated from memory of type EfiRuntimeServicesData.\r | |
27 | /// Since runtime memory types are converted to available memory when a legacy boot \r | |
28 | /// is performed, the SMM Core must access any fields of this structure if a legacy \r | |
29 | /// boot is performed. As a result, the SMM IPL must create an event notification \r | |
30 | /// for the Legacy Boot event and notify the SMM Core that a legacy boot is being \r | |
31 | /// performed. The SMM Core can then use this information to filter accesses to \r | |
32 | /// thos structure.\r | |
33 | ///\r | |
34 | typedef struct {\r | |
35 | UINTN Signature;\r | |
36 | \r | |
37 | ///\r | |
38 | /// The ImageHandle passed into the entry point of the SMM IPL. This ImageHandle\r | |
39 | /// is used by the SMM Core to fill in the ParentImageHandle field of the Loaded\r | |
40 | /// Image Protocol for each SMM Driver that is dispatched by the SMM Core.\r | |
41 | ///\r | |
42 | EFI_HANDLE SmmIplImageHandle;\r | |
43 | \r | |
44 | ///\r | |
45 | /// The number of SMRAM ranges passed from the SMM IPL to the SMM Core. The SMM\r | |
46 | /// Core uses these ranges of SMRAM to initialize the SMM Core memory manager.\r | |
47 | ///\r | |
48 | UINTN SmramRangeCount;\r | |
49 | \r | |
50 | ///\r | |
51 | /// A table of SMRAM ranges passed from the SMM IPL to the SMM Core. The SMM\r | |
52 | /// Core uses these ranges of SMRAM to initialize the SMM Core memory manager.\r | |
53 | ///\r | |
54 | EFI_SMRAM_DESCRIPTOR *SmramRanges;\r | |
55 | \r | |
56 | ///\r | |
57 | /// The SMM Foundation Entry Point. The SMM Core fills in this field when the \r | |
58 | /// SMM Core is initialized. The SMM IPL is responsbile for registering this entry \r | |
59 | /// point with the SMM Configuration Protocol. The SMM Configuration Protocol may \r | |
60 | /// not be available at the time the SMM IPL and SMM Core are started, so the SMM IPL\r | |
61 | /// sets up a protocol notification on the SMM Configuration Protocol and registers \r | |
62 | /// the SMM Foundation Entry Point as soon as the SMM Configuration Protocol is \r | |
63 | /// available.\r | |
64 | ///\r | |
65 | EFI_SMM_ENTRY_POINT SmmEntryPoint;\r | |
66 | \r | |
67 | ///\r | |
68 | /// Boolean flag set to TRUE while an SMI is being processed by the SMM Core.\r | |
69 | /// \r | |
70 | BOOLEAN SmmEntryPointRegistered;\r | |
71 | \r | |
72 | ///\r | |
73 | /// Boolean flag set to TRUE while an SMI is being processed by the SMM Core.\r | |
74 | /// \r | |
75 | BOOLEAN InSmm;\r | |
76 | \r | |
77 | ///\r | |
78 | /// This field is set by the SMM Core then the SMM Core is initialized. This field is\r | |
79 | /// used by the SMM Base 2 Protocol and SMM Communication Protocol implementations in\r | |
80 | /// the SMM IPL. \r | |
81 | ///\r | |
82 | EFI_SMM_SYSTEM_TABLE2 *Smst;\r | |
83 | \r | |
84 | ///\r | |
85 | /// This field is used by the SMM Communicatioon Protocol to pass a buffer into \r | |
86 | /// a software SMI handler and for the software SMI handler to pass a buffer back to\r | |
87 | /// the caller of the SMM Communication Protocol. \r | |
88 | ///\r | |
89 | VOID *CommunicationBuffer;\r | |
90 | \r | |
91 | ///\r | |
92 | /// This field is used by the SMM Communicatioon Protocol to pass the size of a buffer,\r | |
93 | /// in bytes, into a software SMI handler and for the software SMI handler to pass the \r | |
94 | /// size, in bytes, of a buffer back to the caller of the SMM Communication Protocol.\r | |
95 | ///\r | |
96 | UINTN *BufferSize;\r | |
97 | \r | |
98 | ///\r | |
99 | /// This field is used by the SMM Communication Protocol to pass the return status from\r | |
100 | /// a software SMI handler back to the caller of the SMM Communication Protocol.\r | |
101 | ///\r | |
102 | EFI_STATUS ReturnStatus;\r | |
103 | } SMM_CORE_PRIVATE_DATA;\r | |
104 | \r | |
105 | #endif\r |