mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
isa: pic: convert to QEMU Object Model
This converts two devices at once because PIC subclasses ISA and converting subclasses independently is extremely hard. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
e855761ca8
commit
8f04ee0882
28 changed files with 390 additions and 192 deletions
15
hw/sga.c
15
hw/sga.c
|
@ -40,12 +40,17 @@ static int sga_initfn(ISADevice *dev)
|
|||
rom_add_vga(SGABIOS_FILENAME);
|
||||
return 0;
|
||||
}
|
||||
static void sga_class_initfn(ObjectClass *klass, void *data)
|
||||
{
|
||||
ISADeviceClass *ic = ISA_DEVICE_CLASS(klass);
|
||||
ic->init = sga_initfn;
|
||||
}
|
||||
|
||||
static ISADeviceInfo sga_info = {
|
||||
.qdev.name = "sga",
|
||||
.qdev.desc = "Serial Graphics Adapter",
|
||||
.qdev.size = sizeof(ISASGAState),
|
||||
.init = sga_initfn,
|
||||
static DeviceInfo sga_info = {
|
||||
.name = "sga",
|
||||
.desc = "Serial Graphics Adapter",
|
||||
.size = sizeof(ISASGAState),
|
||||
.class_init = sga_class_initfn,
|
||||
};
|
||||
|
||||
static void sga_register(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue