mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
i8259: generalize statistics into common code
It was only for userspace i8259. Move it to general code so that kvm-i8259 can also use it in the future. Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20171210063819.14892-4-peterx@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f260f7361c
commit
1b23190aba
3 changed files with 47 additions and 38 deletions
|
@ -28,6 +28,7 @@
|
|||
#include "hw/hw.h"
|
||||
#include "hw/i386/pc.h"
|
||||
#include "hw/isa/isa.h"
|
||||
#include "hw/intc/intc.h"
|
||||
|
||||
typedef struct PICCommonState PICCommonState;
|
||||
|
||||
|
@ -76,8 +77,10 @@ struct PICCommonState {
|
|||
};
|
||||
|
||||
void pic_reset_common(PICCommonState *s);
|
||||
|
||||
ISADevice *i8259_init_chip(const char *name, ISABus *bus, bool master);
|
||||
|
||||
void pic_stat_update_irq(int irq, int level);
|
||||
bool pic_get_statistics(InterruptStatsProvider *obj,
|
||||
uint64_t **irq_counts, unsigned int *nb_irqs);
|
||||
void pic_print_info(InterruptStatsProvider *obj, Monitor *mon);
|
||||
|
||||
#endif /* QEMU_I8259_INTERNAL_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue