diff options
author | Linas Vepstas <linas@austin.ibm.com> | 2007-03-19 15:58:07 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-22 07:52:54 -0400 |
commit | 9c547768e7d9f456f1b145102e75f79e30f7b709 (patch) | |
tree | c55a20e1d621bfefed02a225b7867aeb5fc8d700 /include/asm-powerpc | |
parent | 90375f53960f2b1e8d2a6af3324d440e3a977bf3 (diff) |
[POWERPC] EEH: wait for slot status
Modify routine that returns PCI slot status to wait for slot status
to become available. This is needed, as slots that are in some remote
card cage may go offline for extended periods of time. New users for
this routine in following patches.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/ppc-pci.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-powerpc/ppc-pci.h b/include/asm-powerpc/ppc-pci.h index f186720d0739..d74b2965bb82 100644 --- a/include/asm-powerpc/ppc-pci.h +++ b/include/asm-powerpc/ppc-pci.h | |||
@@ -70,7 +70,7 @@ struct pci_dev *pci_get_device_by_addr(unsigned long addr); | |||
70 | void eeh_slot_error_detail (struct pci_dn *pdn, int severity); | 70 | void eeh_slot_error_detail (struct pci_dn *pdn, int severity); |
71 | 71 | ||
72 | /** | 72 | /** |
73 | * rtas_pci_enableo - enable IO transfers for this slot | 73 | * rtas_pci_enable - enable IO transfers for this slot |
74 | * @pdn: pci device node | 74 | * @pdn: pci device node |
75 | * @function: either EEH_THAW_MMIO or EEH_THAW_DMA | 75 | * @function: either EEH_THAW_MMIO or EEH_THAW_DMA |
76 | * | 76 | * |
@@ -91,6 +91,7 @@ int rtas_pci_enable(struct pci_dn *pdn, int function); | |||
91 | * Returns a non-zero value if the reset failed. | 91 | * Returns a non-zero value if the reset failed. |
92 | */ | 92 | */ |
93 | int rtas_set_slot_reset (struct pci_dn *); | 93 | int rtas_set_slot_reset (struct pci_dn *); |
94 | int eeh_wait_for_slot_status(struct pci_dn *pdn, int max_wait_msecs); | ||
94 | 95 | ||
95 | /** | 96 | /** |
96 | * eeh_restore_bars - Restore device configuration info. | 97 | * eeh_restore_bars - Restore device configuration info. |