summaryrefslogtreecommitdiff
path: root/hw/usb/hcd-ehci-pci.c
diff options
context:
space:
mode:
authorKuo-Jung Su <dantesu@faraday-tech.com>2013-06-06 15:41:12 +0200
committerGerd Hoffmann <kraxel@redhat.com>2013-06-24 08:33:11 +0200
commitcc8d6a8481e64ec53d06245f249235bcaaa73b27 (patch)
treed76794ad670f239d88ccf2549069e817e3b95e0b /hw/usb/hcd-ehci-pci.c
parent20c570432e995313874eaeabc3d0251dab40e16f (diff)
downloadqemu-cc8d6a8481e64ec53d06245f249235bcaaa73b27.tar.gz
usb/hcd-ehci: Replace PORTSC macros with variables
Replace PORTSC macros with variables which could then be configured in ehci_xxxx_class_init(...) Signed-off-by: Kuo-Jung Su <dantesu@faraday-tech.com> Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/hcd-ehci-pci.c')
-rw-r--r--hw/usb/hcd-ehci-pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/usb/hcd-ehci-pci.c b/hw/usb/hcd-ehci-pci.c
index 509867d1e2..5d229bc792 100644
--- a/hw/usb/hcd-ehci-pci.c
+++ b/hw/usb/hcd-ehci-pci.c
@@ -78,6 +78,8 @@ static void usb_ehci_pci_init(Object *obj)
s->capsbase = 0x00;
s->opregbase = 0x20;
+ s->portscbase = 0x44;
+ s->portnr = NB_PORTS;
usb_ehci_init(s, DEVICE(obj));
}