From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRV3u-0005Eg-IR for qemu-devel@nongnu.org; Mon, 26 Jan 2009 12:15:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRV3t-0005DK-1U for qemu-devel@nongnu.org; Mon, 26 Jan 2009 12:15:50 -0500 Received: from [199.232.76.173] (port=38367 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRV3s-0005CO-N7 for qemu-devel@nongnu.org; Mon, 26 Jan 2009 12:15:48 -0500 Received: from mx20.gnu.org ([199.232.41.8]:51947) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRV3o-0004eE-BA for qemu-devel@nongnu.org; Mon, 26 Jan 2009 12:15:44 -0500 Received: from qw-out-1920.google.com ([74.125.92.150]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LRTJF-0005Mx-Pf for qemu-devel@nongnu.org; Mon, 26 Jan 2009 10:23:33 -0500 Received: by qw-out-1920.google.com with SMTP id 5so1143418qwc.4 for ; Mon, 26 Jan 2009 07:23:22 -0800 (PST) Message-ID: <497DD558.10004@codemonkey.ws> Date: Mon, 26 Jan 2009 09:23:04 -0600 From: Anthony Liguori MIME-Version: 1.0 References: <1232977349.3724.83.camel@blaa> In-Reply-To: <1232977349.3724.83.camel@blaa> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 1/3][RESEND] Use macros for virtio-net PCI vendor/device IDs Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mark McLoughlin Cc: qemu-devel@nongnu.org Mark McLoughlin wrote: > Gerd added these macros a while back. > Applied all. Thanks. Regards, Anthony Liguori > Signed-off-by: Mark McLoughlin > --- > hw/virtio-net.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/hw/virtio-net.c b/hw/virtio-net.c > index 54c0030..b13914a 100644 > --- a/hw/virtio-net.c > +++ b/hw/virtio-net.c > @@ -320,7 +320,9 @@ void virtio_net_init(PCIBus *bus, NICInfo *nd, int devfn) > VirtIONet *n; > static int virtio_net_id; > > - n = (VirtIONet *)virtio_init_pci(bus, "virtio-net", 6900, 0x1000, > + n = (VirtIONet *)virtio_init_pci(bus, "virtio-net", > + PCI_VENDOR_ID_REDHAT_QUMRANET, > + PCI_DEVICE_ID_VIRTIO_NET, > 0, VIRTIO_ID_NET, > 0x02, 0x00, 0x00, > sizeof(struct virtio_net_config), >