diff options
author | Gavin Shan <shangw@linux.vnet.ibm.com> | 2013-06-20 01:20:54 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-06-20 03:05:41 -0400 |
commit | 01566808547b7ecc5017a741d50dead9e53f86fa (patch) | |
tree | a55bfd1377825bbdef1d63834bf275300384f9b6 /arch/powerpc/include/asm/eeh.h | |
parent | 9ff67433cef319a02cb64dbe3f710a8566ebfcee (diff) |
powerpc/eeh: Make eeh_pe_get() public
While processing EEH event interrupt from P7IOC, we need function
to retrieve the PE according to the indicated EEH device. The patch
makes function eeh_pe_get() public so that other source files can call
it for that purpose. Also, the patch fixes referring to wrong BDF
(Bus/Device/Function) address while searching PE in function
__eeh_pe_get().
Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/eeh.h')
-rw-r--r-- | arch/powerpc/include/asm/eeh.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/eeh.h b/arch/powerpc/include/asm/eeh.h index 4ac6f70025b4..acdfcaaf5c36 100644 --- a/arch/powerpc/include/asm/eeh.h +++ b/arch/powerpc/include/asm/eeh.h | |||
@@ -185,6 +185,7 @@ static inline void eeh_unlock(void) | |||
185 | typedef void *(*eeh_traverse_func)(void *data, void *flag); | 185 | typedef void *(*eeh_traverse_func)(void *data, void *flag); |
186 | int eeh_phb_pe_create(struct pci_controller *phb); | 186 | int eeh_phb_pe_create(struct pci_controller *phb); |
187 | struct eeh_pe *eeh_phb_pe_get(struct pci_controller *phb); | 187 | struct eeh_pe *eeh_phb_pe_get(struct pci_controller *phb); |
188 | struct eeh_pe *eeh_pe_get(struct eeh_dev *edev); | ||
188 | int eeh_add_to_parent_pe(struct eeh_dev *edev); | 189 | int eeh_add_to_parent_pe(struct eeh_dev *edev); |
189 | int eeh_rmv_from_parent_pe(struct eeh_dev *edev, int purge_pe); | 190 | int eeh_rmv_from_parent_pe(struct eeh_dev *edev, int purge_pe); |
190 | void *eeh_pe_dev_traverse(struct eeh_pe *root, | 191 | void *eeh_pe_dev_traverse(struct eeh_pe *root, |