]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Drivers/ArmGic/ArmGicDxe.h
ArmPkg/ArmGic: Added GicV3 support to ArmGicLib
[mirror_edk2.git] / ArmPkg / Drivers / ArmGic / ArmGicDxe.h
CommitLineData
69b5dc9f
OM
1/*++\r
2\r
3Copyright (c) 2013-2014, ARM Ltd. All rights reserved.<BR>\r
4\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13--*/\r
14\r
15#ifndef __ARM_GIC_DXE_H__\r
16#define __ARM_GIC_DXE_H__\r
17\r
f5241b57 18#include <Library/ArmGicLib.h>\r
69b5dc9f
OM
19#include <Library/ArmLib.h>\r
20#include <Library/DebugLib.h>\r
f5241b57 21#include <Library/IoLib.h>\r
69b5dc9f
OM
22#include <Library/MemoryAllocationLib.h>\r
23#include <Library/UefiBootServicesTableLib.h>\r
24\r
25#include <Protocol/Cpu.h>\r
26#include <Protocol/HardwareInterrupt.h>\r
27\r
28extern UINTN mGicNumInterrupts;\r
29extern HARDWARE_INTERRUPT_HANDLER *gRegisteredInterruptHandlers;\r
30\r
31//\r
32// Common API\r
33//\r
34EFI_STATUS\r
35InstallAndRegisterInterruptService (\r
36 IN EFI_HARDWARE_INTERRUPT_PROTOCOL *InterruptProtocol,\r
37 IN EFI_CPU_INTERRUPT_HANDLER InterruptHandler,\r
38 IN EFI_EVENT_NOTIFY ExitBootServicesEvent\r
39 );\r
40\r
0458b423
OM
41EFI_STATUS\r
42EFIAPI\r
43RegisterInterruptSource (\r
44 IN EFI_HARDWARE_INTERRUPT_PROTOCOL *This,\r
45 IN HARDWARE_INTERRUPT_SOURCE Source,\r
46 IN HARDWARE_INTERRUPT_HANDLER Handler\r
47 );\r
48\r
f5241b57
OM
49//\r
50// GicV2 API\r
51//\r
52EFI_STATUS\r
53GicV2DxeInitialize (\r
54 IN EFI_HANDLE ImageHandle,\r
55 IN EFI_SYSTEM_TABLE *SystemTable\r
56 );\r
57\r
69b5dc9f 58#endif\r