mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
devices: Associate devices to their logical category
The category will be used to sort the devices displayed in the command line help. Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com> Message-id: 1375107465-25767-4-git-send-email-marcel.a@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
3d1237fb2a
commit
125ee0ed9c
108 changed files with 158 additions and 0 deletions
|
@ -2937,6 +2937,7 @@ static void isa_cirrus_vga_class_init(ObjectClass *klass, void *data)
|
|||
dc->vmsd = &vmstate_cirrus_vga;
|
||||
dc->realize = isa_cirrus_vga_realizefn;
|
||||
dc->props = isa_cirrus_vga_properties;
|
||||
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
|
||||
}
|
||||
|
||||
static const TypeInfo isa_cirrus_vga_info = {
|
||||
|
@ -3002,6 +3003,7 @@ static void cirrus_vga_class_init(ObjectClass *klass, void *data)
|
|||
k->vendor_id = PCI_VENDOR_ID_CIRRUS;
|
||||
k->device_id = CIRRUS_ID_CLGD5446;
|
||||
k->class_id = PCI_CLASS_DISPLAY_VGA;
|
||||
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
|
||||
dc->desc = "Cirrus CLGD 54xx VGA";
|
||||
dc->vmsd = &vmstate_pci_cirrus_vga;
|
||||
dc->props = pci_vga_cirrus_properties;
|
||||
|
|
|
@ -528,6 +528,7 @@ static void g364fb_sysbus_class_init(ObjectClass *klass, void *data)
|
|||
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
|
||||
|
||||
k->init = g364fb_sysbus_init;
|
||||
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
|
||||
dc->desc = "G364 framebuffer";
|
||||
dc->reset = g364fb_sysbus_reset;
|
||||
dc->vmsd = &vmstate_g364fb;
|
||||
|
|
|
@ -481,6 +481,7 @@ static void pl110_class_init(ObjectClass *klass, void *data)
|
|||
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
|
||||
|
||||
k->init = pl110_init;
|
||||
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
|
||||
dc->no_user = 1;
|
||||
dc->vmsd = &vmstate_pl110;
|
||||
}
|
||||
|
@ -498,6 +499,7 @@ static void pl110_versatile_class_init(ObjectClass *klass, void *data)
|
|||
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
|
||||
|
||||
k->init = pl110_versatile_init;
|
||||
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
|
||||
dc->no_user = 1;
|
||||
dc->vmsd = &vmstate_pl110;
|
||||
}
|
||||
|
@ -515,6 +517,7 @@ static void pl111_class_init(ObjectClass *klass, void *data)
|
|||
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
|
||||
|
||||
k->init = pl111_init;
|
||||
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
|
||||
dc->no_user = 1;
|
||||
dc->vmsd = &vmstate_pl110;
|
||||
}
|
||||
|
|
|
@ -2323,6 +2323,7 @@ static void qxl_primary_class_init(ObjectClass *klass, void *data)
|
|||
k->vendor_id = REDHAT_PCI_VENDOR_ID;
|
||||
k->device_id = QXL_DEVICE_ID_STABLE;
|
||||
k->class_id = PCI_CLASS_DISPLAY_VGA;
|
||||
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
|
||||
dc->desc = "Spice QXL GPU (primary, vga compatible)";
|
||||
dc->reset = qxl_reset_handler;
|
||||
dc->vmsd = &qxl_vmstate;
|
||||
|
@ -2345,6 +2346,7 @@ static void qxl_secondary_class_init(ObjectClass *klass, void *data)
|
|||
k->vendor_id = REDHAT_PCI_VENDOR_ID;
|
||||
k->device_id = QXL_DEVICE_ID_STABLE;
|
||||
k->class_id = PCI_CLASS_DISPLAY_OTHER;
|
||||
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
|
||||
dc->desc = "Spice QXL GPU (secondary)";
|
||||
dc->reset = qxl_reset_handler;
|
||||
dc->vmsd = &qxl_vmstate;
|
||||
|
|
|
@ -87,6 +87,7 @@ static void vga_isa_class_initfn(ObjectClass *klass, void *data)
|
|||
dc->reset = vga_isa_reset;
|
||||
dc->vmsd = &vmstate_vga_common;
|
||||
dc->props = vga_isa_properties;
|
||||
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
|
||||
}
|
||||
|
||||
static const TypeInfo vga_isa_info = {
|
||||
|
|
|
@ -198,6 +198,7 @@ static void vga_class_init(ObjectClass *klass, void *data)
|
|||
k->class_id = PCI_CLASS_DISPLAY_VGA;
|
||||
dc->vmsd = &vmstate_vga_pci;
|
||||
dc->props = vga_pci_properties;
|
||||
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
|
||||
}
|
||||
|
||||
static const TypeInfo vga_info = {
|
||||
|
|
|
@ -1306,6 +1306,7 @@ static void vmsvga_class_init(ObjectClass *klass, void *data)
|
|||
dc->reset = vmsvga_reset;
|
||||
dc->vmsd = &vmstate_vmware_vga;
|
||||
dc->props = vga_vmware_properties;
|
||||
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
|
||||
}
|
||||
|
||||
static const TypeInfo vmsvga_info = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue