Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Low-level IRQ helper macros for TI DaVinci-based platforms |
| 3 | * |
| 4 | * Author: Kevin Hilman, MontaVista Software, Inc. <source@mvista.com> |
| 5 | * |
| 6 | * 2007 (c) MontaVista Software, Inc. This file is licensed under |
| 7 | * the terms of the GNU General Public License version 2. This program |
| 8 | * is licensed "as is" without any warranty of any kind, whether express |
| 9 | * or implied. |
| 10 | */ |
| 11 | #include <mach/io.h> |
| 12 | #include <mach/irqs.h> |
| 13 | |
| 14 | .macro disable_fiq |
| 15 | .endm |
| 16 | |
| 17 | .macro get_irqnr_preamble, base, tmp |
| 18 | ldr \base, =IO_ADDRESS(DAVINCI_ARM_INTC_BASE) |
| 19 | .endm |
| 20 | |
| 21 | .macro arch_ret_to_user, tmp1, tmp2 |
| 22 | .endm |
| 23 | |
| 24 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp |
| 25 | ldr \tmp, [\base, #0x14] |
Troy Kisky | ce8ccaf | 2008-02-11 14:44:07 -0700 | [diff] [blame^] | 26 | movs \tmp, \tmp, lsr #2 |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 27 | sub \irqnr, \tmp, #1 |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 28 | .endm |
| 29 | |
| 30 | .macro irq_prio_table |
| 31 | .endm |