aboutsummaryrefslogtreecommitdiff
path: root/hw/i82378.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-02-17 11:24:34 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2012-02-17 09:58:22 -0600
commit302fe51b5900c5ca5be921269b61f4862e0634ce (patch)
treeee0e3e9a4c73dc3d858cb8eae83b61a5144fa4e5 /hw/i82378.c
parentce967e2f33861b0e17753f97fa4527b5943c94b6 (diff)
downloadqemu-302fe51b5900c5ca5be921269b61f4862e0634ce.zip
qemu-302fe51b5900c5ca5be921269b61f4862e0634ce.tar.gz
qemu-302fe51b5900c5ca5be921269b61f4862e0634ce.tar.bz2
pcspk: Convert to qdev
Convert the PC speaker device to a qdev ISA model. Move the public interface to a dedicated header file at this chance. CC: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/i82378.c')
-rw-r--r--hw/i82378.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/i82378.c b/hw/i82378.c
index cc41564..faad1a3 100644
--- a/hw/i82378.c
+++ b/hw/i82378.c
@@ -20,6 +20,7 @@
#include "pci.h"
#include "pc.h"
#include "i8254.h"
+#include "pcspk.h"
//#define DEBUG_I82378
@@ -195,7 +196,7 @@ static void i82378_init(DeviceState *dev, I82378State *s)
pit = pit_init(isabus, 0x40, 0, NULL);
/* speaker */
- pcspk_init(pit);
+ pcspk_init(isabus, pit);
/* 2 82C37 (dma) */
DMA_init(1, &s->out[1]);