blob: 333a0372b7888efdb1ffe15fa6e5fbf49cadd86d [file] [log] [blame]
Ricardo Ribalda Delgado95c50202008-07-17 11:44:12 +02001/*
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 Denkd79de1d2013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Ricardo Ribalda Delgado95c50202008-07-17 11:44:12 +02007*/
8#ifndef XILINX_IRQ_H
9#define XILINX_IRQ_H
10
Stefan Roese1fbbe602008-07-18 12:24:41 +020011#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 Delgado95c50202008-07-17 11:44:12 +020020
Stefan Roese1fbbe602008-07-18 12:24:41 +020021#define IRQ_MASK(irq) (1 << (irq & 0x1f))
Ricardo Ribalda Delgado95c50202008-07-17 11:44:12 +020022
Stefan Roese1fbbe602008-07-18 12:24:41 +020023#define IRQ_MAX XPAR_INTC_MAX_NUM_INTR_INPUTS
Ricardo Ribalda Delgado95c50202008-07-17 11:44:12 +020024
25#endif