xref: /openbmc/qemu/hw/s390x/ap-device.c (revision 709395f8)
1 /*
2  * Adjunct Processor (AP) matrix device
3  *
4  * Copyright 2018 IBM Corp.
5  *
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/qdev.h"
14 #include "hw/s390x/ap-device.h"
15 
16 static void ap_class_init(ObjectClass *klass, void *data)
17 {
18     DeviceClass *dc = DEVICE_CLASS(klass);
19 
20     dc->desc = "AP device class";
21     dc->hotpluggable = false;
22 }
23 
24 static const TypeInfo ap_device_info = {
25     .name = AP_DEVICE_TYPE,
26     .parent = TYPE_DEVICE,
27     .instance_size = sizeof(APDevice),
28     .class_size = sizeof(DeviceClass),
29     .class_init = ap_class_init,
30     .abstract = true,
31 };
32 
33 static void ap_device_register(void)
34 {
35     type_register_static(&ap_device_info);
36 }
37 
38 type_init(ap_device_register)
39