accel/hax: Introduce CONFIG_HAX_IS_POSSIBLE
[qemu/ar7.git] / include / hw / hyperv / vmbus-bridge.h
blob1e5419574ee68a0d6c76bb545f8f7b35db7221cb
1 /*
2 * QEMU Hyper-V VMBus root bridge
4 * Copyright (c) 2017-2018 Virtuozzo International GmbH.
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 */
10 #ifndef HW_HYPERV_VMBUS_BRIDGE_H
11 #define HW_HYPERV_VMBUS_BRIDGE_H
13 #include "hw/sysbus.h"
14 #include "hw/hyperv/vmbus.h"
15 #include "qom/object.h"
17 #define TYPE_VMBUS_BRIDGE "vmbus-bridge"
19 struct VMBusBridge {
20 SysBusDevice parent_obj;
22 uint8_t irq;
24 VMBus *bus;
27 OBJECT_DECLARE_SIMPLE_TYPE(VMBusBridge, VMBUS_BRIDGE)
29 static inline VMBusBridge *vmbus_bridge_find(void)
31 return VMBUS_BRIDGE(object_resolve_path_type("", TYPE_VMBUS_BRIDGE, NULL));
34 #endif