2 * Low-level IRQ helper macros for Gemini platform.
4 * Copyright (C) 2001-2006 Storlink, Corp.
5 * Copyright (C) 2008-2009 Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
7 * This file is licensed under the terms of the GNU General Public
8 * License version 2. This program is licensed "as is" without any
9 * warranty of any kind, whether express or implied.
11 #include <mach/hardware.h>
13 #define IRQ_STATUS 0x14
15 .macro get_irqnr_preamble, base, tmp
18 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
19 ldr \irqstat, =IO_ADDRESS(GEMINI_INTERRUPT_BASE + IRQ_STATUS)
20 ldr \irqnr, [\irqstat]
28 add \irqnr, \irqnr, #1
29 mov \tmp, \tmp, lsr #1