mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
sclp: sort into categories
Sort the sclp consoles into the input category, just as virtio-serial. Various other sclp devices don't have an obvious category, sort them into misc. Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
This commit is contained in:
parent
4d1866de94
commit
183f6b8d7e
6 changed files with 15 additions and 0 deletions
|
@ -457,10 +457,19 @@ sclpMemoryHotplugDev *get_sclp_memory_hotplug_dev(void)
|
|||
TYPE_SCLP_MEMORY_HOTPLUG_DEV, NULL));
|
||||
}
|
||||
|
||||
static void sclp_memory_hotplug_dev_class_init(ObjectClass *klass,
|
||||
void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
|
||||
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
|
||||
}
|
||||
|
||||
static TypeInfo sclp_memory_hotplug_dev_info = {
|
||||
.name = TYPE_SCLP_MEMORY_HOTPLUG_DEV,
|
||||
.parent = TYPE_SYS_BUS_DEVICE,
|
||||
.instance_size = sizeof(sclpMemoryHotplugDev),
|
||||
.class_init = sclp_memory_hotplug_dev_class_init,
|
||||
};
|
||||
|
||||
static void register_types(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue