Merge remote-tracking branch 'remotes/amarkovic/tags/mips-queue-june-01-2020' into...
[qemu/ar7.git] / hw / s390x / ap-device.c
blobfc0b41e9373bc18b9582ab530ddadb78a3119d56
1 /*
2 * Adjunct Processor (AP) matrix device
4 * Copyright 2018 IBM Corp.
6 * This work is licensed under the terms of the GNU GPL, version 2 or (at
7 * your option) any later version. See the COPYING file in the top-level
8 * directory.
9 */
10 #include "qemu/osdep.h"
11 #include "qemu/module.h"
12 #include "qapi/error.h"
13 #include "hw/s390x/ap-device.h"
15 static void ap_class_init(ObjectClass *klass, void *data)
17 DeviceClass *dc = DEVICE_CLASS(klass);
19 dc->desc = "AP device class";
20 dc->hotpluggable = false;
23 static const TypeInfo ap_device_info = {
24 .name = AP_DEVICE_TYPE,
25 .parent = TYPE_DEVICE,
26 .instance_size = sizeof(APDevice),
27 .class_size = sizeof(DeviceClass),
28 .class_init = ap_class_init,
29 .abstract = true,
32 static void ap_device_register(void)
34 type_register_static(&ap_device_info);
37 type_init(ap_device_register)