1 /* SPDX-License-Identifier: GPL-2.0 */
6 #define ___P(f) if (desc->status_use_accessors & f) printk("%14s set\n", #f)
7 #define ___PS(f) if (desc->istate & f) printk("%14s set\n", #f)
9 #define ___PD(f) do { } while (0)
11 static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc)
13 printk("irq %d, desc: %p, depth: %d, count: %d, unhandled: %d\n",
14 irq, desc, desc->depth, desc->irq_count, desc->irqs_unhandled);
15 printk("->handle_irq(): %p, %pS\n",
16 desc->handle_irq, desc->handle_irq);
17 printk("->irq_data.chip(): %p, %pS\n",
18 desc->irq_data.chip, desc->irq_data.chip);
19 printk("->action(): %p\n", desc->action);
21 printk("->action->handler(): %p, %pS\n",
22 desc->action->handler, desc->action->handler);
32 ___PS(IRQS_AUTODETECT);
37 ___PD(IRQS_INPROGRESS);