]> git.proxmox.com Git - qemu.git/commit
usb/ehci: Clean up SysBus and PCI EHCI split
authorAndreas Färber <andreas.faerber@web.de>
Sun, 16 Dec 2012 03:49:43 +0000 (04:49 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 7 Jan 2013 11:57:24 +0000 (12:57 +0100)
commit5aa3ca9f53cc7a1bf76b7583c46937a73914394a
tree3c1c4e4ca4a203a4c64b91045d24183249a2588f
parenta820b575787ac0b6b274b6a89aa6ef9813b4c782
usb/ehci: Clean up SysBus and PCI EHCI split

SysBus EHCI was introduced in a hurry before 1.3 Soft Freeze.
To use QOM casts in place of DO_UPCAST() / FROM_SYSBUS(), we need an
identifying type. Introduce generic abstract base types for PCI and
SysBus EHCI to allow multiple types to access the shared fields.

While at it, move the state structs being amended with macros to the
header file so that they can be embedded.

The VMSTATE_PCI_DEVICE() macro does not play nice with the QOM
parent_obj naming convention, so defer that cleanup.

Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-ehci-pci.c
hw/usb/hcd-ehci-sysbus.c
hw/usb/hcd-ehci.h