From patchwork Mon Dec 14 11:39:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 556391 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 4A070140271 for ; Mon, 14 Dec 2015 22:41:01 +1100 (AEDT) Received: from localhost ([::1]:59126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8RUx-0004kp-8e for incoming@patchwork.ozlabs.org; Mon, 14 Dec 2015 06:40:59 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8RU1-0003R8-5l for qemu-devel@nongnu.org; Mon, 14 Dec 2015 06:40:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8RU0-0001FM-4a for qemu-devel@nongnu.org; Mon, 14 Dec 2015 06:40:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8RTz-0001F3-VL for qemu-devel@nongnu.org; Mon, 14 Dec 2015 06:40:00 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 9224FA12D0; Mon, 14 Dec 2015 11:39:59 +0000 (UTC) Received: from nilsson.home.kraxel.org (ovpn-116-33.ams2.redhat.com [10.36.116.33]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tBEBdwrB025194; Mon, 14 Dec 2015 06:39:59 -0500 Received: by nilsson.home.kraxel.org (Postfix, from userid 500) id 4CAFB80823; Mon, 14 Dec 2015 12:39:56 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Mon, 14 Dec 2015 12:39:38 +0100 Message-Id: <1450093182-3500-8-git-send-email-kraxel@redhat.com> In-Reply-To: <1450093182-3500-1-git-send-email-kraxel@redhat.com> References: <1450093182-3500-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: igvt-g@ml01.01.org, xen-devel@lists.xensource.com, Eduardo Habkost , Stefano Stabellini , Gerd Hoffmann , vfio-users@redhat.com Subject: [Qemu-devel] [PATCH v2 06/10] igd: use defines for standard pci config space offsets 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: Gerd Hoffmann --- hw/pci-host/igd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/pci-host/igd.c b/hw/pci-host/igd.c index 6f52ab1..0784128 100644 --- a/hw/pci-host/igd.c +++ b/hw/pci-host/igd.c @@ -10,9 +10,9 @@ typedef struct { /* Here we just expose minimal host bridge offset subset. */ static const IGDHostInfo igd_host_bridge_infos[] = { - {0x08, 2}, /* revision id */ - {0x2c, 2}, /* sybsystem vendor id */ - {0x2e, 2}, /* sybsystem id */ + {PCI_REVISION_ID, 2}, + {PCI_SUBSYSTEM_VENDOR_ID, 2}, + {PCI_SUBSYSTEM_ID, 2}, {0x50, 2}, /* SNB: processor graphics control register */ {0x52, 2}, /* processor graphics control register */ {0xa4, 4}, /* SNB: graphics base of stolen memory */