aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-avr32/arch-at32ap/irq.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-09 08:09:05 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-09 08:09:05 -0800
commitd27146dd5b72ab7d7e641f56f4bee1484dabd0b7 (patch)
tree88b5833ec3d8f4ee19426ed2c23f95edcdf190fb /include/asm-avr32/arch-at32ap/irq.h
parent[PATCH] mm: remove find_trylock_page (diff)
parent[AVR32] Add missing #include <linux/module.h> (diff)
downloadlinux-dev-d27146dd5b72ab7d7e641f56f4bee1484dabd0b7.tar.xz
linux-dev-d27146dd5b72ab7d7e641f56f4bee1484dabd0b7.zip
Merge branch 'for-linus' of git://www.atmel.no/~hskinnemoen/linux/kernel/avr32
* 'for-linus' of git://www.atmel.no/~hskinnemoen/linux/kernel/avr32: [AVR32] Add missing #include <linux/module.h> [AVR32] ssize_t should be long, not int [AVR32] Remove last remains of libgcc [AVR32] SPI platform code update [AVR32] Add PIOE device and reserve SDRAM pins [AVR32] Introduce at32_reserve_pin() [AVR32] Don't reset PIO state at bootup [AVR32] GPIO API implementation [AVR32] Use ARRAY_SIZE macro when appropriate [AVR32] Implement dma_mapping_error() [AVR32] Fix incorrect invalidation of shared cachelines [AVR32] ext int fixes [AVR32] fix serial port setup on ATSTK1000 [AVR32] /proc/interrupts display Remove a couple final references to obsolete verify_area().
Diffstat (limited to 'include/asm-avr32/arch-at32ap/irq.h')
-rw-r--r--include/asm-avr32/arch-at32ap/irq.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-avr32/arch-at32ap/irq.h b/include/asm-avr32/arch-at32ap/irq.h
new file mode 100644
index 000000000000..5adffab9a577
--- /dev/null
+++ b/include/asm-avr32/arch-at32ap/irq.h
@@ -0,0 +1,14 @@
+#ifndef __ASM_AVR32_ARCH_IRQ_H
+#define __ASM_AVR32_ARCH_IRQ_H
+
+#define EIM_IRQ_BASE NR_INTERNAL_IRQS
+#define NR_EIM_IRQS 32
+
+#define AT32_EXTINT(n) (EIM_IRQ_BASE + (n))
+
+#define GPIO_IRQ_BASE (EIM_IRQ_BASE + NR_EIM_IRQS)
+#define NR_GPIO_IRQS (5 * 32)
+
+#define NR_IRQS (GPIO_IRQ_BASE + NR_GPIO_IRQS)
+
+#endif /* __ASM_AVR32_ARCH_IRQ_H */