]>
Commit | Line | Data |
---|---|---|
69b5dc9f OM |
1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2013-2014, ARM Ltd. All rights reserved.<BR>\r | |
4 | \r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT 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 | |
28 | extern UINTN mGicNumInterrupts;\r | |
29 | extern HARDWARE_INTERRUPT_HANDLER *gRegisteredInterruptHandlers;\r | |
30 | \r | |
31 | //\r | |
32 | // Common API\r | |
33 | //\r | |
34 | EFI_STATUS\r | |
35 | InstallAndRegisterInterruptService (\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 |
41 | EFI_STATUS\r |
42 | EFIAPI\r | |
43 | RegisterInterruptSource (\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 | |
52 | EFI_STATUS\r | |
53 | GicV2DxeInitialize (\r | |
54 | IN EFI_HANDLE ImageHandle,\r | |
55 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
56 | );\r | |
57 | \r | |
69b5dc9f | 58 | #endif\r |