s390x/css: provide a dev_path for css devices
[qemu.git] / include / hw / s390x / css-bridge.h
blob5a0203be5f95061bf65a815c01dd9d4a0a589df1
1 /*
2 * virtual css bridge definition
4 * Copyright 2012,2016 IBM Corp.
5 * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com>
6 * Pierre Morel <pmorel@linux.vnet.ibm.com>
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.
13 #ifndef HW_S390X_CSS_BRIDGE_H
14 #define HW_S390X_CSS_BRIDGE_H
15 #include "qom/object.h"
16 #include "hw/qdev-core.h"
18 /* virtual css bridge */
19 typedef struct VirtualCssBridge {
20 SysBusDevice sysbus_dev;
21 bool css_dev_path;
22 } VirtualCssBridge;
24 #define TYPE_VIRTUAL_CSS_BRIDGE "virtual-css-bridge"
25 #define VIRTUAL_CSS_BRIDGE(obj) \
26 OBJECT_CHECK(VirtualCssBridge, (obj), TYPE_VIRTUAL_CSS_BRIDGE)
28 /* virtual css bus type */
29 typedef struct VirtualCssBus {
30 BusState parent_obj;
31 } VirtualCssBus;
33 #define TYPE_VIRTUAL_CSS_BUS "virtual-css-bus"
34 #define VIRTUAL_CSS_BUS(obj) \
35 OBJECT_CHECK(VirtualCssBus, (obj), TYPE_VIRTUAL_CSS_BUS)
36 VirtualCssBus *virtual_css_bus_init(void);
38 #endif