]> git.ipfire.org Git - thirdparty/kernel/stable.git/blame - arch/mips/include/asm/mach-ath79/irq.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
[thirdparty/kernel/stable.git] / arch / mips / include / asm / mach-ath79 / irq.h
CommitLineData
d2912cb1 1/* SPDX-License-Identifier: GPL-2.0-only */
d4a67d9d
GJ
2/*
3 * Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org>
4 * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
d4a67d9d
GJ
5 */
6#ifndef __ASM_MACH_ATH79_IRQ_H
7#define __ASM_MACH_ATH79_IRQ_H
8
9#define MIPS_CPU_IRQ_BASE 0
53330332 10#define NR_IRQS 51
d4a67d9d 11
7e69c10a
GJ
12#define ATH79_CPU_IRQ(_x) (MIPS_CPU_IRQ_BASE + (_x))
13
d4a67d9d 14#define ATH79_MISC_IRQ_BASE 8
2f8501b9 15#define ATH79_MISC_IRQ_COUNT 32
9c099c4e 16#define ATH79_MISC_IRQ(_x) (ATH79_MISC_IRQ_BASE + (_x))
d4a67d9d 17
93ef85b5
GJ
18#define ATH79_PCI_IRQ_BASE (ATH79_MISC_IRQ_BASE + ATH79_MISC_IRQ_COUNT)
19#define ATH79_PCI_IRQ_COUNT 6
20#define ATH79_PCI_IRQ(_x) (ATH79_PCI_IRQ_BASE + (_x))
21
fce5cc6e
GJ
22#define ATH79_IP2_IRQ_BASE (ATH79_PCI_IRQ_BASE + ATH79_PCI_IRQ_COUNT)
23#define ATH79_IP2_IRQ_COUNT 2
24#define ATH79_IP2_IRQ(_x) (ATH79_IP2_IRQ_BASE + (_x))
25
53330332
GJ
26#define ATH79_IP3_IRQ_BASE (ATH79_IP2_IRQ_BASE + ATH79_IP2_IRQ_COUNT)
27#define ATH79_IP3_IRQ_COUNT 3
28#define ATH79_IP3_IRQ(_x) (ATH79_IP3_IRQ_BASE + (_x))
29
d4a67d9d
GJ
30#include_next <irq.h>
31
32#endif /* __ASM_MACH_ATH79_IRQ_H */