Skip to contentSkip to conversation

irq handling code consolidation, second try (v850 part)

RFC New Andrey Panin 1 participant 1 message Jan 4, 2003

lore
Share & tools
lore
#0 lore raw

RFC 1/1 irq handling code consolidation, second try (v850 part)

Hi all,

attached patch is a second try of IRQ handling code consolidation. This is a v850 specific patch (untested).

Best regards.

Signature · 2 lines
Andrey Panin		| Embedded systems software developer
[email protected]	| PGP key: wwwkeys.pgp.net
arch/v850/Kconfig +3 -0
diff --minimal -urN -X /usr/share/dontdiff linux-2.5.53.vanilla/arch/v850/Kconfig linux-2.5.53/arch/v850/Kconfig
@@ -16,6 +16,9 @@
 config UID16
 	bool
 	default n
+config GENERIC_IRQ
+	bool
+	default y
 config RWSEM_GENERIC_SPINLOCK
 	bool
 	default y
arch/v850/kernel/irq.c +1 -538

557 lines not on this page · raw message

include/asm-v850/hw_irq.h +17 -0
diff --minimal -urN -X /usr/share/dontdiff linux-2.5.53.vanilla/include/asm-v850/hw_irq.h linux-2.5.53/include/asm-v850/hw_irq.h
@@ -5,4 +5,21 @@
 {
 }
 
+#define arch_ack_bad_irq(irq) do { } while (0)
+
+/* Return a pointer to the irq descriptor for IRQ.  */
+#define irq_desc(irq) (irq_desc + (irq))
+
+/* Check irq number */
+#define arch_check_irq(irq) ((irq) >= NR_IRQS)
+
+/* Arch specific hook for setup_irq() */
+#define arch_setup_irq(irq, desc, irqaction) do { } while (0)
+
+/* Used in setup_irq() */
+#define ARCH_NONSHARED_IRQ_MASK \
+	~(IRQ_DISABLED | IRQ_AUTODETECT | IRQ_WAITING | IRQ_INPROGRESS)
+
+#define HAVE_ARCH_IRQ_PROC
+
 #endif /* __V850_HW_IRQ_H__ */