Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / intc / intc.h
blobe40194b8e3b640a992c8e0a318f42f9aa2b36b81
1 #ifndef INTC_H
2 #define INTC_H
4 #include "qom/object.h"
6 #define TYPE_INTERRUPT_STATS_PROVIDER "intctrl"
8 typedef struct InterruptStatsProviderClass InterruptStatsProviderClass;
9 DECLARE_CLASS_CHECKERS(InterruptStatsProviderClass, INTERRUPT_STATS_PROVIDER,
10 TYPE_INTERRUPT_STATS_PROVIDER)
11 #define INTERRUPT_STATS_PROVIDER(obj) \
12 INTERFACE_CHECK(InterruptStatsProvider, (obj), \
13 TYPE_INTERRUPT_STATS_PROVIDER)
15 typedef struct InterruptStatsProvider InterruptStatsProvider;
17 struct InterruptStatsProviderClass {
18 InterfaceClass parent;
20 /* The returned pointer and statistics must remain valid until
21 * the BQL is next dropped.
23 bool (*get_statistics)(InterruptStatsProvider *obj, uint64_t **irq_counts,
24 unsigned int *nb_irqs);
25 void (*print_info)(InterruptStatsProvider *obj, GString *buf);
28 #endif