2 * arch/arm/mach-ixp2000/include/mach/entry-macro.S
4 * Low-level IRQ helper macros for IXP2000-based platforms
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
10 #include <mach/irqs.h>
15 .macro get_irqnr_preamble, base, tmp
18 .macro arch_ret_to_user, tmp1, tmp2
21 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
23 mov \irqnr, #0x0 @clear out irqnr as default
24 mov \base, #0xfe000000
25 orr \base, \base, #0x00e00000
26 orr \base, \base, #0x08
27 ldr \irqstat, [\base] @ get interrupts
34 subs \irqnr, \base, \irqnr
37 * We handle PCIA and PCIB here so we don't have an
38 * extra layer of code just to check these two bits.
40 cmp \irqnr, #IRQ_IXP2000_PCI
43 mov \base, #0xfe000000
44 orr \base, \base, #0x00c00000
45 orr \base, \base, #0x00000100
46 orr \base, \base, #0x00000058
51 movne \irqnr, #IRQ_IXP2000_PCIA
56 movne \irqnr, #IRQ_IXP2000_PCIB