From cc8d6a8481e64ec53d06245f249235bcaaa73b27 Mon Sep 17 00:00:00 2001 From: Kuo-Jung Su Date: Thu, 6 Jun 2013 15:41:12 +0200 Subject: usb/hcd-ehci: Replace PORTSC macros with variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace PORTSC macros with variables which could then be configured in ehci_xxxx_class_init(...) Signed-off-by: Kuo-Jung Su Signed-off-by: Andreas Färber Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-ehci-pci.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw/usb/hcd-ehci-pci.c') 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)); } -- cgit v1.2.1