From patchwork Fri Apr 24 02:45:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, Ying" X-Patchwork-Id: 19722 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3O2jMoZ011682 for ; Fri, 24 Apr 2009 02:45:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756270AbZDXCp1 (ORCPT ); Thu, 23 Apr 2009 22:45:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755973AbZDXCp1 (ORCPT ); Thu, 23 Apr 2009 22:45:27 -0400 Received: from mga09.intel.com ([134.134.136.24]:65373 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756849AbZDXCpZ (ORCPT ); Thu, 23 Apr 2009 22:45:25 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 23 Apr 2009 19:35:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.40,238,1239001200"; d="asc'?scan'208";a="406373375" Received: from yhuang-dev.sh.intel.com (HELO [10.239.13.12]) ([10.239.13.12]) by orsmga002.jf.intel.com with ESMTP; 23 Apr 2009 19:53:23 -0700 Subject: [PATCH 2/4] PCI: PCIE AER: export aer_irq From: Huang Ying To: Jesse Barnes Cc: Andi Kleen , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Date: Fri, 24 Apr 2009 10:45:23 +0800 Message-Id: <1240541123.6842.680.camel@yhuang-dev.sh.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org This is used by PCIE AER error injection to fake an PCI AER interrupt. Signed-off-by: Huang Ying --- drivers/pci/pcie/aer/aerdrv.c | 3 ++- drivers/pci/pcie/aer/aerdrv.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) --- a/drivers/pci/pcie/aer/aerdrv.h +++ b/drivers/pci/pcie/aer/aerdrv.h @@ -11,6 +11,7 @@ #include #include #include +#include #define AER_NONFATAL 0 #define AER_FATAL 1 @@ -117,6 +118,7 @@ extern void aer_delete_rootport(struct a extern int aer_init(struct pcie_device *dev); extern void aer_isr(struct work_struct *work); extern void aer_print_error(struct pci_dev *dev, struct aer_err_info *info); +extern irqreturn_t aer_irq(int irq, void *context); #ifdef CONFIG_ACPI extern int aer_osc_setup(struct pcie_device *pciedev); --- a/drivers/pci/pcie/aer/aerdrv.c +++ b/drivers/pci/pcie/aer/aerdrv.c @@ -77,7 +77,7 @@ void pci_no_aer(void) * * Invoked when Root Port detects AER messages. **/ -static irqreturn_t aer_irq(int irq, void *context) +irqreturn_t aer_irq(int irq, void *context) { unsigned int status, id; struct pcie_device *pdev = (struct pcie_device *)context; @@ -126,6 +126,7 @@ static irqreturn_t aer_irq(int irq, void return IRQ_HANDLED; } +EXPORT_SYMBOL_GPL(aer_irq); /** * aer_alloc_rpc - allocate Root Port data structure