]>
Commit | Line | Data |
---|---|---|
0d71f708 JD |
1 | /* |
2 | * QEMU Hyper-V VMBus root bridge | |
3 | * | |
4 | * Copyright (c) 2017-2018 Virtuozzo International GmbH. | |
5 | * | |
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 | */ | |
9 | ||
10 | #ifndef HW_HYPERV_VMBUS_BRIDGE_H | |
11 | #define HW_HYPERV_VMBUS_BRIDGE_H | |
12 | ||
13 | #include "hw/sysbus.h" | |
240b6cd7 | 14 | #include "hw/hyperv/vmbus.h" |
db1015e9 | 15 | #include "qom/object.h" |
0d71f708 JD |
16 | |
17 | #define TYPE_VMBUS_BRIDGE "vmbus-bridge" | |
18 | ||
db1015e9 | 19 | struct VMBusBridge { |
0d71f708 JD |
20 | SysBusDevice parent_obj; |
21 | ||
8f06f22f | 22 | uint8_t irq; |
6775d15d | 23 | |
0d71f708 | 24 | VMBus *bus; |
db1015e9 | 25 | }; |
0d71f708 | 26 | |
8063396b | 27 | OBJECT_DECLARE_SIMPLE_TYPE(VMBusBridge, VMBUS_BRIDGE) |
0d71f708 JD |
28 | |
29 | static inline VMBusBridge *vmbus_bridge_find(void) | |
30 | { | |
31 | return VMBUS_BRIDGE(object_resolve_path_type("", TYPE_VMBUS_BRIDGE, NULL)); | |
32 | } | |
33 | ||
34 | #endif |