From patchwork Tue Jun 3 08:42:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 355249 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4ABDB1400A4 for ; Tue, 3 Jun 2014 18:51:54 +1000 (EST) Received: from localhost ([::1]:51065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrkRk-0001Qw-7P for incoming@patchwork.ozlabs.org; Tue, 03 Jun 2014 04:51:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrkR3-0008Vg-0l for qemu-devel@nongnu.org; Tue, 03 Jun 2014 04:51:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrkQt-0003bE-01 for qemu-devel@nongnu.org; Tue, 03 Jun 2014 04:51:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrkQs-0003az-Nh for qemu-devel@nongnu.org; Tue, 03 Jun 2014 04:50:58 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s538owHL015781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 3 Jun 2014 04:50:58 -0400 Received: from nilsson.home.kraxel.org (ovpn-116-102.ams2.redhat.com [10.36.116.102]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s538ouD8027688; Tue, 3 Jun 2014 04:50:57 -0400 Received: by nilsson.home.kraxel.org (Postfix, from userid 500) id 50EBA81D66; Tue, 3 Jun 2014 10:43:06 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Tue, 3 Jun 2014 10:42:52 +0200 Message-Id: <1401784975-5104-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1401784975-5104-1-git-send-email-kraxel@redhat.com> References: <1401784975-5104-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann , "Michael S. Tsirkin" Subject: [Qemu-devel] [PATCH 1/4] pci: add virtio input pci device id 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 Using 0x1012 because virtio id is 18 (0x12). Signed-off-by: Gerd Hoffmann --- docs/specs/pci-ids.txt | 1 + include/hw/pci/pci.h | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/specs/pci-ids.txt b/docs/specs/pci-ids.txt index 3c65e1a..3b0a448 100644 --- a/docs/specs/pci-ids.txt +++ b/docs/specs/pci-ids.txt @@ -22,6 +22,7 @@ maintained as part of the virtio specification. 1af4:1004 SCSI host bus adapter device 1af4:1005 entropy generator device 1af4:1009 9p filesystem device +1af4:1012 input device 1af4:10f0 Available for experimental usage without registration. Must get to official ID when the code leaves the test lab (i.e. when seeking diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h index 8c25ae5..ef75f94 100644 --- a/include/hw/pci/pci.h +++ b/include/hw/pci/pci.h @@ -81,6 +81,7 @@ #define PCI_DEVICE_ID_VIRTIO_SCSI 0x1004 #define PCI_DEVICE_ID_VIRTIO_RNG 0x1005 #define PCI_DEVICE_ID_VIRTIO_9P 0x1009 +#define PCI_DEVICE_ID_VIRTIO_INPUT 0x1012 #define PCI_VENDOR_ID_REDHAT 0x1b36 #define PCI_DEVICE_ID_REDHAT_BRIDGE 0x0001