2008-07-17 09:44:12 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2008
|
2016-01-26 10:24:08 +00:00
|
|
|
* Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@gmail.com
|
2008-07-17 09:44:12 +00:00
|
|
|
* This work has been supported by: QTechnology http://qtec.com/
|
|
|
|
* Based on interrupts.c Wolfgang Denk-DENX Software Engineering-wd@denx.de
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2008-07-17 09:44:12 +00:00
|
|
|
*/
|
|
|
|
#ifndef XILINX_IRQ_H
|
|
|
|
#define XILINX_IRQ_H
|
|
|
|
|
2008-07-18 10:24:41 +00:00
|
|
|
#define intc XPAR_INTC_0_BASEADDR
|
|
|
|
#define ISR (intc + (0 * 4)) /* Interrupt Status Register */
|
|
|
|
#define IPR (intc + (1 * 4)) /* Interrupt Pending Register */
|
|
|
|
#define IER (intc + (2 * 4)) /* Interrupt Enable Register */
|
|
|
|
#define IAR (intc + (3 * 4)) /* Interrupt Acknowledge Register */
|
|
|
|
#define SIE (intc + (4 * 4)) /* Set Interrupt Enable bits */
|
|
|
|
#define CIE (intc + (5 * 4)) /* Clear Interrupt Enable bits */
|
|
|
|
#define IVR (intc + (6 * 4)) /* Interrupt Vector Register */
|
|
|
|
#define MER (intc + (7 * 4)) /* Master Enable Register */
|
2008-07-17 09:44:12 +00:00
|
|
|
|
2008-07-18 10:24:41 +00:00
|
|
|
#define IRQ_MASK(irq) (1 << (irq & 0x1f))
|
2008-07-17 09:44:12 +00:00
|
|
|
|
2008-07-18 10:24:41 +00:00
|
|
|
#define IRQ_MAX XPAR_INTC_MAX_NUM_INTR_INPUTS
|
2008-07-17 09:44:12 +00:00
|
|
|
|
|
|
|
#endif
|