xref: /openbmc/qemu/hw/s390x/ccw-device.c (revision 6e99f574)
1 /*
2  * Common device infrastructure for devices in the virtual css
3  *
4  * Copyright 2016 IBM Corp.
5  * Author(s): Jing Liu <liujbjl@linux.vnet.ibm.com>
6  *
7  * This work is licensed under the terms of the GNU GPL, version 2 or (at
8  * your option) any later version. See the COPYING file in the top-level
9  * directory.
10  */
11 #include "qemu/osdep.h"
12 #include "ccw-device.h"
13 
14 static const TypeInfo ccw_device_info = {
15     .name = TYPE_CCW_DEVICE,
16     .parent = TYPE_DEVICE,
17     .instance_size = sizeof(CcwDevice),
18     .class_size = sizeof(CCWDeviceClass),
19     .abstract = true,
20 };
21 
22 static void ccw_device_register(void)
23 {
24     type_register_static(&ccw_device_info);
25 }
26 
27 type_init(ccw_device_register)
28