1/****************************************************************************
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 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_INTERRUPT_H
20#define _LINUX_INTERRUPT_H
21#include <linux/kernel.h>
22#include <linux/linkage.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <linux/bitops.h>
25#include <linux/preempt.h>
26#include <linux/cpumask.h>
27#include <linux/irqreturn.h>
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#include <linux/hardirq.h>
30#include <linux/sched.h>
31#include <linux/irqflags.h>
32#include <asm/atomic.h>
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#include <asm/ptrace.h>
35#include <asm/system.h>
36#define IRQF_TRIGGER_NONE 0x00000000
37#define IRQF_TRIGGER_RISING 0x00000001
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define IRQF_TRIGGER_FALLING 0x00000002
40#define IRQF_TRIGGER_HIGH 0x00000004
41#define IRQF_TRIGGER_LOW 0x00000008
42#define IRQF_TRIGGER_MASK (IRQF_TRIGGER_HIGH | IRQF_TRIGGER_LOW |   IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define IRQF_TRIGGER_PROBE 0x00000010
45#define IRQF_DISABLED 0x00000020
46#define IRQF_SAMPLE_RANDOM 0x00000040
47#define IRQF_SHARED 0x00000080
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define IRQF_PROBE_SHARED 0x00000100
50#define IRQF_TIMER 0x00000200
51#define IRQF_PERCPU 0x00000400
52#define SA_INTERRUPT IRQF_DISABLED
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define SA_SAMPLE_RANDOM IRQF_SAMPLE_RANDOM
55#define SA_SHIRQ IRQF_SHARED
56#define SA_PROBEIRQ IRQF_PROBE_SHARED
57#define SA_PERCPU IRQF_PERCPU
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define SA_TRIGGER_LOW IRQF_TRIGGER_LOW
60#define SA_TRIGGER_HIGH IRQF_TRIGGER_HIGH
61#define SA_TRIGGER_FALLING IRQF_TRIGGER_FALLING
62#define SA_TRIGGER_RISING IRQF_TRIGGER_RISING
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define SA_TRIGGER_MASK IRQF_TRIGGER_MASK
65struct irqaction {
66 irqreturn_t (*handler)(int, void *, struct pt_regs *);
67 unsigned long flags;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 cpumask_t mask;
70 const char *name;
71 void *dev_id;
72 struct irqaction *next;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 int irq;
75 struct proc_dir_entry *dir;
76};
77#define local_irq_enable_in_hardirq() local_irq_enable()
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define disable_irq_nosync_lockdep(irq) disable_irq_nosync(irq)
80#define disable_irq_lockdep(irq) disable_irq(irq)
81#define enable_irq_lockdep(irq) enable_irq(irq)
82#ifndef __ARCH_SET_SOFTIRQ_PENDING
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define set_softirq_pending(x) (local_softirq_pending() = (x))
85#define or_softirq_pending(x) (local_softirq_pending() |= (x))
86#endif
87#define save_flags(x) save_flags(&x)
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define save_and_cli(x) save_and_cli(&x)
90enum
91{
92 HI_SOFTIRQ=0,
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 TIMER_SOFTIRQ,
95 NET_TX_SOFTIRQ,
96 NET_RX_SOFTIRQ,
97 BLOCK_SOFTIRQ,
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 TASKLET_SOFTIRQ
100};
101struct softirq_action
102{
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 void (*action)(struct softirq_action *);
105 void *data;
106};
107#define __raise_softirq_irqoff(nr) do { or_softirq_pending(1UL << (nr)); } while (0)
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109struct tasklet_struct
110{
111 struct tasklet_struct *next;
112 unsigned long state;
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 atomic_t count;
115 void (*func)(unsigned long);
116 unsigned long data;
117};
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define DECLARE_TASKLET(name, func, data)  struct tasklet_struct name = { NULL, 0, ATOMIC_INIT(0), func, data }
120#define DECLARE_TASKLET_DISABLED(name, func, data)  struct tasklet_struct name = { NULL, 0, ATOMIC_INIT(1), func, data }
121enum
122{
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 TASKLET_STATE_SCHED,
125 TASKLET_STATE_RUN
126};
127#define tasklet_trylock(t) 1
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#define tasklet_unlock_wait(t) do { } while (0)
130#define tasklet_unlock(t) do { } while (0)
131#endif
132