[ARM] Remove explicit dependency for misc.o from compressed/Makefile
[deliverable/linux.git] / include / asm-arm / mach / irq.h
CommitLineData
1da177e4
LT
1/*
2 * linux/include/asm-arm/mach/irq.h
3 *
4 * Copyright (C) 1995-2000 Russell King.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10#ifndef __ASM_ARM_MACH_IRQ_H
11#define __ASM_ARM_MACH_IRQ_H
12
4a2581a0 13#include <linux/irq.h>
1da177e4 14
4a2581a0 15struct seq_file;
664399e1 16
1da177e4
LT
17/*
18 * This is internal. Do not use it.
19 */
20extern void (*init_arch_irq)(void);
21extern void init_FIQ(void);
22extern int show_fiq_list(struct seq_file *, void *);
1da177e4 23
4a2581a0
TG
24/*
25 * Obsolete inline function for calling irq descriptor handlers.
1da177e4 26 */
0cd61b68 27static inline void desc_handle_irq(unsigned int irq, struct irq_desc *desc)
4a2581a0 28{
0cd61b68 29 desc->handle_irq(irq, desc);
4a2581a0 30}
1da177e4 31
1da177e4
LT
32void set_irq_flags(unsigned int irq, unsigned int flags);
33
34#define IRQF_VALID (1 << 0)
35#define IRQF_PROBE (1 << 1)
36#define IRQF_NOAUTOEN (1 << 2)
37
38/*
4a2581a0 39 * This is for easy migration, but should be changed in the source
1da177e4 40 */
0cd61b68 41#define do_bad_IRQ(irq,desc) \
4a2581a0
TG
42do { \
43 spin_lock(&desc->lock); \
0cd61b68 44 handle_bad_irq(irq, desc); \
4a2581a0
TG
45 spin_unlock(&desc->lock); \
46} while(0)
47
48extern unsigned long irq_err_count;
49static inline void ack_bad_irq(int irq)
50{
51 irq_err_count++;
52}
1da177e4
LT
53
54#endif
This page took 0.362228 seconds and 5 git commands to generate.