diff options
author | Linas Vepstas <linas@linas.org> | 2005-11-03 19:51:31 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-08 22:51:05 -0500 |
commit | e2a296eeaa344450196e910a136ab14119d7ae48 (patch) | |
tree | 53a9fd6374d1559dec29d909fae1902a305472ad /include/asm-powerpc/eeh.h | |
parent | 74761bb53df1e2d603937b6abbd8437b03840e38 (diff) |
[PATCH] powerpc: PCI hotplug common code elimination
20-rpaphp-eeh-cleanup.patch
This patch move some code from the rpaphp directory, to the powerpc
directory, where it should have been all along (Among other things, I
need it in the powerpc directory for the PCI error recovery.)
Please note that patch affects TWO maintainers: Paul, after applying
the powerpc part, please ask that GregKH appli the PCI part. It is safe
to have the powerpc part go in first. It would be bad to have the
PCI part go in first.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/eeh.h')
-rw-r--r-- | include/asm-powerpc/eeh.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-powerpc/eeh.h b/include/asm-powerpc/eeh.h index f8633aafe4ba..e4ca35ad3338 100644 --- a/include/asm-powerpc/eeh.h +++ b/include/asm-powerpc/eeh.h | |||
@@ -57,6 +57,7 @@ void __init pci_addr_cache_build(void); | |||
57 | * to finish the eeh setup for this device. | 57 | * to finish the eeh setup for this device. |
58 | */ | 58 | */ |
59 | void eeh_add_device_early(struct device_node *); | 59 | void eeh_add_device_early(struct device_node *); |
60 | void eeh_add_device_tree_early(struct device_node *); | ||
60 | void eeh_add_device_late(struct pci_dev *); | 61 | void eeh_add_device_late(struct pci_dev *); |
61 | 62 | ||
62 | /** | 63 | /** |
@@ -72,6 +73,15 @@ void eeh_add_device_late(struct pci_dev *); | |||
72 | void eeh_remove_device(struct pci_dev *); | 73 | void eeh_remove_device(struct pci_dev *); |
73 | 74 | ||
74 | /** | 75 | /** |
76 | * eeh_remove_device_recursive - undo EEH for device & children. | ||
77 | * @dev: pci device to be removed | ||
78 | * | ||
79 | * As above, this removes the device; it also removes child | ||
80 | * pci devices as well. | ||
81 | */ | ||
82 | void eeh_remove_bus_device(struct pci_dev *); | ||
83 | |||
84 | /** | ||
75 | * EEH_POSSIBLE_ERROR() -- test for possible MMIO failure. | 85 | * EEH_POSSIBLE_ERROR() -- test for possible MMIO failure. |
76 | * | 86 | * |
77 | * If this macro yields TRUE, the caller relays to eeh_check_failure() | 87 | * If this macro yields TRUE, the caller relays to eeh_check_failure() |