Ricardo Ribalda Delgado | 95c5020 | 2008-07-17 11:44:12 +0200 | [diff] [blame] | 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 |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
Ricardo Ribalda Delgado | 95c5020 | 2008-07-17 11:44:12 +0200 | [diff] [blame] | 7 | */ |
| 8 | #ifndef XILINX_IRQ_H |
| 9 | #define XILINX_IRQ_H |
| 10 | |
Stefan Roese | 1fbbe60 | 2008-07-18 12:24:41 +0200 | [diff] [blame] | 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 */ |
Ricardo Ribalda Delgado | 95c5020 | 2008-07-17 11:44:12 +0200 | [diff] [blame] | 20 | |
Stefan Roese | 1fbbe60 | 2008-07-18 12:24:41 +0200 | [diff] [blame] | 21 | #define IRQ_MASK(irq) (1 << (irq & 0x1f)) |
Ricardo Ribalda Delgado | 95c5020 | 2008-07-17 11:44:12 +0200 | [diff] [blame] | 22 | |
Stefan Roese | 1fbbe60 | 2008-07-18 12:24:41 +0200 | [diff] [blame] | 23 | #define IRQ_MAX XPAR_INTC_MAX_NUM_INTR_INPUTS |
Ricardo Ribalda Delgado | 95c5020 | 2008-07-17 11:44:12 +0200 | [diff] [blame] | 24 | |
| 25 | #endif |