diff options
Diffstat (limited to 'include/asm-powerpc/ppc-pci.h')
-rw-r--r-- | include/asm-powerpc/ppc-pci.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/include/asm-powerpc/ppc-pci.h b/include/asm-powerpc/ppc-pci.h index bdef312900a1..f80482c7231f 100644 --- a/include/asm-powerpc/ppc-pci.h +++ b/include/asm-powerpc/ppc-pci.h | |||
@@ -52,6 +52,21 @@ extern unsigned long pci_probe_only; | |||
52 | 52 | ||
53 | /* ---- EEH internal-use-only related routines ---- */ | 53 | /* ---- EEH internal-use-only related routines ---- */ |
54 | #ifdef CONFIG_EEH | 54 | #ifdef CONFIG_EEH |
55 | |||
56 | void pci_addr_cache_insert_device(struct pci_dev *dev); | ||
57 | void pci_addr_cache_remove_device(struct pci_dev *dev); | ||
58 | void pci_addr_cache_build(void); | ||
59 | struct pci_dev *pci_get_device_by_addr(unsigned long addr); | ||
60 | |||
61 | /** | ||
62 | * eeh_slot_error_detail -- record and EEH error condition to the log | ||
63 | * @severity: 1 if temporary, 2 if permanent failure. | ||
64 | * | ||
65 | * Obtains the the EEH error details from the RTAS subsystem, | ||
66 | * and then logs these details with the RTAS error log system. | ||
67 | */ | ||
68 | void eeh_slot_error_detail (struct pci_dn *pdn, int severity); | ||
69 | |||
55 | /** | 70 | /** |
56 | * rtas_set_slot_reset -- unfreeze a frozen slot | 71 | * rtas_set_slot_reset -- unfreeze a frozen slot |
57 | * | 72 | * |
@@ -59,8 +74,10 @@ extern unsigned long pci_probe_only; | |||
59 | * does this by asserting the PCI #RST line for 1/8th of | 74 | * does this by asserting the PCI #RST line for 1/8th of |
60 | * a second; this routine will sleep while the adapter is | 75 | * a second; this routine will sleep while the adapter is |
61 | * being reset. | 76 | * being reset. |
77 | * | ||
78 | * Returns a non-zero value if the reset failed. | ||
62 | */ | 79 | */ |
63 | void rtas_set_slot_reset (struct pci_dn *); | 80 | int rtas_set_slot_reset (struct pci_dn *); |
64 | 81 | ||
65 | /** | 82 | /** |
66 | * eeh_restore_bars - Restore device configuration info. | 83 | * eeh_restore_bars - Restore device configuration info. |
@@ -84,6 +101,7 @@ void eeh_restore_bars(struct pci_dn *); | |||
84 | void rtas_configure_bridge(struct pci_dn *); | 101 | void rtas_configure_bridge(struct pci_dn *); |
85 | 102 | ||
86 | int rtas_write_config(struct pci_dn *, int where, int size, u32 val); | 103 | int rtas_write_config(struct pci_dn *, int where, int size, u32 val); |
104 | int rtas_read_config(struct pci_dn *, int where, int size, u32 *val); | ||
87 | 105 | ||
88 | /** | 106 | /** |
89 | * mark and clear slots: find "partition endpoint" PE and set or | 107 | * mark and clear slots: find "partition endpoint" PE and set or |
@@ -92,6 +110,9 @@ int rtas_write_config(struct pci_dn *, int where, int size, u32 val); | |||
92 | void eeh_mark_slot (struct device_node *dn, int mode_flag); | 110 | void eeh_mark_slot (struct device_node *dn, int mode_flag); |
93 | void eeh_clear_slot (struct device_node *dn, int mode_flag); | 111 | void eeh_clear_slot (struct device_node *dn, int mode_flag); |
94 | 112 | ||
113 | /* Find the associated "Partiationable Endpoint" PE */ | ||
114 | struct device_node * find_device_pe(struct device_node *dn); | ||
115 | |||
95 | #endif | 116 | #endif |
96 | 117 | ||
97 | #endif /* __KERNEL__ */ | 118 | #endif /* __KERNEL__ */ |