]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2004 - 2007, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
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 | EfiRuntimeLib.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Light weight lib to support EFI drivers.\r | |
19 | \r | |
20 | --*/\r | |
21 | \r | |
22 | #ifndef _EFI_RUNTIME_LIB_H_\r | |
23 | #define _EFI_RUNTIME_LIB_H_\r | |
24 | #define MAX_FVB_COUNT 16\r | |
25 | #include "EfiStatusCode.h"\r | |
26 | #include "EfiCommonLib.h"\r | |
27 | \r | |
28 | #include "LinkedList.h"\r | |
29 | #include "GetImage.h"\r | |
30 | #include "RtDevicePath.h"\r | |
31 | \r | |
32 | #include EFI_GUID_DEFINITION (DxeServices)\r | |
33 | #include EFI_GUID_DEFINITION (EventGroup)\r | |
34 | #include EFI_GUID_DEFINITION (EventLegacyBios)\r | |
35 | #include EFI_PROTOCOL_DEFINITION (CpuIo)\r | |
36 | #include EFI_PROTOCOL_DEFINITION (FirmwareVolume)\r | |
37 | #include EFI_PROTOCOL_DEFINITION (FirmwareVolume2)\r | |
38 | #include EFI_PROTOCOL_DEFINITION (FirmwareVolumeBlock)\r | |
39 | #include EFI_PROTOCOL_DEFINITION (FvbExtension)\r | |
40 | #include "ProcDep.h"\r | |
41 | \r | |
42 | typedef struct {\r | |
43 | EFI_HANDLE Handle;\r | |
44 | EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *Fvb;\r | |
45 | EFI_FVB_EXTENSION_PROTOCOL *FvbExtension;\r | |
46 | } FVB_ENTRY;\r | |
47 | \r | |
48 | //\r | |
49 | // Driver Lib Globals.\r | |
50 | //\r | |
51 | extern EFI_BOOT_SERVICES *gBS;\r | |
52 | extern EFI_SYSTEM_TABLE *gST;\r | |
53 | extern EFI_DXE_SERVICES *gDS;\r | |
54 | extern UINTN gRtErrorLevel;\r | |
55 | extern FVB_ENTRY *mFvbEntry;\r | |
56 | \r | |
57 | VOID\r | |
58 | EFIAPI\r | |
59 | EfiRuntimeLibFvbVirtualNotifyEvent (\r | |
60 | IN EFI_EVENT Event,\r | |
61 | IN VOID *Context\r | |
62 | )\r | |
63 | /*++\r | |
64 | \r | |
65 | Routine Description:\r | |
66 | \r | |
67 | Notify function to convert pointers to Fvb functions after ExitBootServices\r | |
68 | \r | |
69 | Arguments:\r | |
70 | \r | |
71 | Event - Event whose notification function is being invoked.\r | |
72 |