diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2010-06-13 14:15:38 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-06-13 15:32:59 +0300 |
commit | 822557eb8ea4694d1a91b68cbf6152f5277f5599 (patch) | |
tree | ffd68a258bad7715747dc47b5409e6bbc6585683 /hw/hpet_emul.h | |
parent | 7afbecc9efa64a88ab6194c2cf1d6feabd03d119 (diff) |
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 <jan.kiszka@siemens.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/hpet_emul.h')
-rw-r--r-- | hw/hpet_emul.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |