qemu-cr16/hw
Eric Auger 1a10285665 hw/core/sysbus: Introduce sysbus_mmio_map_name() helper
Some sysbus devices have conditional mmio regions. This
happens for instance with the hw/acpi/ged device. In that case
it becomes difficult to predict which index a specific MMIO
region corresponds to when one needs to mmio map the region.
Introduce a new helper that takes the name of the region instead
of its index. If the region is not found this returns -1.
Otherwise it maps the corresponding index and returns this latter.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20250714080639.2525563-31-eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2025-07-15 02:56:40 -04:00
..
9pfs
acpi hw/acpi/ged: Support migration of AcpiPciHpState 2025-07-15 02:56:40 -04:00
adc
alpha
arm hw/arm/virt: Pass the bus on the ged creation 2025-07-15 02:56:40 -04:00
audio
avr
block hw/virtio: Build various files once 2025-07-15 02:56:39 -04:00
char qemu: Declare all load/store helper in 'qemu/bswap.h' 2025-07-15 02:56:39 -04:00
core hw/core/sysbus: Introduce sysbus_mmio_map_name() helper 2025-07-15 02:56:40 -04:00
cpu
cxl qemu: Declare all load/store helper in 'qemu/bswap.h' 2025-07-15 02:56:39 -04:00
display qemu: Declare all load/store helper in 'qemu/bswap.h' 2025-07-15 02:56:39 -04:00
dma
fsi
gpio
hppa
hyperv
i2c
i386 hw/i386/acpi-build: Move aml_pci_edsm to a generic place 2025-07-15 02:56:40 -04:00
ide
input
intc target-arm queue: 2025-07-13 01:45:18 -04:00
ipack
ipmi
isa
loongarch acpi: Add machine option to disable SPCR table 2025-07-14 09:16:40 -04:00
m68k
mem
microblaze
mips
misc MAX78000: AES implementation 2025-07-08 17:31:59 +01:00
net qemu: Declare all load/store helper in 'qemu/bswap.h' 2025-07-15 02:56:39 -04:00
nubus
nvme treewide: fix paths for relocated files in comments 2025-07-02 18:26:27 +02:00
nvram
openrisc
pci
pci-bridge
pci-host hw/pci-host/gpex-acpi: Use build_pci_host_bridge_osc_method 2025-07-15 02:56:40 -04:00
ppc migration: Rename save_live_complete_precopy to save_complete 2025-07-11 10:37:36 -03:00
remote
riscv acpi: Add machine option to disable SPCR table 2025-07-14 09:16:40 -04:00
rtc
rx
s390x qemu: Declare all load/store helper in 'qemu/bswap.h' 2025-07-15 02:56:39 -04:00
scsi
sd
sensor qemu: Declare all load/store helper in 'qemu/bswap.h' 2025-07-15 02:56:39 -04:00
sh4
smbios qemu: Declare all load/store helper in 'qemu/bswap.h' 2025-07-15 02:56:39 -04:00
sparc
sparc64
ssi
timer
tpm
tricore
uefi
ufs
usb
vfio qemu: Declare all load/store helper in 'qemu/bswap.h' 2025-07-15 02:56:39 -04:00
vfio-user vfio-user: do not register vfio-user container with cpr 2025-07-03 13:42:28 +02:00
virtio hw/virtio: Build various files once 2025-07-15 02:56:39 -04:00
vmapple qemu: Declare all load/store helper in 'qemu/bswap.h' 2025-07-15 02:56:39 -04:00
watchdog
xen
xenpv
xtensa
Kconfig vfio-user: add vfio-user class and container 2025-06-26 08:55:38 +02:00
meson.build vfio-user: add vfio-user class and container 2025-06-26 08:55:38 +02:00