]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/Dxe/Include/EfiRuntimeLib.h
1) Sync EdkCompatibilityPkg with EDK 1.04. The changes includes:
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Dxe / Include / EfiRuntimeLib.h
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004 - 2007, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 EfiRuntimeLib.h\r
15\r
16Abstract:\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
42typedef 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
51extern EFI_BOOT_SERVICES *gBS;\r
52extern EFI_SYSTEM_TABLE *gST;\r
53extern EFI_DXE_SERVICES *gDS;\r
54extern UINTN gRtErrorLevel;\r
55extern FVB_ENTRY *mFvbEntry;\r
56\r
57VOID\r
58EFIAPI\r
59EfiRuntimeLibFvbVirtualNotifyEvent (\r
60 IN EFI_EVENT Event,\r
61 IN VOID *Context\r
62 )\r
63/*++\r
64\r
65Routine Description:\r
66\r
67 Notify function to convert pointers to Fvb functions after ExitBootServices\r
68\r
69Arguments:\r
70\r
71 Event - Event whose notification function is being invoked.\r
72