From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGQ06-0004Cf-Dk for qemu-devel@nongnu.org; Tue, 05 Jan 2016 06:42:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGQ01-0003XU-MC for qemu-devel@nongnu.org; Tue, 05 Jan 2016 06:42:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGQ01-0003X8-FZ for qemu-devel@nongnu.org; Tue, 05 Jan 2016 06:42:01 -0500 From: Gerd Hoffmann Date: Tue, 5 Jan 2016 12:41:33 +0100 Message-Id: <1451994098-6972-7-git-send-email-kraxel@redhat.com> In-Reply-To: <1451994098-6972-1-git-send-email-kraxel@redhat.com> References: <1451994098-6972-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH v3 06/11] igd: use defines for standard pci config space offsets List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: igvt-g@ml01.01.org, xen-devel@lists.xensource.com, Eduardo Habkost , Stefano Stabellini , Cao jin , vfio-users@redhat.com, Gerd Hoffmann 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 */ -- 1.8.3.1