aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/ppc-pci.h
diff options
context:
space:
mode:
authorLinas Vepstas <linas@austin.ibm.com>2007-03-19 15:58:07 -0400
committerPaul Mackerras <paulus@samba.org>2007-03-22 07:52:54 -0400
commit9c547768e7d9f456f1b145102e75f79e30f7b709 (patch)
treec55a20e1d621bfefed02a225b7867aeb5fc8d700 /include/asm-powerpc/ppc-pci.h
parent90375f53960f2b1e8d2a6af3324d440e3a977bf3 (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/ppc-pci.h')
-rw-r--r--include/asm-powerpc/ppc-pci.h3
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);
70void eeh_slot_error_detail (struct pci_dn *pdn, int severity); 70void 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 */
93int rtas_set_slot_reset (struct pci_dn *); 93int rtas_set_slot_reset (struct pci_dn *);
94int 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.