Add common BusState
authorPaul Brook <paul@codesourcery.com>
Fri, 22 May 2009 23:05:19 +0000 (00:05 +0100)
committerPaul Brook <paul@codesourcery.com>
Fri, 22 May 2009 23:13:41 +0000 (00:13 +0100)
commit02e2da45c4601909d5105838323d5c529ec7010b
treee9b1099baa55c3f8084110feb28f57ede8d2de3a
parent4856fcff8af1ba349baaf063af00f5e5d87a99f4
Add common BusState

Implement and use a common device bus state.  The main side-effect is
that creating a bus and attaching it to a parent device are no longer
separate operations.  For legacy code we allow a NULL parent, but that
should go away eventually.

Also tweak creation code to veriry theat a device in on the right bus.

Signed-off-by: Paul Brook <paul@codesourcery.com>
30 files changed:
hw/acpi.c
hw/apb_pci.c
hw/grackle_pci.c
hw/gt64xxx.c
hw/i2c.c
hw/i2c.h
hw/mips_malta.c
hw/musicpal.c
hw/omap_i2c.c
hw/pc.c
hw/pci.c
hw/pci.h
hw/piix_pci.c
hw/pl022.c
hw/ppc4xx_pci.c
hw/ppce500_pci.c
hw/prep_pci.c
hw/pxa2xx.c
hw/qdev.c
hw/qdev.h
hw/realview.c
hw/sh_pci.c
hw/spitz.c
hw/ssi.c
hw/ssi.h
hw/stellaris.c
hw/sysbus.c
hw/unin_pci.c
hw/versatile_pci.c
hw/versatilepb.c