]> git.proxmox.com Git - mirror_edk2.git/blame - EdkModulePkg/Universal/Runtime/RuntimeDxe/Runtime.h
Removed cross references from PciCf8Lib and PciExpressLib class to PciLib class.
[mirror_edk2.git] / EdkModulePkg / Universal / Runtime / RuntimeDxe / Runtime.h
CommitLineData
878ddf1f 1/*++\r
2\r
3Copyright (c) 2006, 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 Runtime.h\r
15\r
16Abstract:\r
17\r
18 Runtime Architectural Protocol as defined in the DXE CIS\r
19\r
20 This code is used to produce the EFI runtime virtual switch over\r
21\r
22--*/\r
23\r
24#ifndef _RUNTIME_H_\r
25#define _RUNTIME_H_\r
26\r
27//\r
28// Data structures\r
29//\r
30typedef struct {\r
31 LIST_ENTRY Link;\r
32 BOOLEAN Valid;\r
33 EFI_PHYSICAL_ADDRESS ImageBase;\r
34 UINTN ImageSize; // In no. of pages\r
35 VOID *RelocationData;\r
36} RUNTIME_IMAGE_RELOCATION_DATA;\r
37\r
38typedef struct {\r
39 LIST_ENTRY Link;\r
40 IN UINT32 Type;\r
41 IN EFI_TPL NotifyTpl;\r
42 IN EFI_EVENT_NOTIFY NotifyFunction;\r
43 IN VOID *NotifyContext;\r
44 IN EFI_EVENT Event;\r
45} RUNTIME_NOTIFY_EVENT_DATA;\r
46\r
47//\r
48// Function Prototypes\r
49//\r
50VOID\r
51RelocatePeImageForRuntime (\r
52 RUNTIME_IMAGE_RELOCATION_DATA *Image\r
53 )\r
54;\r
55\r
878ddf1f 56EFI_STATUS\r
57EFIAPI\r
58RuntimeDriverCalculateCrc32 (\r
59 IN VOID *Data,\r
60 IN UINTN DataSize,\r
61 OUT UINT32 *CrcOut\r
62 )\r
63;\r
64\r
65EFI_STATUS\r
66EFIAPI\r
67RuntimeDriverRegisterImage (\r
68 IN EFI_RUNTIME_ARCH_PROTOCOL *This,\r
69 IN EFI_PHYSICAL_ADDRESS ImageBase,\r
70 IN UINTN ImageSize,\r
71 IN VOID *RelocationData\r
72 )\r
73;\r
74\r
75EFI_STATUS\r
76EFIAPI\r
77RuntimeDriverRegisterEvent (\r
78 IN EFI_RUNTIME_ARCH_PROTOCOL *This,\r
79 IN UINT32 Type,\r
80 IN EFI_TPL NotifyTpl,\r
81 IN EFI_EVENT_NOTIFY NotifyFunction,\r
82 IN VOID *NotifyContext,\r
83 IN EFI_EVENT *Event\r
84 )\r
85;\r
86\r
87EFI_STATUS\r
88EFIAPI\r
89RuntimeDriverConvertPointer (\r
90 IN UINTN DebugDisposition,\r
91 IN OUT VOID **ConvertAddress\r
92 )\r
93;\r
94\r
95VOID\r
96RuntimeDriverInitializeCrc32Table (\r
97 VOID\r
98 )\r
99;\r
100\r
101EFI_STATUS\r
102EFIAPI\r
103RuntimeDriverInitialize (\r
104 IN EFI_HANDLE ImageHandle,\r
105 IN EFI_SYSTEM_TABLE *SystemTable\r
106 )\r
107;\r
108\r
109\r
110//\r
111// Cache Flush Routine.\r
112//\r
113EFI_STATUS\r
114FlushCpuCache (\r
115 IN EFI_PHYSICAL_ADDRESS Start,\r
116 IN UINT64 Length\r
117 )\r
118;\r
119\r
120#endif\r