2 * QEMU Macintosh Nubus Virtio MMIO card
4 * Copyright (c) 2023 Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
6 * SPDX-License-Identifier: GPL-2.0-or-later
9 #ifndef HW_NUBUS_VIRTIO_MMIO_H
10 #define HW_NUBUS_VIRTIO_MMIO_H
12 #include "hw/nubus/nubus.h"
13 #include "qom/object.h"
14 #include "hw/intc/goldfish_pic.h"
15 #include "hw/virtio/virtio-mmio.h"
17 #define TYPE_NUBUS_VIRTIO_MMIO "nubus-virtio-mmio"
18 OBJECT_DECLARE_TYPE(NubusVirtioMMIO
, NubusVirtioMMIODeviceClass
,
21 struct NubusVirtioMMIODeviceClass
{
22 DeviceClass parent_class
;
24 DeviceRealize parent_realize
;
27 #define NUBUS_VIRTIO_MMIO_NUM_DEVICES 32
29 struct NubusVirtioMMIO
{
30 NubusDevice parent_obj
;
33 VirtIOMMIOProxy virtio_mmio
[NUBUS_VIRTIO_MMIO_NUM_DEVICES
];