blob: 5c9ca76a7ebff285d50b35f04e1638089b2c3bfe [file] [log] [blame]
Gabor Juhosd4a67d92011-01-04 21:28:14 +01001/*
2 * Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org>
3 * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 as published
7 * by the Free Software Foundation.
8 */
9#ifndef __ASM_MACH_ATH79_IRQ_H
10#define __ASM_MACH_ATH79_IRQ_H
11
12#define MIPS_CPU_IRQ_BASE 0
Gabor Juhos53330332013-02-15 18:53:47 +000013#define NR_IRQS 51
Gabor Juhosd4a67d92011-01-04 21:28:14 +010014
Gabor Juhos7e69c102013-02-07 19:32:23 +000015#define ATH79_CPU_IRQ(_x) (MIPS_CPU_IRQ_BASE + (_x))
16
Gabor Juhosd4a67d92011-01-04 21:28:14 +010017#define ATH79_MISC_IRQ_BASE 8
Gabor Juhos2f8501b2011-06-05 23:38:44 +020018#define ATH79_MISC_IRQ_COUNT 32
Gabor Juhos9c099c42013-01-29 16:13:17 +000019#define ATH79_MISC_IRQ(_x) (ATH79_MISC_IRQ_BASE + (_x))
Gabor Juhosd4a67d92011-01-04 21:28:14 +010020
Gabor Juhos93ef85b2012-03-14 10:36:06 +010021#define ATH79_PCI_IRQ_BASE (ATH79_MISC_IRQ_BASE + ATH79_MISC_IRQ_COUNT)
22#define ATH79_PCI_IRQ_COUNT 6
23#define ATH79_PCI_IRQ(_x) (ATH79_PCI_IRQ_BASE + (_x))
24
Gabor Juhosfce5cc62012-03-14 10:45:25 +010025#define ATH79_IP2_IRQ_BASE (ATH79_PCI_IRQ_BASE + ATH79_PCI_IRQ_COUNT)
26#define ATH79_IP2_IRQ_COUNT 2
27#define ATH79_IP2_IRQ(_x) (ATH79_IP2_IRQ_BASE + (_x))
28
Gabor Juhos53330332013-02-15 18:53:47 +000029#define ATH79_IP3_IRQ_BASE (ATH79_IP2_IRQ_BASE + ATH79_IP2_IRQ_COUNT)
30#define ATH79_IP3_IRQ_COUNT 3
31#define ATH79_IP3_IRQ(_x) (ATH79_IP3_IRQ_BASE + (_x))
32
Gabor Juhosd4a67d92011-01-04 21:28:14 +010033#include_next <irq.h>
34
35#endif /* __ASM_MACH_ATH79_IRQ_H */