diff options
author | Huang Ying <ying.huang@intel.com> | 2009-04-23 22:45:23 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-06-16 17:29:33 -0400 |
commit | 634deb028c9188b4144863ea87dde5457fb93e92 (patch) | |
tree | e73c2e0cc03d7cfdee4cc39b1a375b8024a96183 /drivers/pci/pcie | |
parent | a72b46c3849cdb05993015991bde548ab8b6d7ac (diff) |
PCI: PCIE AER: export aer_irq
This is used by PCIE AER error injection to fake an PCI AER interrupt.
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pcie')
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv.c | 3 | ||||
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv.c b/drivers/pci/pcie/aer/aerdrv.c index 32ade5af927e..4770f13b3ca1 100644 --- a/drivers/pci/pcie/aer/aerdrv.c +++ b/drivers/pci/pcie/aer/aerdrv.c | |||
@@ -77,7 +77,7 @@ void pci_no_aer(void) | |||
77 | * | 77 | * |
78 | * Invoked when Root Port detects AER messages. | 78 | * Invoked when Root Port detects AER messages. |
79 | **/ | 79 | **/ |
80 | static irqreturn_t aer_irq(int irq, void *context) | 80 | irqreturn_t aer_irq(int irq, void *context) |
81 | { | 81 | { |
82 | unsigned int status, id; | 82 | unsigned int status, id; |
83 | struct pcie_device *pdev = (struct pcie_device *)context; | 83 | struct pcie_device *pdev = (struct pcie_device *)context; |
@@ -126,6 +126,7 @@ static irqreturn_t aer_irq(int irq, void *context) | |||
126 | 126 | ||
127 | return IRQ_HANDLED; | 127 | return IRQ_HANDLED; |
128 | } | 128 | } |
129 | EXPORT_SYMBOL_GPL(aer_irq); | ||
129 | 130 | ||
130 | /** | 131 | /** |
131 | * aer_alloc_rpc - allocate Root Port data structure | 132 | * aer_alloc_rpc - allocate Root Port data structure |
diff --git a/drivers/pci/pcie/aer/aerdrv.h b/drivers/pci/pcie/aer/aerdrv.h index aa14482a4779..3a69ddefe361 100644 --- a/drivers/pci/pcie/aer/aerdrv.h +++ b/drivers/pci/pcie/aer/aerdrv.h | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/workqueue.h> | 11 | #include <linux/workqueue.h> |
12 | #include <linux/pcieport_if.h> | 12 | #include <linux/pcieport_if.h> |
13 | #include <linux/aer.h> | 13 | #include <linux/aer.h> |
14 | #include <linux/interrupt.h> | ||
14 | 15 | ||
15 | #define AER_NONFATAL 0 | 16 | #define AER_NONFATAL 0 |
16 | #define AER_FATAL 1 | 17 | #define AER_FATAL 1 |
@@ -120,6 +121,7 @@ extern void aer_delete_rootport(struct aer_rpc *rpc); | |||
120 | extern int aer_init(struct pcie_device *dev); | 121 | extern int aer_init(struct pcie_device *dev); |
121 | extern void aer_isr(struct work_struct *work); | 122 | extern void aer_isr(struct work_struct *work); |
122 | extern void aer_print_error(struct pci_dev *dev, struct aer_err_info *info); | 123 | extern void aer_print_error(struct pci_dev *dev, struct aer_err_info *info); |
124 | extern irqreturn_t aer_irq(int irq, void *context); | ||
123 | 125 | ||
124 | #ifdef CONFIG_ACPI | 126 | #ifdef CONFIG_ACPI |
125 | extern int aer_osc_setup(struct pcie_device *pciedev); | 127 | extern int aer_osc_setup(struct pcie_device *pciedev); |