blob: 237d1f19c50409ab9de9eb413c59cacccbd03a3c [file] [log] [blame]
Tony Krowiaka51b3152018-10-10 13:03:06 -04001/*
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"
Tony Krowiaka51b3152018-10-10 13:03:06 -040013#include "hw/s390x/ap-device.h"
14
15static 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
23static const TypeInfo ap_device_info = {
Eduardo Habkostfab2aff2020-09-02 18:42:13 -040024 .name = TYPE_AP_DEVICE,
Tony Krowiaka51b3152018-10-10 13:03:06 -040025 .parent = TYPE_DEVICE,
26 .instance_size = sizeof(APDevice),
27 .class_size = sizeof(DeviceClass),
28 .class_init = ap_class_init,
29 .abstract = true,
30};
31
32static void ap_device_register(void)
33{
34 type_register_static(&ap_device_info);
35}
36
37type_init(ap_device_register)