[ARM] S3C64XX: Initial arch header files
[linux-2.6/openmoko-kernel.git] / arch / arm / plat-s3c64xx / include / plat / irqs.h
blob592a56354551143448f0a99e96895da7604535bb
1 /* linux/arch/arm/plat-s3c64xx/include/mach/irqs.h
3 * Copyright 2008 Openmoko, Inc.
4 * Copyright 2008 Simtec Electronics
5 * Ben Dooks <ben@simtec.co.uk>
6 * http://armlinux.simtec.co.uk/
8 * S3C64XX - Common IRQ support
9 */
11 #ifndef __ASM_PLAT_S3C64XX_IRQS_H
12 #define __ASM_PLAT_S3C64XX_IRQS_H __FILE__
14 /* we keep the first set of CPU IRQs out of the range of
15 * the ISA space, so that the PC104 has them to itself
16 * and we don't end up having to do horrible things to the
17 * standard ISA drivers....
20 #define S3C_IRQ_OFFSET (16)
22 #define S3C_IRQ(x) ((x) + S3C_IRQ_OFFSET)
24 /* Since the IRQ_EINT(x) are a linear mapping on current s3c64xx series
25 * we just defined them as an IRQ_EINT(x) macro from S3C_IRQ_EINT_BASE
26 * which we place after the pair of VICs. */
28 #define S3C_IRQ_EINT_BASE S3C_IRQ(64)
30 #define S3C_EINT(x) ((x) + S3C_IRQ_EINT_BASE)
32 /* Define NR_IRQs here, machine specific can always re-define.
33 * Currently the IRQ_EINT27 is the last one we can have. */
35 #define NR_IRQS (S3C_EINT(27) + 1)
37 #endif /* __ASM_PLAT_S3C64XX_IRQS_H */