]> git.proxmox.com Git - mirror_edk2.git/blob - 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
1 /*++
2
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 Runtime.h
15
16 Abstract:
17
18 Runtime Architectural Protocol as defined in the DXE CIS
19
20 This code is used to produce the EFI runtime virtual switch over
21
22 --*/
23
24 #ifndef _RUNTIME_H_
25 #define _RUNTIME_H_
26
27 //
28 // Data structures
29 //
30 typedef struct {
31 LIST_ENTRY Link;
32 BOOLEAN Valid;
33 EFI_PHYSICAL_ADDRESS ImageBase;
34 UINTN ImageSize; // In no. of pages
35 VOID *RelocationData;
36 } RUNTIME_IMAGE_RELOCATION_DATA;
37
38 typedef struct {
39 LIST_ENTRY Link;
40 IN UINT32 Type;
41 IN EFI_TPL NotifyTpl;
42 IN EFI_EVENT_NOTIFY NotifyFunction;
43 IN VOID *NotifyContext;
44 IN EFI_EVENT Event;
45 } RUNTIME_NOTIFY_EVENT_DATA;
46
47 //
48 // Function Prototypes
49 //
50 VOID
51 RelocatePeImageForRuntime (
52 RUNTIME_IMAGE_RELOCATION_DATA *Image
53 )
54 ;
55
56 EFI_STATUS
57 EFIAPI
58 RuntimeDriverCalculateCrc32 (
59 IN VOID *Data,
60 IN UINTN DataSize,
61 OUT UINT32 *CrcOut
62 )
63 ;
64
65 EFI_STATUS
66 EFIAPI
67 RuntimeDriverRegisterImage (
68 IN EFI_RUNTIME_ARCH_PROTOCOL *This,
69 IN EFI_PHYSICAL_ADDRESS ImageBase,
70 IN UINTN ImageSize,
71 IN VOID *RelocationData
72 )
73 ;
74
75 EFI_STATUS
76 EFIAPI
77 RuntimeDriverRegisterEvent (
78 IN EFI_RUNTIME_ARCH_PROTOCOL *This,
79 IN UINT32 Type,
80 IN EFI_TPL NotifyTpl,
81 IN EFI_EVENT_NOTIFY NotifyFunction,
82 IN VOID *NotifyContext,
83 IN EFI_EVENT *Event
84 )
85 ;
86
87 EFI_STATUS
88 EFIAPI
89 RuntimeDriverConvertPointer (
90 IN UINTN DebugDisposition,
91 IN OUT VOID **ConvertAddress
92 )
93 ;
94
95 VOID
96 RuntimeDriverInitializeCrc32Table (
97 VOID
98 )
99 ;
100
101 EFI_STATUS
102 EFIAPI
103 RuntimeDriverInitialize (
104 IN EFI_HANDLE ImageHandle,
105 IN EFI_SYSTEM_TABLE *SystemTable
106 )
107 ;
108
109
110 //
111 // Cache Flush Routine.
112 //
113 EFI_STATUS
114 FlushCpuCache (
115 IN EFI_PHYSICAL_ADDRESS Start,
116 IN UINT64 Length
117 )
118 ;
119
120 #endif