]> git.proxmox.com Git - mirror_edk2.git/blob - EdkModulePkg/Universal/Runtime/RuntimeDxe/Runtime.h
Updated the Runtime Driver to use the MDE libs for cache flush and removed local...
[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 EFI_STATUS
56 EFIAPI
57 RuntimeDriverCalculateCrc32 (
58 IN VOID *Data,
59 IN UINTN DataSize,
60 OUT UINT32 *CrcOut
61 );
62
63 EFI_STATUS
64 EFIAPI
65 RuntimeDriverRegisterImage (
66 IN EFI_RUNTIME_ARCH_PROTOCOL *This,
67 IN EFI_PHYSICAL_ADDRESS ImageBase,
68 IN UINTN ImageSize,
69 IN VOID *RelocationData
70 );
71
72 EFI_STATUS
73 EFIAPI
74 RuntimeDriverRegisterEvent (
75 IN EFI_RUNTIME_ARCH_PROTOCOL *This,
76 IN UINT32 Type,
77 IN EFI_TPL NotifyTpl,
78 IN EFI_EVENT_NOTIFY NotifyFunction,
79 IN VOID *NotifyContext,
80 IN EFI_EVENT *Event
81 );
82
83 EFI_STATUS
84 EFIAPI
85 RuntimeDriverConvertPointer (
86 IN UINTN DebugDisposition,
87 IN OUT VOID **ConvertAddress
88 );
89
90 VOID
91 RuntimeDriverInitializeCrc32Table (
92 VOID
93 );
94
95 EFI_STATUS
96 EFIAPI
97 RuntimeDriverInitialize (
98 IN EFI_HANDLE ImageHandle,
99 IN EFI_SYSTEM_TABLE *SystemTable
100 );
101
102
103
104 #endif