summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-07-01 09:56:43 +0200
committerGerd Hoffmann <kraxel@redhat.com>2011-07-05 15:09:02 +0200
commit5cc194caeb019cf1dae7f74ccbdf0401a56c2ac6 (patch)
treed3a4f862bb50f54c3b6d99a38fb226340da25b2b
parent1b5a757067a5ecd3504a067937b6494811a62f46 (diff)
downloadfocaccia-qemu-5cc194caeb019cf1dae7f74ccbdf0401a56c2ac6.tar.gz
focaccia-qemu-5cc194caeb019cf1dae7f74ccbdf0401a56c2ac6.zip
ehci: fix port count.
The ICH4 EHCI controller which we emulate has six ports not four.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--hw/usb-ehci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c
index ec68c299fe..0b959caff3 100644
--- a/hw/usb-ehci.c
+++ b/hw/usb-ehci.c
@@ -130,7 +130,7 @@
 #define FRAME_TIMER_NS   (1000000000 / FRAME_TIMER_FREQ)
 
 #define NB_MAXINTRATE    8        // Max rate at which controller issues ints
-#define NB_PORTS         4        // Number of downstream ports
+#define NB_PORTS         6        // Number of downstream ports
 #define BUFF_SIZE        5*4096   // Max bytes to transfer per transaction
 #define MAX_ITERATIONS   20       // Max number of QH before we break the loop
 #define MAX_QH           100      // Max allowable queue heads in a chain