diff options
author | Mark Cave-Ayland | 2021-09-24 09:37:59 +0200 |
---|---|---|
committer | Laurent Vivier | 2021-09-29 10:45:19 +0200 |
commit | 3616f424c911f1b52629cea1fec6ef99e9da07ad (patch) | |
tree | 55c584387c4c0926c0e4108c0a3a64470bf83c37 /include/hw/nubus | |
parent | nubus-device: remove nubus_register_rom() and nubus_register_format_block() (diff) | |
download | qemu-3616f424c911f1b52629cea1fec6ef99e9da07ad.tar.gz qemu-3616f424c911f1b52629cea1fec6ef99e9da07ad.tar.xz qemu-3616f424c911f1b52629cea1fec6ef99e9da07ad.zip |
nubus-device: add romfile property for loading declaration ROMs
The declaration ROM is located at the top-most address of the standard slot
space.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210924073808.1041-12-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'include/hw/nubus')
-rw-r--r-- | include/hw/nubus/nubus.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/nubus/nubus.h b/include/hw/nubus/nubus.h index 187ecc00a5..343be95841 100644 --- a/include/hw/nubus/nubus.h +++ b/include/hw/nubus/nubus.h @@ -12,6 +12,7 @@ #include "hw/qdev-properties.h" #include "exec/address-spaces.h" #include "qom/object.h" +#include "qemu/units.h" #define NUBUS_SUPER_SLOT_SIZE 0x10000000U #define NUBUS_SUPER_SLOT_NB 0xe @@ -38,12 +39,17 @@ struct NubusBus { uint16_t slot_available_mask; }; +#define NUBUS_DECL_ROM_MAX_SIZE (128 * KiB) + struct NubusDevice { DeviceState qdev; int32_t slot; MemoryRegion super_slot_mem; MemoryRegion slot_mem; + + char *romfile; + MemoryRegion decl_rom; }; #endif |