Subject: [PATCH 11/33] score: create head files hardirq.h hw_irq.h irq.h irqflags.h irq_regs.h
From f305766cc791c2e727aa80be85af6df5cf707dd0 Mon Sep 17 00:00:00 2001
From: Chen Liqin <[email protected]>
Date: Wed, 26 Aug 2009 10:05:01 +0800
Subject: [PATCH 11/33] score: create head files hardirq.h hw_irq.h irq.h irqflags.h irq_regs.h
Signed-off-by Chen Liqin <[email protected]>
--- arch/score/include/asm/hardirq.h | 6 ++ arch/score/include/asm/hw_irq.h | 4 ++ arch/score/include/asm/irq.h | 25 +++++++++ arch/score/include/asm/irq_regs.h | 11 ++++ arch/score/include/asm/irqflags.h | 109 +++++++++++++++++++++++++++++++++++++ 5 files changed, 155 insertions(+), 0 deletions(-) create mode 100644 arch/score/include/asm/hardirq.h create mode 100644 arch/score/include/asm/hw_irq.h create mode 100644 arch/score/include/asm/irq.h create mode 100644 arch/score/include/asm/irq_regs.h create mode 100644 arch/score/include/asm/irqflags.h
arch/score/include/asm/hardirq.h new file +6 -0
@@ -0,0 +1,6 @@ +#ifndef _ASM_SCORE_HARDIRQ_H +#define _ASM_SCORE_HARDIRQ_H + +#include <asm-generic/hardirq.h> + +#endif /* _ASM_SCORE_HARDIRQ_H */
arch/score/include/asm/hw_irq.h new file +4 -0
@@ -0,0 +1,4 @@ +#ifndef _ASM_SCORE_HW_IRQ_H +#define _ASM_SCORE_HW_IRQ_H + +#endif /* _ASM_SCORE_HW_IRQ_H */
arch/score/include/asm/irq.h new file +25 -0
@@ -0,0 +1,25 @@ +#ifndef _ASM_SCORE_IRQ_H +#define _ASM_SCORE_IRQ_H + +#define EXCEPTION_VECTOR_BASE_ADDR 0xa0000000 +#define VECTOR_ADDRESS_OFFSET_MODE4 0 +#define VECTOR_ADDRESS_OFFSET_MODE16 1 + +#define DEBUG_VECTOR_SIZE (0x4) +#define DEBUG_VECTOR_BASE_ADDR ((EXCEPTION_VECTOR_BASE_ADDR) + 0x1fc) + +#define GENERAL_VECTOR_SIZE (0x10) +#define GENERAL_VECTOR_BASE_ADDR ((EXCEPTION_VECTOR_BASE_ADDR) + 0x200) + +#define NR_IRQS 64 +#define IRQ_VECTOR_SIZE (0x10) +#define IRQ_VECTOR_BASE_ADDR ((EXCEPTION_VECTOR_BASE_ADDR) + 0x210) +#define IRQ_VECTOR_END_ADDR ((EXCEPTION_VECTOR_BASE_ADDR) + 0x5f0) + +#define irq_canonicalize (irq) (irq) + +#define IRQ_TIMER (7)/* Timer IRQ number of SPCT6600 */ + +extern void interrupt_exception_vector (void ); + +#endif /* _ASM_SCORE_IRQ_H */
arch/score/include/asm/irq_regs.h new file +11 -0
@@ -0,0 +1,11 @@ +#ifndef _ASM_SCORE_IRQ_REGS_H +#define _ASM_SCORE_IRQ_REGS_H + +#include <linux/thread_info.h> + +static inline struct pt_regs *get_irq_regs (void ) +{ +return current_thread_info ()->regs; +} + +#endif /* _ASM_SCORE_IRQ_REGS_H */
arch/score/include/asm/irqflags.h new file +109 -0
109 lines not on this page · raw message
Signature · 1 line
1.6.2