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
, Monitor
*mon
);