REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the ArmPkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Andrew Fish <afish@apple.com>
31 lines
597 B
C
31 lines
597 B
C
/** @file
|
|
*
|
|
* Copyright (c) 2013-2014, ARM Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
*
|
|
**/
|
|
|
|
#include <Library/ArmGicLib.h>
|
|
#include <Library/IoLib.h>
|
|
|
|
UINTN
|
|
EFIAPI
|
|
ArmGicV2AcknowledgeInterrupt (
|
|
IN UINTN GicInterruptInterfaceBase
|
|
)
|
|
{
|
|
// Read the Interrupt Acknowledge Register
|
|
return MmioRead32 (GicInterruptInterfaceBase + ARM_GIC_ICCIAR);
|
|
}
|
|
|
|
VOID
|
|
EFIAPI
|
|
ArmGicV2EndOfInterrupt (
|
|
IN UINTN GicInterruptInterfaceBase,
|
|
IN UINTN Source
|
|
)
|
|
{
|
|
MmioWrite32 (GicInterruptInterfaceBase + ARM_GIC_ICCEIOR, Source);
|
|
}
|