From patchwork Tue Dec 6 03:42:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Evans X-Patchwork-Id: 129517 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 2948C1007D5 for ; Tue, 6 Dec 2011 14:41:18 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932950Ab1LFDlR (ORCPT ); Mon, 5 Dec 2011 22:41:17 -0500 Received: from ozlabs.org ([203.10.76.45]:55313 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932871Ab1LFDlQ (ORCPT ); Mon, 5 Dec 2011 22:41:16 -0500 Received: from [10.61.2.183] (ibmaus65.lnk.telstra.net [165.228.126.9]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPSA id 3464D1007D7; Tue, 6 Dec 2011 14:41:15 +1100 (EST) Message-ID: <4EDD8F0C.8000505@ozlabs.org> Date: Tue, 06 Dec 2011 14:42:04 +1100 From: Matt Evans User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110921 Thunderbird/3.1.15 MIME-Version: 1.0 To: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org Subject: [PATCH 22/28] kvm tools: Move PCI_MAX_DEVICES to pci.h References: In-Reply-To: Sender: kvm-ppc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm-ppc@vger.kernel.org Other pieces of kvmtool may be interested in PCI_MAX_DEVICES. Signed-off-by: Matt Evans --- tools/kvm/include/kvm/pci.h | 1 + tools/kvm/pci.c | 1 - 2 files changed, 1 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/tools/kvm/include/kvm/pci.h b/tools/kvm/include/kvm/pci.h index f71af0b..b578ad7 100644 --- a/tools/kvm/include/kvm/pci.h +++ b/tools/kvm/include/kvm/pci.h @@ -6,6 +6,7 @@ #include #include +#define PCI_MAX_DEVICES 256 /* * PCI Configuration Mechanism #1 I/O ports. See Section 3.7.4.1. * ("Configuration Mechanism #1") of the PCI Local Bus Specification 2.1 for diff --git a/tools/kvm/pci.c b/tools/kvm/pci.c index d1afc05..920e13e 100644 --- a/tools/kvm/pci.c +++ b/tools/kvm/pci.c @@ -5,7 +5,6 @@ #include -#define PCI_MAX_DEVICES 256 #define PCI_BAR_OFFSET(b) (offsetof(struct pci_device_header, bar[b])) static struct pci_device_header *pci_devices[PCI_MAX_DEVICES];