From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNmcr-0004BB-LA for qemu-devel@nongnu.org; Fri, 16 Jan 2009 06:12:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNmcp-00049d-4l for qemu-devel@nongnu.org; Fri, 16 Jan 2009 06:12:32 -0500 Received: from [199.232.76.173] (port=35446 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNmcp-00049R-07 for qemu-devel@nongnu.org; Fri, 16 Jan 2009 06:12:31 -0500 Received: from mail09.svc.cra.dublin.eircom.net ([159.134.118.25]:47456) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LNmco-00086O-OS for qemu-devel@nongnu.org; Fri, 16 Jan 2009 06:12:30 -0500 From: Mark McLoughlin Date: Fri, 16 Jan 2009 11:12:26 +0000 Message-Id: <1232104347-29931-2-git-send-email-markmc@redhat.com> In-Reply-To: <1232104347-29931-1-git-send-email-markmc@redhat.com> References: <1232104347-29931-1-git-send-email-markmc@redhat.com> Subject: [Qemu-devel] [PATCH 2/3] Add macro for virtio-console PCI device ID Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Mark McLoughlin , qemu-devel@nongnu.org Also use the existing macro for the PCI vendor ID Signed-off-by: Mark McLoughlin --- hw/pci.h | 1 + hw/virtio-console.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/pci.h b/hw/pci.h index 76f4474..e791141 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -16,6 +16,7 @@ extern target_phys_addr_t pci_mem_base; #define PCI_DEVICE_ID_VIRTIO_NET 0x1000 #define PCI_DEVICE_ID_VIRTIO_BLOCK 0x1001 #define PCI_DEVICE_ID_VIRTIO_BALLOON 0x1002 +#define PCI_DEVICE_ID_VIRTIO_CONSOLE 0x1003 typedef void PCIConfigWriteFunc(PCIDevice *pci_dev, uint32_t address, uint32_t data, int len); diff --git a/hw/virtio-console.c b/hw/virtio-console.c index deae76d..ce20c91 100644 --- a/hw/virtio-console.c +++ b/hw/virtio-console.c @@ -126,7 +126,8 @@ void *virtio_console_init(PCIBus *bus, CharDriverState *chr) VirtIOConsole *s; s = (VirtIOConsole *)virtio_init_pci(bus, "virtio-console", - 6900, 0x1003, + PCI_VENDOR_ID_REDHAT_QUMRANET, + PCI_DEVICE_ID_VIRTIO_CONSOLE, 0, VIRTIO_ID_CONSOLE, 0x03, 0x80, 0x00, 0, sizeof(VirtIOConsole)); -- 1.6.0.6