]> git.proxmox.com Git - mirror_qemu.git/commit - hw/qdev.h
qdev: replace bus_type enum with bus_info struct.
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 30 Jun 2009 12:12:08 +0000 (14:12 +0200)
committerPaul Brook <paul@codesourcery.com>
Thu, 9 Jul 2009 12:07:03 +0000 (13:07 +0100)
commit10c4c98ab7dc18169b37b76f6ea5e60ebe65222b
tree94b41a4a26b82720cc8695b66cedbcf135d68669
parent0aab0d3a4a62505ab7e79ee0a67fe3f04f6dae23
qdev: replace bus_type enum with bus_info struct.

BusInfo is filled with name and size (pretty much like I did for
DeviceInfo as well).  There is also a function pointer to print
bus-specific device information to the monitor.  sysbus is hooked
up there, I've also added a print function for PCI.

Device creation is slightly modified as well:  The device type search
loop now also checks the bus type while scanning the list instead of
complaining thereafter in case of a mismatch.  This effectively gives
each bus a private namespace for device names.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Paul Brook <paul@codesourcery.com>
hw/i2c.c
hw/pci.c
hw/qdev.c
hw/qdev.h
hw/ssi.c
hw/sysbus.c