xref: /openbmc/qemu/include/hw/s390x/css-bridge.h (revision 8fa3b702)
1 /*
2  * virtual css bridge definition
3  *
4  * Copyright 2012,2016 IBM Corp.
5  * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com>
6  *            Pierre Morel <pmorel@linux.vnet.ibm.com>
7  *
8  * This work is licensed under the terms of the GNU GPL, version 2 or (at
9  * your option) any later version. See the COPYING file in the top-level
10  * directory.
11  */
12 
13 #ifndef HW_S390X_CSS_BRIDGE_H
14 #define HW_S390X_CSS_BRIDGE_H
15 
16 #include "qom/object.h"
17 #include "hw/sysbus.h"
18 
19 /* virtual css bridge */
20 struct VirtualCssBridge {
21     SysBusDevice sysbus_dev;
22     bool css_dev_path;
23 };
24 typedef struct VirtualCssBridge VirtualCssBridge;
25 
26 #define TYPE_VIRTUAL_CSS_BRIDGE "virtual-css-bridge"
27 DECLARE_INSTANCE_CHECKER(VirtualCssBridge, VIRTUAL_CSS_BRIDGE,
28                          TYPE_VIRTUAL_CSS_BRIDGE)
29 
30 /* virtual css bus type */
31 struct VirtualCssBus {
32     BusState parent_obj;
33 };
34 typedef struct VirtualCssBus VirtualCssBus;
35 
36 #define TYPE_VIRTUAL_CSS_BUS "virtual-css-bus"
37 DECLARE_INSTANCE_CHECKER(VirtualCssBus, VIRTUAL_CSS_BUS,
38                          TYPE_VIRTUAL_CSS_BUS)
39 VirtualCssBus *virtual_css_bus_init(void);
40 
41 #endif
42