diff options
Diffstat (limited to 'hw/i82378.c')
-rw-r--r-- | hw/i82378.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/hw/i82378.c b/hw/i82378.c index 9c3efe8b95..faad1a365b 100644 --- a/hw/i82378.c +++ b/hw/i82378.c @@ -19,6 +19,8 @@ #include "pci.h" #include "pc.h" +#include "i8254.h" +#include "pcspk.h" //#define DEBUG_I82378 @@ -191,10 +193,10 @@ static void i82378_init(DeviceState *dev, I82378State *s) isa_bus_irqs(isabus, s->i8259); /* 1 82C54 (pit) */ - pit = pit_init(isabus, 0x40, 0); + pit = pit_init(isabus, 0x40, 0, NULL); /* speaker */ - pcspk_init(pit); + pcspk_init(isabus, pit); /* 2 82C37 (dma) */ DMA_init(1, &s->out[1]); @@ -267,9 +269,9 @@ static TypeInfo pci_i82378_info = { .class_init = pci_i82378_class_init, }; -static void i82378_register_devices(void) +static void i82378_register_types(void) { type_register_static(&pci_i82378_info); } -device_init(i82378_register_devices) +type_init(i82378_register_types) |