internals.h (6954b75b488dd740950573f244ddd66fd28620aa) internals.h (009b4c3b8ad584b3462734127a5bec680d5d6af4)
1/*
2 * IRQ subsystem internal functions and variables:
3 *
4 * Do not ever include this file from anything else than
5 * kernel/irq/. Do not even think about using any information outside
6 * of this file for your non core code.
7 */
8#include <linux/irqdesc.h>
9
10#ifdef CONFIG_SPARSE_IRQ
11# define IRQ_BITMAP_BITS (NR_IRQS + 8196)
12#else
13# define IRQ_BITMAP_BITS NR_IRQS
14#endif
15
1/*
2 * IRQ subsystem internal functions and variables:
3 *
4 * Do not ever include this file from anything else than
5 * kernel/irq/. Do not even think about using any information outside
6 * of this file for your non core code.
7 */
8#include <linux/irqdesc.h>
9
10#ifdef CONFIG_SPARSE_IRQ
11# define IRQ_BITMAP_BITS (NR_IRQS + 8196)
12#else
13# define IRQ_BITMAP_BITS NR_IRQS
14#endif
15
16#include "compat.h"
16#include "settings.h"
17
18#define istate core_internal_state__do_not_mess_with_it
19
20extern int noirqdebug;
21
22/*
23 * Bits used by threaded handlers:

--- 11 unchanged lines hidden (view full) ---

35
36/*
37 * Bit masks for desc->state
38 *
39 * IRQS_AUTODETECT - autodetection in progress
40 * IRQS_SPURIOUS_DISABLED - was disabled due to spurious interrupt
41 * detection
42 * IRQS_POLL_INPROGRESS - polling in progress
17#include "settings.h"
18
19#define istate core_internal_state__do_not_mess_with_it
20
21extern int noirqdebug;
22
23/*
24 * Bits used by threaded handlers:

--- 11 unchanged lines hidden (view full) ---

36
37/*
38 * Bit masks for desc->state
39 *
40 * IRQS_AUTODETECT - autodetection in progress
41 * IRQS_SPURIOUS_DISABLED - was disabled due to spurious interrupt
42 * detection
43 * IRQS_POLL_INPROGRESS - polling in progress
44 * IRQS_INPROGRESS - Interrupt in progress
43 */
44enum {
45 IRQS_AUTODETECT = 0x00000001,
46 IRQS_SPURIOUS_DISABLED = 0x00000002,
47 IRQS_POLL_INPROGRESS = 0x00000008,
45 */
46enum {
47 IRQS_AUTODETECT = 0x00000001,
48 IRQS_SPURIOUS_DISABLED = 0x00000002,
49 IRQS_POLL_INPROGRESS = 0x00000008,
50 IRQS_INPROGRESS = 0x00000010,
48};
49
50#define irq_data_to_desc(data) container_of(data, struct irq_desc, irq_data)
51
52/* Set default functions for irq_chip structures: */
53extern void irq_chip_set_defaults(struct irq_chip *chip);
54
55/* Set default handler: */

--- 67 unchanged lines hidden (view full) ---

123 printk("->irq_data.chip(): %p, ", desc->irq_data.chip);
124 print_symbol("%s\n", (unsigned long)desc->irq_data.chip);
125 printk("->action(): %p\n", desc->action);
126 if (desc->action) {
127 printk("->action->handler(): %p, ", desc->action->handler);
128 print_symbol("%s\n", (unsigned long)desc->action->handler);
129 }
130
51};
52
53#define irq_data_to_desc(data) container_of(data, struct irq_desc, irq_data)
54
55/* Set default functions for irq_chip structures: */
56extern void irq_chip_set_defaults(struct irq_chip *chip);
57
58/* Set default handler: */

--- 67 unchanged lines hidden (view full) ---

126 printk("->irq_data.chip(): %p, ", desc->irq_data.chip);
127 print_symbol("%s\n", (unsigned long)desc->irq_data.chip);
128 printk("->action(): %p\n", desc->action);
129 if (desc->action) {
130 printk("->action->handler(): %p, ", desc->action->handler);
131 print_symbol("%s\n", (unsigned long)desc->action->handler);
132 }
133
131 P(IRQ_INPROGRESS);
132 P(IRQ_DISABLED);
133 P(IRQ_PENDING);
134 P(IRQ_REPLAY);
135 P(IRQ_WAITING);
136 P(IRQ_LEVEL);
137 P(IRQ_MASKED);
138#ifdef CONFIG_IRQ_PER_CPU
139 P(IRQ_PER_CPU);
140#endif
141 P(IRQ_NOPROBE);
142 P(IRQ_NOREQUEST);
143 P(IRQ_NOAUTOEN);
144
145 PS(IRQS_AUTODETECT);
134 P(IRQ_DISABLED);
135 P(IRQ_PENDING);
136 P(IRQ_REPLAY);
137 P(IRQ_WAITING);
138 P(IRQ_LEVEL);
139 P(IRQ_MASKED);
140#ifdef CONFIG_IRQ_PER_CPU
141 P(IRQ_PER_CPU);
142#endif
143 P(IRQ_NOPROBE);
144 P(IRQ_NOREQUEST);
145 P(IRQ_NOAUTOEN);
146
147 PS(IRQS_AUTODETECT);
148 PS(IRQS_INPROGRESS);
146}
147
148#undef P
149#undef PS
149}
150
151#undef P
152#undef PS