From patchwork Thu Jul 26 19:55:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1244461 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 9FE113FDCA for ; Thu, 26 Jul 2012 19:55:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752619Ab2GZTzb (ORCPT ); Thu, 26 Jul 2012 15:55:31 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:61937 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752543Ab2GZTz2 (ORCPT ); Thu, 26 Jul 2012 15:55:28 -0400 Received: from mailbox.adnet.avionic-design.de (mailbox.avionic-design.de [109.75.18.3]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0LdPHS-1TcrVk0tBS-00ikb9; Thu, 26 Jul 2012 21:55:18 +0200 Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id 93F372A282EA; Thu, 26 Jul 2012 21:55:17 +0200 (CEST) X-Virus-Scanned: amavisd-new at avionic-design.de Received: from mailbox.adnet.avionic-design.de ([127.0.0.1]) by localhost (mailbox.avionic-design.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SiuHuy8GiWDt; Thu, 26 Jul 2012 21:55:16 +0200 (CEST) Received: from localhost (avionic-0098.adnet.avionic-design.de [172.20.31.233]) (Authenticated sender: thierry.reding) by mailbox.adnet.avionic-design.de (Postfix) with ESMTPA id 80E552A282E7; Thu, 26 Jul 2012 21:55:16 +0200 (CEST) From: Thierry Reding To: linux-tegra@vger.kernel.org Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, Grant Likely , Rob Herring , devicetree-discuss@lists.ozlabs.org, Russell King , linux-arm-kernel@lists.infradead.org, Colin Cross , Olof Johansson , Stephen Warren , Mitch Bradley , Arnd Bergmann Subject: [PATCH v3 05/10] resource: add PCI configuration space support Date: Thu, 26 Jul 2012 21:55:07 +0200 Message-Id: <1343332512-28762-6-git-send-email-thierry.reding@avionic-design.de> X-Mailer: git-send-email 1.7.11.2 In-Reply-To: <1343332512-28762-1-git-send-email-thierry.reding@avionic-design.de> References: <1343332512-28762-1-git-send-email-thierry.reding@avionic-design.de> X-Provags-ID: V02:K0:et64FXxMTqAMjTdy6JGwFiDZMN+5ZD9ZqB+NixyLH5B 46UJXoN2R2AWPX1kHMu/sOHBhcJPF6dZpgFUxrEEOhdTb7CdNX j6yDc3OA6+nWCLXM1mO2HE513OwkW8mJL1XD9HDbEPPFqJfAui ZUyEbbqlUBPLtKfwLMuMqu3pCwFxo/w2rzoM4vUlqAXD/lAebE BEUgMPCAdjFPCITiuMwt7cLZKqF+zZravR1I2AIagxTBOHNUGG OBL6l6uUJcKvpGREggh83O13TvQ5iMkh/hR3FseRIGXyc/ydEU 1EJ+ik8gsDCJSMVukmoZUdD/ap/NcRUUYodLIQLxbBMkyP86J/ 187Y+b9hhjCZ/ZXdbIQ8EXdVuIab33jUzLiYCfUoCfZ7ce/Ia+ BYje/p1/4dfhHvMr1DdKUraoNrCAsbipcvrBwQA7uEOfQTXCHr uwgnP Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org This commit adds a new flag that allows marking resources as PCI configuration space. Signed-off-by: Thierry Reding --- Changes in v3: - new patch include/linux/ioport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/ioport.h b/include/linux/ioport.h index 589e0e7..3314843 100644 --- a/include/linux/ioport.h +++ b/include/linux/ioport.h @@ -102,7 +102,7 @@ struct resource { /* PCI control bits. Shares IORESOURCE_BITS with above PCI ROM. */ #define IORESOURCE_PCI_FIXED (1<<4) /* Do not move resource */ - +#define IORESOURCE_PCI_CS (1<<5) /* PCI configuration space */ /* helpers to define resources */ #define DEFINE_RES_NAMED(_start, _size, _name, _flags) \