qemu-e2k/include
Laszlo Ersek 0b336b3b98 hw/core: explicit OFW unit address callback for SysBusDeviceClass
The sysbus_get_fw_dev_path() function formats OpenFirmware device path
nodes ("driver-name@unit-address") for sysbus devices. The first choice
for "unit-address" is the base address of the device's first MMIO region.
The second choice is its first IO port.

However, if two sysbus devices with the same "driver-name" lack both MMIO
and PIO resources, then there is no good way to distinguish them based on
their OFW nodes, because in this case unit-address is omitted completely
for both devices. An example is TYPE_PXB_HOST ("pxb-host").

For the sake of such devices, introduce the explicit_ofw_unit_address()
"virtual member function". With this function, each sysbus device in the
same SysBusDeviceClass can state its own address.

Cc: Markus Armbruster <armbru@redhat.com>
Cc: Marcel Apfelbaum <marcel@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Tested-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2015-06-23 22:58:36 +02:00
..
block Block layer core and image format patches 2015-06-15 10:43:06 +01:00
disas
exec semihosting: add --semihosting-config arg sub-argument 2015-06-19 14:17:45 +01:00
fpu
hw hw/core: explicit OFW unit address callback for SysBusDeviceClass 2015-06-23 22:58:36 +02:00
libdecnumber
migration migration: introduce VMSTATE_BUFFER_UNSAFE_INFO_TEST() 2015-06-23 22:57:47 +02:00
monitor audio: remove LOG_TO_MONITOR along with default_mon 2015-06-15 12:42:48 +02:00
net vhost: enable vhost without without MSI-X 2015-06-19 12:17:49 +02:00
qapi qom: Make enum string tables const-correct 2015-06-19 18:42:18 +02:00
qemu QOM infrastructure fixes and device conversions 2015-06-22 12:50:30 +01:00
qom qom: Don't pass string table to object_get_enum() function 2015-06-19 18:42:48 +02:00
standard-headers virtio: update headers, add virtio-gpu (2d) 2015-06-10 11:02:00 +02:00
sysemu semihosting: create SemihostingConfig structure and semihost.h 2015-06-19 14:17:45 +01:00
ui
config.h
elf.h
glib-compat.h
qemu-common.h
qemu-io.h
qjson.h
trace-tcg.h
trace.h