MAINTAINERS: Make section QOM cover hw/core/*bus.c as well
[qemu/armbru.git] / include / hw / hyperv / vmbus-bridge.h
blobc0a06d832c61a64b0a0fe93d41f02c1913d86f97
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"
15 #define TYPE_VMBUS_BRIDGE "vmbus-bridge"
17 typedef struct VMBus VMBus;
19 typedef struct VMBusBridge {
20 SysBusDevice parent_obj;
22 uint8_t irq0;
23 uint8_t irq1;
25 VMBus *bus;
26 } VMBusBridge;
28 #define VMBUS_BRIDGE(obj) OBJECT_CHECK(VMBusBridge, (obj), TYPE_VMBUS_BRIDGE)
30 static inline VMBusBridge *vmbus_bridge_find(void)
32 return VMBUS_BRIDGE(object_resolve_path_type("", TYPE_VMBUS_BRIDGE, NULL));
35 #endif