mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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>
This commit is contained in:
parent
ce967e2f33
commit
302fe51b59
7 changed files with 110 additions and 18 deletions
3
hw/pc.c
3
hw/pc.c
|
@ -37,6 +37,7 @@
|
|||
#include "multiboot.h"
|
||||
#include "mc146818rtc.h"
|
||||
#include "i8254.h"
|
||||
#include "pcspk.h"
|
||||
#include "msi.h"
|
||||
#include "sysbus.h"
|
||||
#include "sysemu.h"
|
||||
|
@ -1172,7 +1173,7 @@ void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi,
|
|||
/* connect PIT to output control line of the HPET */
|
||||
qdev_connect_gpio_out(hpet, 0, qdev_get_gpio_in(&pit->qdev, 0));
|
||||
}
|
||||
pcspk_init(pit);
|
||||
pcspk_init(isa_bus, pit);
|
||||
|
||||
for(i = 0; i < MAX_SERIAL_PORTS; i++) {
|
||||
if (serial_hds[i]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue