From patchwork Fri Jul 8 09:51:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 103801 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 84C7AB6EE8 for ; Fri, 8 Jul 2011 20:14:51 +1000 (EST) Received: from localhost ([::1]:55218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qf85A-0002H0-69 for incoming@patchwork.ozlabs.org; Fri, 08 Jul 2011 06:14:48 -0400 Received: from eggs.gnu.org ([140.186.70.92]:59707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qf7ik-0005cj-Rn for qemu-devel@nongnu.org; Fri, 08 Jul 2011 05:51:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qf7ij-0004ie-8e for qemu-devel@nongnu.org; Fri, 08 Jul 2011 05:51:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qf7ii-0004fz-If for qemu-devel@nongnu.org; Fri, 08 Jul 2011 05:51:36 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p689pZcG023481 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 8 Jul 2011 05:51:35 -0400 Received: from rincewind.home.kraxel.org (vpn1-4-123.ams2.redhat.com [10.36.4.123]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p689pYim006707; Fri, 8 Jul 2011 05:51:35 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id B5C5241A82; Fri, 8 Jul 2011 11:51:14 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Fri, 8 Jul 2011 11:51:07 +0200 Message-Id: <1310118673-26196-18-git-send-email-kraxel@redhat.com> In-Reply-To: <1310118673-26196-1-git-send-email-kraxel@redhat.com> References: <1310118673-26196-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 17/23] ehci: fix port count. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The ICH4 EHCI controller which we emulate has six ports not four. Signed-off-by: Gerd Hoffmann --- hw/usb-ehci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index ec68c29..0b959ca 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