diff options
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r-- | include/linux/irq.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index 03f48d936f66..ed1135d32d80 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/errno.h> | 20 | #include <linux/errno.h> |
21 | #include <linux/topology.h> | 21 | #include <linux/topology.h> |
22 | #include <linux/wait.h> | 22 | #include <linux/wait.h> |
23 | #include <linux/io.h> | ||
23 | 24 | ||
24 | #include <asm/irq.h> | 25 | #include <asm/irq.h> |
25 | #include <asm/ptrace.h> | 26 | #include <asm/ptrace.h> |
@@ -639,13 +640,6 @@ void arch_teardown_hwirq(unsigned int irq); | |||
639 | void irq_init_desc(unsigned int irq); | 640 | void irq_init_desc(unsigned int irq); |
640 | #endif | 641 | #endif |
641 | 642 | ||
642 | #ifndef irq_reg_writel | ||
643 | # define irq_reg_writel(val, addr) writel(val, addr) | ||
644 | #endif | ||
645 | #ifndef irq_reg_readl | ||
646 | # define irq_reg_readl(addr) readl(addr) | ||
647 | #endif | ||
648 | |||
649 | /** | 643 | /** |
650 | * struct irq_chip_regs - register offsets for struct irq_gci | 644 | * struct irq_chip_regs - register offsets for struct irq_gci |
651 | * @enable: Enable register offset to reg_base | 645 | * @enable: Enable register offset to reg_base |
@@ -821,4 +815,16 @@ static inline void irq_gc_lock(struct irq_chip_generic *gc) { } | |||
821 | static inline void irq_gc_unlock(struct irq_chip_generic *gc) { } | 815 | static inline void irq_gc_unlock(struct irq_chip_generic *gc) { } |
822 | #endif | 816 | #endif |
823 | 817 | ||
818 | static inline void irq_reg_writel(struct irq_chip_generic *gc, | ||
819 | u32 val, int reg_offset) | ||
820 | { | ||
821 | writel(val, gc->reg_base + reg_offset); | ||
822 | } | ||
823 | |||
824 | static inline u32 irq_reg_readl(struct irq_chip_generic *gc, | ||
825 | int reg_offset) | ||
826 | { | ||
827 | return readl(gc->reg_base + reg_offset); | ||
828 | } | ||
829 | |||
824 | #endif /* _LINUX_IRQ_H */ | 830 | #endif /* _LINUX_IRQ_H */ |