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.
9 #ifndef HW_NUBUS_NUBUS_H
10 #define HW_NUBUS_NUBUS_H
12 #include "hw/qdev-properties.h"
13 #include "exec/address-spaces.h"
14 #include "qom/object.h"
16 #define NUBUS_SUPER_SLOT_SIZE 0x10000000U
17 #define NUBUS_SUPER_SLOT_NB 0x9
19 #define NUBUS_SLOT_SIZE 0x01000000
20 #define NUBUS_SLOT_NB 0xF
22 #define NUBUS_FIRST_SLOT 0x9
23 #define NUBUS_LAST_SLOT 0xF
25 #define TYPE_NUBUS_DEVICE "nubus-device"
26 OBJECT_DECLARE_SIMPLE_TYPE(NubusDevice
, NUBUS_DEVICE
)
28 #define TYPE_NUBUS_BUS "nubus-bus"
29 OBJECT_DECLARE_SIMPLE_TYPE(NubusBus
, NUBUS_BUS
)
31 #define TYPE_NUBUS_BRIDGE "nubus-bridge"
36 MemoryRegion super_slot_io
;
46 MemoryRegion slot_mem
;
50 MemoryRegion fblock_io
;
57 int32_t directory_offset
;
65 void nubus_register_rom(NubusDevice
*dev
, const uint8_t *rom
, uint32_t size
,
66 int revision
, int format
, uint8_t byte_lanes
);