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