tests/qemu-iotests: Remove redundant COPYING file
[qemu/ar7.git] / hw / s390x / ap-device.c
blobf5ac8db9682662a249ed52ac0c7f8c82924ee236
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/qdev.h"
14 #include "hw/s390x/ap-device.h"
16 static void ap_class_init(ObjectClass *klass, void *data)
18 DeviceClass *dc = DEVICE_CLASS(klass);
20 dc->desc = "AP device class";
21 dc->hotpluggable = false;
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,
33 static void ap_device_register(void)
35 type_register_static(&ap_device_info);
38 type_init(ap_device_register)