TianoCore EDK2 master
Loading...
Searching...
No Matches
CpuDxe.h
Go to the documentation of this file.
1
10#ifndef CPU_DXE_H_
11#define CPU_DXE_H_
12
13#include <PiDxe.h>
14
16#include <Protocol/Cpu.h>
20#include <Library/TimerLib.h>
21#include <Library/BaseLib.h>
24#include <Library/CpuLib.h>
25#include <Library/DebugLib.h>
26#include <Library/HobLib.h>
30
47EFIAPI
51 IN UINT64 Length,
52 IN EFI_CPU_FLUSH_TYPE FlushType
53 );
54
65EFIAPI
68 );
69
80EFIAPI
83 );
84
96EFIAPI
99 OUT BOOLEAN *State
100 );
101
115EFIAPI
116CpuInit (
118 IN EFI_CPU_INIT_TYPE InitType
119 );
120
142EFIAPI
145 IN EFI_EXCEPTION_TYPE InterruptType,
146 IN EFI_CPU_INTERRUPT_HANDLER InterruptHandler
147 );
148
173EFIAPI
176 IN UINT32 TimerIndex,
177 OUT UINT64 *TimerValue,
178 OUT UINT64 *TimerPeriod OPTIONAL
179 );
180
198EFIAPI
201 IN EFI_PHYSICAL_ADDRESS BaseAddress,
202 IN UINT64 Length,
203 IN UINT64 Attributes
204 );
205
206#endif
EFI_STATUS EFIAPI CpuSetMemoryAttributes(IN EFI_CPU_ARCH_PROTOCOL *This, IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length, IN UINT64 Attributes)
Definition: CpuMmuCommon.c:229
EFI_CPU_FLUSH_TYPE
Definition: Cpu.h:24
EFI_CPU_INIT_TYPE
Definition: Cpu.h:34
VOID(EFIAPI * EFI_CPU_INTERRUPT_HANDLER)(IN CONST EFI_EXCEPTION_TYPE InterruptType, IN CONST EFI_SYSTEM_CONTEXT SystemContext)
Definition: Cpu.h:52
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
INTN EFI_EXCEPTION_TYPE
Definition: DebugSupport.h:35
UINT64 EFI_PHYSICAL_ADDRESS
Definition: UefiBaseType.h:50
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_STATUS EFIAPI CpuGetInterruptState(IN EFI_CPU_ARCH_PROTOCOL *This, OUT BOOLEAN *State)
Definition: CpuDxe.c:183
EFI_STATUS EFIAPI CpuRegisterInterruptHandler(IN EFI_CPU_ARCH_PROTOCOL *This, IN EFI_EXCEPTION_TYPE InterruptType, IN EFI_CPU_INTERRUPT_HANDLER InterruptHandler)
Definition: CpuDxe.c:226
EFI_STATUS EFIAPI CpuGetTimerValue(IN EFI_CPU_ARCH_PROTOCOL *This, IN UINT32 TimerIndex, OUT UINT64 *TimerValue, OUT UINT64 *TimerPeriod OPTIONAL)
Definition: CpuDxe.c:238
EFI_STATUS EFIAPI CpuDisableInterrupt(IN EFI_CPU_ARCH_PROTOCOL *This)
Definition: CpuDxe.c:158
EFI_STATUS EFIAPI CpuInit(IN EFI_CPU_ARCH_PROTOCOL *This, IN EFI_CPU_INIT_TYPE InitType)
Definition: CpuDxe.c:215
EFI_STATUS EFIAPI CpuFlushCpuDataCache(IN EFI_CPU_ARCH_PROTOCOL *This, IN EFI_PHYSICAL_ADDRESS Start, IN UINT64 Length, IN EFI_CPU_FLUSH_TYPE FlushType)
Definition: CpuDxe.c:101
EFI_STATUS EFIAPI CpuEnableInterrupt(IN EFI_CPU_ARCH_PROTOCOL *This)
Definition: CpuDxe.c:137