]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/mn10300/unit-asb2364/include/unit/irq.h
Merge branch 'master' into csb1725
[mv-sheeva.git] / arch / mn10300 / unit-asb2364 / include / unit / irq.h
diff --git a/arch/mn10300/unit-asb2364/include/unit/irq.h b/arch/mn10300/unit-asb2364/include/unit/irq.h
new file mode 100644 (file)
index 0000000..786148e
--- /dev/null
@@ -0,0 +1,35 @@
+/* ASB2364 FPGA irq numbers
+ *
+ * Copyright (C) 2010 Red Hat, Inc. All Rights Reserved.
+ * Written by David Howells (dhowells@redhat.com)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public Licence
+ * as published by the Free Software Foundation; either version
+ * 2 of the Licence, or (at your option) any later version.
+ */
+#ifndef _UNIT_IRQ_H
+#define _UNIT_IRQ_H
+
+#ifndef __ASSEMBLY__
+
+#ifdef CONFIG_SMP
+#define NR_CPU_IRQS    GxICR_NUM_EXT_IRQS
+#else
+#define NR_CPU_IRQS    GxICR_NUM_IRQS
+#endif
+
+enum {
+       FPGA_LAN_IRQ    = NR_CPU_IRQS,
+       FPGA_UART_IRQ,
+       FPGA_I2C_IRQ,
+       FPGA_USB_IRQ,
+       FPGA_RESERVED_IRQ,
+       FPGA_FPGA_IRQ,
+       NR_IRQS
+};
+
+extern void __init irq_fpga_init(void);
+
+#endif /* !__ASSEMBLY__ */
+#endif /* _UNIT_IRQ_H */