]> git.proxmox.com Git - mirror_edk2.git/blob - Omap35xxPkg/Include/Omap3530/Omap3530Interrupt.h
Omap35xxPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / Omap35xxPkg / Include / Omap3530 / Omap3530Interrupt.h
1 /** @file
2
3 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
4 Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #ifndef __OMAP3530INTERRUPT_H__
11 #define __OMAP3530INTERRUPT_H__
12
13 #include <Library/PcdLib.h>
14
15 #define INTERRUPT_BASE (PcdGet32 (PcdInterruptBaseAddress))
16
17 #define INT_NROF_VECTORS (96)
18 #define MAX_VECTOR (INT_NROF_VECTORS - 1)
19 #define INTCPS_SYSCONFIG (INTERRUPT_BASE + 0x0010)
20 #define INTCPS_SYSSTATUS (INTERRUPT_BASE + 0x0014)
21 #define INTCPS_SIR_IRQ (INTERRUPT_BASE + 0x0040)
22 #define INTCPS_SIR_IFQ (INTERRUPT_BASE + 0x0044)
23 #define INTCPS_CONTROL (INTERRUPT_BASE + 0x0048)
24 #define INTCPS_PROTECTION (INTERRUPT_BASE + 0x004C)
25 #define INTCPS_IDLE (INTERRUPT_BASE + 0x0050)
26 #define INTCPS_IRQ_PRIORITY (INTERRUPT_BASE + 0x0060)
27 #define INTCPS_FIQ_PRIORITY (INTERRUPT_BASE + 0x0064)
28 #define INTCPS_THRESHOLD (INTERRUPT_BASE + 0x0068)
29 #define INTCPS_ITR(n) (INTERRUPT_BASE + 0x0080 + (0x20 * (n)))
30 #define INTCPS_MIR(n) (INTERRUPT_BASE + 0x0084 + (0x20 * (n)))
31 #define INTCPS_MIR_CLEAR(n) (INTERRUPT_BASE + 0x0088 + (0x20 * (n)))
32 #define INTCPS_MIR_SET(n) (INTERRUPT_BASE + 0x008C + (0x20 * (n)))
33 #define INTCPS_ISR_SET(n) (INTERRUPT_BASE + 0x0090 + (0x20 * (n)))
34 #define INTCPS_ISR_CLEAR(n) (INTERRUPT_BASE + 0x0094 + (0x20 * (n)))
35 #define INTCPS_PENDING_IRQ(n) (INTERRUPT_BASE + 0x0098 + (0x20 * (n)))
36 #define INTCPS_PENDING_FIQ(n) (INTERRUPT_BASE + 0x009C + (0x20 * (n)))
37 #define INTCPS_ILR(m) (INTERRUPT_BASE + 0x0100 + (0x04 * (m)))
38
39 #define INTCPS_ILR_FIQ BIT0
40 #define INTCPS_SIR_IRQ_MASK (0x7F)
41 #define INTCPS_CONTROL_NEWIRQAGR BIT0
42 #define INTCPS_CONTROL_NEWFIQAGR BIT1
43
44 #endif // __OMAP3530INTERRUPT_H__
45