[PATCH 39/52] [microblaze] headers for irq

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <monstr@...>
Cc: <linux-kernel@...>, <stephen.neuendorffer@...>, <john.williams@...>, <microblaze-uclinux@...>
Date: Thursday, January 24, 2008 - 11:03 am

From: Michal Simek <monstr@monstr.eu>


Signed-off-by: Michal Simek <monstr@monstr.eu>
---
 include/asm-microblaze/hardirq.h  |   31 +++++++++++++++++++++++++++++++
 include/asm-microblaze/hw_irq.h   |   19 +++++++++++++++++++
 include/asm-microblaze/irq_regs.h |   19 +++++++++++++++++++
 3 files changed, 69 insertions(+), 0 deletions(-)
 create mode 100644 include/asm-microblaze/hardirq.h
 create mode 100644 include/asm-microblaze/hw_irq.h
 create mode 100644 include/asm-microblaze/irq_regs.h

diff --git a/include/asm-microblaze/hardirq.h b/include/asm-microblaze/hardirq.h
new file mode 100644
index 0000000..61cd3c0
--- /dev/null
+++ b/include/asm-microblaze/hardirq.h
@@ -0,0 +1,31 @@
+/*
+ * include/asm-microblaze/hardirq.h
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2006 Atmark Techno, Inc.
+ */
+
+#ifndef _ASM_HARDIRQ_H
+#define _ASM_HARDIRQ_H
+
+#include <linux/cache.h>
+#include <linux/irq.h>
+#include <asm/irq.h>
+#include <asm/current.h>
+#include <asm/ptrace.h>
+
+/* should be defined in each interrupt controller driver */
+extern unsigned int get_irq(struct pt_regs *regs);
+
+typedef struct {
+	unsigned int __softirq_pending;
+} ____cacheline_aligned irq_cpustat_t;
+
+void ack_bad_irq(unsigned int irq);
+
+#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
+
+#endif /* _ASM_HARDIRQ_H */
diff --git a/include/asm-microblaze/hw_irq.h b/include/asm-microblaze/hw_irq.h
new file mode 100644
index 0000000..e7a0956
--- /dev/null
+++ b/include/asm-microblaze/hw_irq.h
@@ -0,0 +1,19 @@
+/*
+ * include/asm-microblaze/hw_irq.h
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2006 Atmark Techno, Inc.
+ */
+
+#ifndef _ASM_HW_IRQ_H
+#define _ASM_HW_IRQ_H
+
+static inline void hw_resend_irq(struct hw_interrupt_type *h, unsigned int i)
+{
+	/* Nothing to do */
+}
+
+#endif /* _ASM_HW_IRQ_H */
diff --git a/include/asm-microblaze/irq_regs.h b/include/asm-microblaze/irq_regs.h
new file mode 100644
index 0000000..702b051
--- /dev/null
+++ b/include/asm-microblaze/irq_regs.h
@@ -0,0 +1,19 @@
+/*
+ * include/asm-microblaze/irq_regs.h
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2006 Atmark Techno, Inc.
+ */
+
+#ifndef _ASM_IRQ_REGS_H
+#define _ASM_IRQ_REGS_H
+
+#include <asm-generic/irq_regs.h>
+
+#endif /* _ASM_IRQ_REGS_H */
+
+
+
-- 
1.5.4.rc4.14.g6fc74

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Microblaze init port, , (Thu Jan 24, 11:02 am)
Re: Microblaze init port, Geert Uytterhoeven, (Sun Jan 27, 7:59 am)
Re: [PATCH 11/52] [microblaze] kernel modules support, Jan Engelhardt, (Sat Jan 26, 12:27 pm)
[PATCH 12/52] [microblaze] lmb support, , (Thu Jan 24, 11:02 am)
Re: [PATCH 12/52] [microblaze] lmb support, Jan Engelhardt, (Sun Jan 27, 8:51 am)
Re: [PATCH 17/52] [microblaze] checksum support, Jan Engelhardt, (Tue Jan 29, 5:30 pm)
Re: [PATCH 17/52] [microblaze] checksum support, Geert Uytterhoeven, (Sun Jan 27, 7:57 am)
Re: [PATCH 17/52] [microblaze] checksum support, Michal Simek, (Sun Jan 27, 9:41 am)
Re: [PATCH 17/52] [microblaze] checksum support, Geert Uytterhoeven, (Sun Jan 27, 11:12 am)
[PATCH 22/52] [microblaze] asm-offsets, , (Thu Jan 24, 11:02 am)
[PATCH 24/52] [microblaze] time support, , (Thu Jan 24, 11:02 am)
[PATCH 26/52] [microblaze] IPC support, , (Thu Jan 24, 11:03 am)
[PATCH 38/52] [microblaze] dma support, , (Thu Jan 24, 11:03 am)
[PATCH 39/52] [microblaze] headers for irq, , (Thu Jan 24, 11:03 am)
Re: [PATCH 03/52] [microblaze] Cpuinfo handling, Jan Engelhardt, (Sun Jan 27, 8:55 am)