TianoCore EDK2 master
Loading...
Searching...
No Matches
ArmGicDxe.c
1/*++
2
3Copyright (c) 2013-2014, ARM Ltd. All rights reserved.<BR>
4
5SPDX-License-Identifier: BSD-2-Clause-Patent
6
7Module Name:
8
9 ArmGicDxe.c
10
11Abstract:
12
13 Driver implementing the GIC interrupt controller protocol
14
15--*/
16
17#include <PiDxe.h>
18
19#include "ArmGicDxe.h"
20
34InterruptDxeInitialize (
35 IN EFI_HANDLE ImageHandle,
36 IN EFI_SYSTEM_TABLE *SystemTable
37 )
38{
39 EFI_STATUS Status;
40 ARM_GIC_ARCH_REVISION Revision;
41
42 Revision = ArmGicGetSupportedArchRevision ();
43
44 if (Revision == ARM_GIC_ARCH_REVISION_2) {
45 Status = GicV2DxeInitialize (ImageHandle, SystemTable);
46 } else if (Revision == ARM_GIC_ARCH_REVISION_3) {
47 Status = GicV3DxeInitialize (ImageHandle, SystemTable);
48 } else {
49 Status = EFI_UNSUPPORTED;
50 }
51
52 return Status;
53}
#define IN
Definition: Base.h:279
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33