2011-02-10 02:44:21 +07:00
|
|
|
/*
|
|
|
|
* Debugging printout:
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/kallsyms.h>
|
|
|
|
|
2012-04-19 03:29:57 +07:00
|
|
|
#define ___P(f) if (desc->status_use_accessors & f) printk("%14s set\n", #f)
|
|
|
|
#define ___PS(f) if (desc->istate & f) printk("%14s set\n", #f)
|
2011-03-28 19:10:52 +07:00
|
|
|
/* FIXME */
|
2012-04-19 03:29:57 +07:00
|
|
|
#define ___PD(f) do { } while (0)
|
2011-02-10 02:44:21 +07:00
|
|
|
|
|
|
|
static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc)
|
|
|
|
{
|
|
|
|
printk("irq %d, desc: %p, depth: %d, count: %d, unhandled: %d\n",
|
|
|
|
irq, desc, desc->depth, desc->irq_count, desc->irqs_unhandled);
|
|
|
|
printk("->handle_irq(): %p, ", desc->handle_irq);
|
|
|
|
print_symbol("%s\n", (unsigned long)desc->handle_irq);
|
|
|
|
printk("->irq_data.chip(): %p, ", desc->irq_data.chip);
|
|
|
|
print_symbol("%s\n", (unsigned long)desc->irq_data.chip);
|
|
|
|
printk("->action(): %p\n", desc->action);
|
|
|
|
if (desc->action) {
|
|
|
|
printk("->action->handler(): %p, ", desc->action->handler);
|
|
|
|
print_symbol("%s\n", (unsigned long)desc->action->handler);
|
|
|
|
}
|
|
|
|
|
2012-04-19 03:29:57 +07:00
|
|
|
___P(IRQ_LEVEL);
|
|
|
|
___P(IRQ_PER_CPU);
|
|
|
|
___P(IRQ_NOPROBE);
|
|
|
|
___P(IRQ_NOREQUEST);
|
|
|
|
___P(IRQ_NOTHREAD);
|
|
|
|
___P(IRQ_NOAUTOEN);
|
2011-02-10 02:44:21 +07:00
|
|
|
|
2012-04-19 03:29:57 +07:00
|
|
|
___PS(IRQS_AUTODETECT);
|
|
|
|
___PS(IRQS_REPLAY);
|
|
|
|
___PS(IRQS_WAITING);
|
|
|
|
___PS(IRQS_PENDING);
|
2011-03-28 19:10:52 +07:00
|
|
|
|
2012-04-19 03:29:57 +07:00
|
|
|
___PD(IRQS_INPROGRESS);
|
|
|
|
___PD(IRQS_DISABLED);
|
|
|
|
___PD(IRQS_MASKED);
|
2011-02-10 02:44:21 +07:00
|
|
|
}
|
|
|
|
|
2012-04-19 03:29:57 +07:00
|
|
|
#undef ___P
|
|
|
|
#undef ___PS
|
|
|
|
#undef ___PD
|