]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/powerpc/include/asm/xilinx_irq.h
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / powerpc / include / asm / xilinx_irq.h
1 /*
2  * (C) Copyright 2008
3  * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es
4  * This work has been supported by: QTechnology  http://qtec.com/
5  * Based on interrupts.c Wolfgang Denk-DENX Software Engineering-wd@denx.de
6  * SPDX-License-Identifier:     GPL-2.0+
7 */
8 #ifndef XILINX_IRQ_H
9 #define XILINX_IRQ_H
10
11 #define intc    XPAR_INTC_0_BASEADDR
12 #define ISR     (intc + (0 * 4))        /* Interrupt Status Register */
13 #define IPR     (intc + (1 * 4))        /* Interrupt Pending Register */
14 #define IER     (intc + (2 * 4))        /* Interrupt Enable Register */
15 #define IAR     (intc + (3 * 4))        /* Interrupt Acknowledge Register */
16 #define SIE     (intc + (4 * 4))        /* Set Interrupt Enable bits */
17 #define CIE     (intc + (5 * 4))        /* Clear Interrupt Enable bits */
18 #define IVR     (intc + (6 * 4))        /* Interrupt Vector Register */
19 #define MER     (intc + (7 * 4))        /* Master Enable Register */
20
21 #define IRQ_MASK(irq)   (1 << (irq & 0x1f))
22
23 #define IRQ_MAX         XPAR_INTC_MAX_NUM_INTR_INPUTS
24
25 #endif