From 822557eb8ea4694d1a91b68cbf6152f5277f5599 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Sun, 13 Jun 2010 14:15:38 +0200 Subject: hpet: Convert to qdev Register the HPET as a sysbus device and create it that way. As it can route its IRQs to any ISA IRQ, we need to connect it to all 24 of them. Once converted to qdev, we can move reset handler and vmstate registration into its hands as well. Signed-off-by: Jan Kiszka Signed-off-by: Blue Swirl --- hw/hpet_emul.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hw/hpet_emul.h') diff --git a/hw/hpet_emul.h b/hw/hpet_emul.h index 2f5f8bab90..785f850dbb 100644 --- a/hw/hpet_emul.h +++ b/hw/hpet_emul.h @@ -19,6 +19,8 @@ #define FS_PER_NS 1000000 #define HPET_NUM_TIMERS 3 +#define HPET_NUM_IRQ_ROUTES 32 + #define HPET_CFG_ENABLE 0x001 #define HPET_CFG_LEGACY 0x002 @@ -47,7 +49,6 @@ #if defined TARGET_I386 extern uint32_t hpet_in_legacy_mode(void); -extern void hpet_init(qemu_irq *irq); #endif #endif -- cgit v1.2.3-70-g09d2