2 * include/asm-arm/arch-ixp2000/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.
14 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
16 mov \irqnr, #0x0 @clear out irqnr as default
17 mov \base, #0xfe000000
18 orr \base, \base, #0x00ff0000
19 orr \base, \base, #0x0000a000
20 orr \base, \base, #0x08
21 ldr \irqstat, [\base] @ get interrupts
28 subs \irqnr, \base, \irqnr
31 * We handle PCIA and PCIB here so we don't have an
32 * extra layer of code just to check these two bits.
34 cmp \irqnr, #IRQ_IXP2000_PCI
37 mov \base, #0xfe000000
38 orr \base, \base, #0x00fd0000
39 orr \base, \base, #0x0000e100
40 orr \base, \base, #0x00000058
45 movne \irqnr, #IRQ_IXP2000_PCIA
50 movne \irqnr, #IRQ_IXP2000_PCIB