]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
4ea9375a HT |
3 | Copyright (c) 2004, 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 | Module Name:\r | |
13 | \r | |
14 | SmmRuntimeLib.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | SMM Related prototypes that can be referenced for Preboot Configuration only.\r | |
19 | \r | |
20 | --*/\r | |
21 | \r | |
22 | #ifndef _SMM_RUNTIME_LIB_H_\r | |
23 | #define _SMM_RUNTIME_LIB_H_\r | |
24 | \r | |
25 | #include "Tiano.h"\r | |
26 | #include "EfiRuntimeLib.h"\r | |
27 | \r | |
28 | BOOLEAN\r | |
29 | EfiInSmm (\r | |
30 | VOID\r | |
31 | )\r | |
32 | /*++\r | |
33 | \r | |
34 | Routine Description:\r | |
35 | \r | |
36 | Test whether in Smm mode currently.\r | |
37 | \r | |
38 | Arguments:\r | |
39 | \r | |
40 | None\r | |
41 | \r | |
42 | Returns:\r | |
43 | \r | |
44 | TRUE - In Smm mode\r | |
45 | FALSE - Not in Smm mode\r | |
46 | \r | |
47 | --*/\r | |
48 | ;\r | |
49 | \r | |
50 | EFI_STATUS\r | |
51 | RegisterSmmRuntimeDriver (\r | |
52 | IN EFI_HANDLE ImageHandle,\r | |
53 | IN EFI_SYSTEM_TABLE *SystemTable,\r | |
54 | OUT EFI_HANDLE *SmmImageHandle\r | |
55 | )\r | |
56 | /*++\r | |
57 | \r | |
58 | Routine Description:\r | |
59 | \r | |
60 | Registers a Driver with the SMM.\r | |
61 | \r | |
62 | Arguments:\r | |
63 | \r | |
64 | ImageHandle - The firmware allocated handle for the EFI image. \r | |
65 | SystemTable - A pointer to the EFI System Table.\r | |
66 | SmmImageHandle - Image handle returned by the SMM driver.\r | |
67 | \r | |
68 | Returns:\r | |
69 | \r | |
70 | Status code\r | |
71 | \r | |
72 | --*/\r | |
73 | ;\r | |
74 | \r | |
75 | #endif\r |