Sonntag, 4. Juli 2010

The current status of an IRQ

The current status of an IRQ is defined in . There are various status :

Each constant stands for a set bit in a bit string.

http://lxr.linux.no/#linux+v2.6.34/include/linux/irq.h#L52

52/* Internal flags */
53#define IRQ_INPROGRESS 0x00000100 /* IRQ handler active - do not enter! */
54#define IRQ_DISABLED 0x00000200 /* IRQ disabled - do not enter! */
55#define IRQ_PENDING 0x00000400 /* IRQ pending - replay on enable */
56#define IRQ_REPLAY 0x00000800 /* IRQ has been replayed but not acked yet */
57#define IRQ_AUTODETECT 0x00001000 /* IRQ is being autodetected */
58#define IRQ_WAITING 0x00002000 /* IRQ not yet seen - for autodetection */
59#define IRQ_LEVEL 0x00004000 /* IRQ level triggered */
60#define IRQ_MASKED 0x00008000 /* IRQ masked - shouldn't be seen again */
61#define IRQ_PER_CPU 0x00010000 /* IRQ is per CPU */
62#define IRQ_NOPROBE 0x00020000 /* IRQ is not valid for probing */
63#define IRQ_NOREQUEST 0x00040000 /* IRQ cannot be requested */
64#define IRQ_NOAUTOEN 0x00080000 /* IRQ will not be enabled on request irq */
65#define IRQ_WAKEUP 0x00100000 /* IRQ triggers system wakeup */
66#define IRQ_MOVE_PENDING 0x00200000 /* need to re-target IRQ destination */
67#define IRQ_NO_BALANCING 0x00400000 /* IRQ is excluded from balancing */
68#define IRQ_SPURIOUS_DISABLED 0x00800000 /* IRQ was disabled by the spurious trap */
69#define IRQ_MOVE_PCNTXT 0x01000000 /* IRQ migration from process context */
70#define IRQ_AFFINITY_SET 0x02000000 /* IRQ affinity was set from userspace*/
71#define IRQ_SUSPENDED 0x04000000 /* IRQ has gone through suspend sequence */
72#define IRQ_ONESHOT 0x08000000 /* IRQ is not unmasked after hardirq */
73#define IRQ_NESTED_THREAD 0x10000000 /* IRQ is nested into another, no own handler thread */


struct irq_chip — hardware interrupt chip descriptor
struct irq_desc — interrupt descriptor
alloc_desc_masks — allocate cpumasks for irq_desc
init_copy_desc_masks — copy cpumasks for irq_desc
struct irqaction — per interrupt action descriptor

Linux generic IRQ handling
http://www.kernel.org/doc/htmldocs/genericirq/index.html

LSD TV 社會民主連線直播頻道
http://www.ustream.tv/channel/lsdtv

NetmediaU 網台聯盟
http://zh-tw.justin.tv/netmediau



Keine Kommentare: