hw/arm/orangepi: check for potential NULL pointer when calling blk_is_available
[qemu/ar7.git] / include / hw / nubus / mac-nubus-bridge.h
blobce9c789d999a6fba0f4f3fa5e4210aa915f0aa57
1 /*
2 * Copyright (c) 2013-2018 Laurent Vivier <laurent@vivier.eu>
4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
7 */
9 #ifndef HW_NUBUS_MAC_H
10 #define HW_NUBUS_MAC_H
12 #include "hw/nubus/nubus.h"
14 #define TYPE_MAC_NUBUS_BRIDGE "mac-nubus-bridge"
15 #define MAC_NUBUS_BRIDGE(obj) OBJECT_CHECK(MacNubusState, (obj), \
16 TYPE_MAC_NUBUS_BRIDGE)
18 typedef struct MacNubusState {
19 SysBusDevice sysbus_dev;
21 NubusBus *bus;
22 } MacNubusState;
24 #endif