TianoCore EDK2 master
Loading...
Searching...
No Matches
ArmGicV2Lib.c
Go to the documentation of this file.
1
9#include <Library/ArmGicLib.h>
10#include <Library/DebugLib.h>
11#include <Library/IoLib.h>
12
14EFIAPI
15ArmGicV2AcknowledgeInterrupt (
16 IN UINTN GicInterruptInterfaceBase
17 )
18{
19 // Read the Interrupt Acknowledge Register
20 return MmioRead32 (GicInterruptInterfaceBase + ARM_GIC_ICCIAR);
21}
22
23VOID
24EFIAPI
25ArmGicV2EndOfInterrupt (
26 IN UINTN GicInterruptInterfaceBase,
27 IN UINTN Source
28 )
29{
30 ASSERT (Source <= MAX_UINT32);
31 MmioWrite32 (GicInterruptInterfaceBase + ARM_GIC_ICCEIOR, (UINT32)Source);
32}
UINT64 UINTN
UINT32 EFIAPI MmioRead32(IN UINTN Address)
Definition: IoLib.c:262
UINT32 EFIAPI MmioWrite32(IN UINTN Address, IN UINT32 Value)
Definition: IoLib.c:309
#define IN
Definition: Base.h:279