From patchwork Thu Jun 2 01:18:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Hards X-Patchwork-Id: 98329 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 26D9EB6F88 for ; Thu, 2 Jun 2011 13:00:40 +1000 (EST) Received: from localhost ([::1]:52502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRy9E-00005q-VJ for incoming@patchwork.ozlabs.org; Wed, 01 Jun 2011 23:00:37 -0400 Received: from eggs.gnu.org ([140.186.70.92]:47093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRwZ2-0000hc-Lr for qemu-devel@nongnu.org; Wed, 01 Jun 2011 21:19:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRwYz-0000e9-QM for qemu-devel@nongnu.org; Wed, 01 Jun 2011 21:19:08 -0400 Received: from smtpout3.three.com.au ([202.124.68.59]:4665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRwYy-0000ak-Ge for qemu-devel@nongnu.org; Wed, 01 Jun 2011 21:19:04 -0400 Received: from auumvs2fe06.three.com.au (auhgvpsmtp.three.com.au [10.176.77.86]) by smtpout3.three.com.au (Postfix) with ESMTP id D3990777D9; Thu, 2 Jun 2011 11:18:55 +1000 (EST) Received: from localhost.localdomain ([10.224.20.109]) by auumvs2fe06.three.com.au with ESMTP id p521J7N6029844-p521J7N8029844; Thu, 2 Jun 2011 11:19:08 +1000 From: Brad Hards To: kraxel@redhat.com, qemu-devel@nongnu.org Date: Thu, 2 Jun 2011 11:18:46 +1000 Message-Id: <1306977528-20429-2-git-send-email-bradh@frogmouth.net> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1306977528-20429-1-git-send-email-bradh@frogmouth.net> References: <1306977528-20429-1-git-send-email-bradh@frogmouth.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 202.124.68.59 Cc: Brad Hards Subject: [Qemu-devel] [PATCH 1/3] usb: Add defines for USB Serial Bus Release Number register 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 Signed-off-by: Brad Hards --- hw/usb.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/usb.h b/hw/usb.h index 9882400..2c051b3 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -26,6 +26,12 @@ #include "qdev.h" #include "qemu-queue.h" +/* Constants related to the USB / PCI interaction */ +#define USB_SBRN 0x60 /* Serial Bus Release Number Register */ +#define USB_RELEASE_1 0x10 /* USB 1.0 */ +#define USB_RELEASE_2 0x20 /* USB 2.0 */ +#define USB_RELEASE_3 0x30 /* USB 3.0 */ + #define USB_TOKEN_SETUP 0x2d #define USB_TOKEN_IN 0x69 /* device -> host */ #define USB_TOKEN_OUT 0xe1 /* host -> device */