mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
ArmPkg/ArmGic: drop ArmGicEnableInterruptInterface from ArmGicLib
The ArmGicLib API exposes ArmGicEnableInterruptInterface () and ArmGicDisableInterruptInterface (), but only the former is actually used, and only from the GICv2 driver. So drop the API entirely, and invoke the v2 version of the underlying interface directly. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
parent
555bbc6643
commit
ec5bb8f953
@ -356,39 +356,3 @@ ArmGicDisableDistributor (
|
||||
// Disable Gic Distributor
|
||||
MmioWrite32 (GicDistributorBase + ARM_GIC_ICDDCR, 0x0);
|
||||
}
|
||||
|
||||
VOID
|
||||
EFIAPI
|
||||
ArmGicEnableInterruptInterface (
|
||||
IN UINTN GicInterruptInterfaceBase
|
||||
)
|
||||
{
|
||||
ARM_GIC_ARCH_REVISION Revision;
|
||||
|
||||
Revision = ArmGicGetSupportedArchRevision ();
|
||||
if (Revision == ARM_GIC_ARCH_REVISION_2) {
|
||||
ArmGicV2EnableInterruptInterface (GicInterruptInterfaceBase);
|
||||
} else if (Revision == ARM_GIC_ARCH_REVISION_3) {
|
||||
ArmGicV3EnableInterruptInterface ();
|
||||
} else {
|
||||
ASSERT_EFI_ERROR (EFI_UNSUPPORTED);
|
||||
}
|
||||
}
|
||||
|
||||
VOID
|
||||
EFIAPI
|
||||
ArmGicDisableInterruptInterface (
|
||||
IN UINTN GicInterruptInterfaceBase
|
||||
)
|
||||
{
|
||||
ARM_GIC_ARCH_REVISION Revision;
|
||||
|
||||
Revision = ArmGicGetSupportedArchRevision ();
|
||||
if (Revision == ARM_GIC_ARCH_REVISION_2) {
|
||||
ArmGicV2DisableInterruptInterface (GicInterruptInterfaceBase);
|
||||
} else if (Revision == ARM_GIC_ARCH_REVISION_3) {
|
||||
ArmGicV3DisableInterruptInterface ();
|
||||
} else {
|
||||
ASSERT_EFI_ERROR (EFI_UNSUPPORTED);
|
||||
}
|
||||
}
|
||||
|
@ -451,7 +451,7 @@ GicV2DxeInitialize (
|
||||
MmioWrite32 (mGicInterruptInterfaceBase + ARM_GIC_ICCPMR, 0xff);
|
||||
|
||||
// Enable gic cpu interface
|
||||
ArmGicEnableInterruptInterface (mGicInterruptInterfaceBase);
|
||||
ArmGicV2EnableInterruptInterface (mGicInterruptInterfaceBase);
|
||||
|
||||
// Enable gic distributor
|
||||
ArmGicEnableDistributor (mGicDistributorBase);
|
||||
|
@ -133,18 +133,6 @@ ArmGicSetSecureInterrupts (
|
||||
IN UINTN GicSecureInterruptMaskSize
|
||||
);
|
||||
|
||||
VOID
|
||||
EFIAPI
|
||||
ArmGicEnableInterruptInterface (
|
||||
IN UINTN GicInterruptInterfaceBase
|
||||
);
|
||||
|
||||
VOID
|
||||
EFIAPI
|
||||
ArmGicDisableInterruptInterface (
|
||||
IN UINTN GicInterruptInterfaceBase
|
||||
);
|
||||
|
||||
VOID
|
||||
EFIAPI
|
||||
ArmGicEnableDistributor (
|
||||
|
Loading…
x
Reference in New Issue
Block a user