blob: 2085a21482798255956f821e2285d311288eed7f [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef __ASM_ARM_IRQ_H
13#define __ASM_ARM_IRQ_H
Ben Cheng4b29af02012-03-07 16:14:53 -080014
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080015#include <asm/arch/irqs.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080016
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017#ifndef irq_canonicalize
18#define irq_canonicalize(i) (i)
19#endif
Ben Cheng4b29af02012-03-07 16:14:53 -080020
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#ifndef NR_IRQS
22#define NR_IRQS 128
23#endif
Ben Cheng4b29af02012-03-07 16:14:53 -080024
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080025#ifndef NO_IRQ
26#define NO_IRQ ((unsigned int)(-1))
27#endif
Ben Cheng4b29af02012-03-07 16:14:53 -080028
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029struct irqaction;
Ben Cheng4b29af02012-03-07 16:14:53 -080030
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080031#define __IRQT_FALEDGE IRQ_TYPE_EDGE_FALLING
32#define __IRQT_RISEDGE IRQ_TYPE_EDGE_RISING
33#define __IRQT_LOWLVL IRQ_TYPE_LEVEL_LOW
34#define __IRQT_HIGHLVL IRQ_TYPE_LEVEL_HIGH
Ben Cheng4b29af02012-03-07 16:14:53 -080035
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080036#define IRQT_NOEDGE (0)
37#define IRQT_RISING (__IRQT_RISEDGE)
38#define IRQT_FALLING (__IRQT_FALEDGE)
39#define IRQT_BOTHEDGE (__IRQT_RISEDGE|__IRQT_FALEDGE)
40#define IRQT_LOW (__IRQT_LOWLVL)
41#define IRQT_HIGH (__IRQT_HIGHLVL)
42#define IRQT_PROBE IRQ_TYPE_PROBE
Ben Cheng4b29af02012-03-07 16:14:53 -080043
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044#endif
Ben Cheng4b29af02012-03-07 16:14:53 -080045