TianoCore EDK2 master
Loading...
Searching...
No Matches
LocalApicTimerDxe.h
Go to the documentation of this file.
1
10#ifndef LOCAL_APIC_TIMER_H_
11#define LOCAL_APIC_TIMER_H_
12
13#include <PiDxe.h>
14
15#include <Protocol/Cpu.h>
16#include <Protocol/Timer.h>
17
18#include <Register/LocalApic.h>
19
21#include <Library/BaseLib.h>
22#include <Library/DebugLib.h>
24#include <Library/PcdLib.h>
25
26// The default timer tick duration is set to 10 ms = 100000 100 ns units
27//
28#define DEFAULT_TIMER_TICK_DURATION 100000
29
30//
31// The Timer Vector use for interrupt
32//
33#define LOCAL_APIC_TIMER_VECTOR 32
34
35//
36// Function Prototypes
37//
38
51EFIAPI
53 IN EFI_HANDLE ImageHandle,
54 IN EFI_SYSTEM_TABLE *SystemTable
55 )
56;
57
87EFIAPI
91 )
92;
93
123EFIAPI
126 IN UINT64 TimerPeriod
127 )
128;
129
147EFIAPI
150 OUT UINT64 *TimerPeriod
151 )
152;
153
172EFIAPI
175 )
176;
177
178#endif
EFI_STATUS EFIAPI TimerDriverInitialize(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS EFIAPI TimerDriverRegisterHandler(IN EFI_TIMER_ARCH_PROTOCOL *This, IN EFI_TIMER_NOTIFY NotifyFunction)
Definition: TimerDxe.c:69
EFI_STATUS EFIAPI TimerDriverGetTimerPeriod(IN EFI_TIMER_ARCH_PROTOCOL *This, OUT UINT64 *TimerPeriod)
Definition: TimerDxe.c:193
EFI_STATUS EFIAPI TimerDriverSetTimerPeriod(IN EFI_TIMER_ARCH_PROTOCOL *This, IN UINT64 TimerPeriod)
Definition: TimerDxe.c:130
EFI_STATUS EFIAPI TimerDriverGenerateSoftInterrupt(IN EFI_TIMER_ARCH_PROTOCOL *This)
Definition: TimerDxe.c:223
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
VOID(EFIAPI * EFI_TIMER_NOTIFY)(IN UINT64 Time)
Definition: Timer.h:41
VOID EFIAPI NotifyFunction(IN EFI_EVENT Event, IN VOID *Context)
Definition: ScsiBus.c:1492
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33