2009-03-04 04:28:35 +01:00
|
|
|
/****************************************************************************
|
|
|
|
****************************************************************************
|
|
|
|
***
|
|
|
|
*** This header was automatically generated from a Linux kernel header
|
|
|
|
*** of the same name, to make information necessary for userspace to
|
|
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
|
|
*** structures, and macros generated from the original header, and thus,
|
|
|
|
*** contains no copyrightable information.
|
|
|
|
***
|
2012-03-08 06:13:49 +01:00
|
|
|
*** To edit the content of this header, modify the corresponding
|
|
|
|
*** source file (e.g. under external/kernel-headers/original/) then
|
|
|
|
*** run bionic/libc/kernel/tools/update_all.py
|
|
|
|
***
|
|
|
|
*** Any manual change here will be lost the next time this script will
|
|
|
|
*** be run. You've been warned!
|
|
|
|
***
|
2009-03-04 04:28:35 +01:00
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _LINUX_IRQ_H
|
|
|
|
#define _LINUX_IRQ_H
|
|
|
|
#include <linux/smp.h>
|
|
|
|
#include <linux/linkage.h>
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#include <linux/cache.h>
|
|
|
|
#include <linux/spinlock.h>
|
|
|
|
#include <linux/cpumask.h>
|
|
|
|
#include <linux/irqreturn.h>
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#include <asm/irq.h>
|
|
|
|
#include <asm/ptrace.h>
|
2013-01-30 03:15:55 +01:00
|
|
|
#define IRQ_TYPE_NONE 0x00000000
|
|
|
|
#define IRQ_TYPE_EDGE_RISING 0x00000001
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-01-30 03:15:55 +01:00
|
|
|
#define IRQ_TYPE_EDGE_FALLING 0x00000002
|
2009-03-04 04:28:35 +01:00
|
|
|
#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)
|
2013-01-30 03:15:55 +01:00
|
|
|
#define IRQ_TYPE_LEVEL_HIGH 0x00000004
|
|
|
|
#define IRQ_TYPE_LEVEL_LOW 0x00000008
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-01-30 03:15:55 +01:00
|
|
|
#define IRQ_TYPE_SENSE_MASK 0x0000000f
|
|
|
|
#define IRQ_TYPE_PROBE 0x00000010
|
|
|
|
#define IRQ_INPROGRESS 0x00010000
|
|
|
|
#define IRQ_DISABLED 0x00020000
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-01-30 03:15:55 +01:00
|
|
|
#define IRQ_PENDING 0x00040000
|
|
|
|
#define IRQ_REPLAY 0x00080000
|
|
|
|
#define IRQ_AUTODETECT 0x00100000
|
|
|
|
#define IRQ_WAITING 0x00200000
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-01-30 03:15:55 +01:00
|
|
|
#define IRQ_LEVEL 0x00400000
|
|
|
|
#define IRQ_MASKED 0x00800000
|
|
|
|
#define IRQ_PER_CPU 0x01000000
|
2009-03-04 04:28:35 +01:00
|
|
|
#define CHECK_IRQ_PER_CPU(var) 0
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-01-30 03:15:55 +01:00
|
|
|
#define IRQ_NOPROBE 0x02000000
|
|
|
|
#define IRQ_NOREQUEST 0x04000000
|
|
|
|
#define IRQ_NOAUTOEN 0x08000000
|
|
|
|
#define IRQ_DELAYED_DISABLE 0x10000000
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-01-30 03:15:55 +01:00
|
|
|
#define IRQ_WAKEUP 0x20000000
|
2009-03-04 04:28:35 +01:00
|
|
|
struct proc_dir_entry;
|
|
|
|
struct irq_chip {
|
|
|
|
const char *name;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned int (*startup)(unsigned int irq);
|
|
|
|
void (*shutdown)(unsigned int irq);
|
|
|
|
void (*enable)(unsigned int irq);
|
|
|
|
void (*disable)(unsigned int irq);
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
void (*ack)(unsigned int irq);
|
|
|
|
void (*mask)(unsigned int irq);
|
|
|
|
void (*mask_ack)(unsigned int irq);
|
|
|
|
void (*unmask)(unsigned int irq);
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
void (*eoi)(unsigned int irq);
|
|
|
|
void (*end)(unsigned int irq);
|
|
|
|
void (*set_affinity)(unsigned int irq, cpumask_t dest);
|
|
|
|
int (*retrigger)(unsigned int irq);
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
int (*set_type)(unsigned int irq, unsigned int flow_type);
|
|
|
|
int (*set_wake)(unsigned int irq, unsigned int on);
|
|
|
|
const char *typename;
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
struct irq_desc {
|
|
|
|
void fastcall (*handle_irq)(unsigned int irq,
|
|
|
|
struct irq_desc *desc,
|
|
|
|
struct pt_regs *regs);
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
struct irq_chip *chip;
|
|
|
|
void *handler_data;
|
|
|
|
void *chip_data;
|
|
|
|
struct irqaction *action;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned int status;
|
|
|
|
unsigned int depth;
|
|
|
|
unsigned int wake_depth;
|
|
|
|
unsigned int irq_count;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned int irqs_unhandled;
|
|
|
|
spinlock_t lock;
|
|
|
|
} ____cacheline_aligned;
|
|
|
|
#define hw_interrupt_type irq_chip
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
typedef struct irq_chip hw_irq_controller;
|
|
|
|
#define no_irq_type no_irq_chip
|
|
|
|
typedef struct irq_desc irq_desc_t;
|
|
|
|
#include <asm/hw_irq.h>
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#endif
|