diff options
Diffstat (limited to 'arch/mn10300/unit-asb2364/include/unit/irq.h')
-rw-r--r-- | arch/mn10300/unit-asb2364/include/unit/irq.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/mn10300/unit-asb2364/include/unit/irq.h b/arch/mn10300/unit-asb2364/include/unit/irq.h new file mode 100644 index 00000000000..786148e4656 --- /dev/null +++ b/arch/mn10300/unit-asb2364/include/unit/irq.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* ASB2364 FPGA irq numbers | ||
2 | * | ||
3 | * Copyright (C) 2010 Red Hat, Inc. All Rights Reserved. | ||
4 | * Written by David Howells (dhowells@redhat.com) | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public Licence | ||
8 | * as published by the Free Software Foundation; either version | ||
9 | * 2 of the Licence, or (at your option) any later version. | ||
10 | */ | ||
11 | #ifndef _UNIT_IRQ_H | ||
12 | #define _UNIT_IRQ_H | ||
13 | |||
14 | #ifndef __ASSEMBLY__ | ||
15 | |||
16 | #ifdef CONFIG_SMP | ||
17 | #define NR_CPU_IRQS GxICR_NUM_EXT_IRQS | ||
18 | #else | ||
19 | #define NR_CPU_IRQS GxICR_NUM_IRQS | ||
20 | #endif | ||
21 | |||
22 | enum { | ||
23 | FPGA_LAN_IRQ = NR_CPU_IRQS, | ||
24 | FPGA_UART_IRQ, | ||
25 | FPGA_I2C_IRQ, | ||
26 | FPGA_USB_IRQ, | ||
27 | FPGA_RESERVED_IRQ, | ||
28 | FPGA_FPGA_IRQ, | ||
29 | NR_IRQS | ||
30 | }; | ||
31 | |||
32 | extern void __init irq_fpga_init(void); | ||
33 | |||
34 | #endif /* !__ASSEMBLY__ */ | ||
35 | #endif /* _UNIT_IRQ_H */ | ||