Chinaunix首页 | 论坛 | 博客
  • 博客访问: 131386
  • 博文数量: 30
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 338
  • 用 户 组: 普通用户
  • 注册时间: 2014-02-19 17:33
文章分类
文章存档

2017年(2)

2014年(28)

我的朋友

分类: Android平台

2014-07-16 11:53:00

 25 /*
 26  * These correspond to the IORESOURCE_IRQ_* defines in
 27  * linux/ioport.h to select the interrupt line behaviour.  When
 28  * requesting an interrupt without specifying a IRQF_TRIGGER, the
 29  * setting should be assumed to be "as already configured", which
 30  * may be as per machine or firmware initialisation.
 31  */
 32 #define IRQF_TRIGGER_NONE   0x00000000
 33 #define IRQF_TRIGGER_RISING 0x00000001
 34 #define IRQF_TRIGGER_FALLING    0x00000002
 35 #define IRQF_TRIGGER_HIGH   0x00000004
 36 #define IRQF_TRIGGER_LOW    0x00000008
 37 #define IRQF_TRIGGER_MASK   (IRQF_TRIGGER_HIGH | IRQF_TRIGGER_LOW | \
 38                  IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)
 39 #define IRQF_TRIGGER_PROBE  0x00000010
 40
 41 /*
 42  * These flags used only by the kernel as part of the
 43  * irq handling routines.
 44  *
 45  * IRQF_DISABLED - keep irqs disabled when calling the action handler.
 46  *                 DEPRECATED. This flag is a NOOP and scheduled to be removed
 47  * IRQF_SAMPLE_RANDOM - irq is used to feed the random generator
 48  * IRQF_SHARED - allow sharing the irq among several devices
 49  * IRQF_PROBE_SHARED - set by callers when they expect sharing mismatches to occur
 50  * IRQF_TIMER - Flag to mark this interrupt as timer interrupt
 51  * IRQF_PERCPU - Interrupt is per cpu
 52  * IRQF_NOBALANCING - Flag to exclude this interrupt from irq balancing
 53  * IRQF_IRQPOLL - Interrupt is used for polling (only the interrupt that is
 54  *                registered first in an shared interrupt is considered for
 55  *                performance reasons)
 56  * IRQF_ONESHOT - Interrupt is not reenabled after the hardirq handler finished.
 57  *                Used by threaded interrupts which need to keep the
 58  *                irq line disabled until the threaded handler has been run.
 59  * IRQF_NO_SUSPEND - Do not disable this IRQ during suspend
 60  * IRQF_FORCE_RESUME - Force enable it on resume even if IRQF_NO_SUSPEND is set
 61  * IRQF_NO_THREAD - Interrupt cannot be threaded
 62  * IRQF_EARLY_RESUME - Resume IRQ early during syscore instead of at device
 63  *                resume time.
 64  */
阅读(1191) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~