diff options
Diffstat (limited to 'include/asm-powerpc/ppc-pci.h')
| -rw-r--r-- | include/asm-powerpc/ppc-pci.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/include/asm-powerpc/ppc-pci.h b/include/asm-powerpc/ppc-pci.h index 36cdc869e580..f80482c7231f 100644 --- a/include/asm-powerpc/ppc-pci.h +++ b/include/asm-powerpc/ppc-pci.h | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | */ | 8 | */ |
| 9 | #ifndef _ASM_POWERPC_PPC_PCI_H | 9 | #ifndef _ASM_POWERPC_PPC_PCI_H |
| 10 | #define _ASM_POWERPC_PPC_PCI_H | 10 | #define _ASM_POWERPC_PPC_PCI_H |
| 11 | #ifdef __KERNEL__ | ||
| 11 | 12 | ||
| 12 | #include <linux/pci.h> | 13 | #include <linux/pci.h> |
| 13 | #include <asm/pci-bridge.h> | 14 | #include <asm/pci-bridge.h> |
| @@ -51,6 +52,21 @@ extern unsigned long pci_probe_only; | |||
| 51 | 52 | ||
| 52 | /* ---- EEH internal-use-only related routines ---- */ | 53 | /* ---- EEH internal-use-only related routines ---- */ |
| 53 | #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 | |||
| 54 | /** | 70 | /** |
| 55 | * rtas_set_slot_reset -- unfreeze a frozen slot | 71 | * rtas_set_slot_reset -- unfreeze a frozen slot |
| 56 | * | 72 | * |
| @@ -58,8 +74,10 @@ extern unsigned long pci_probe_only; | |||
| 58 | * 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 |
| 59 | * a second; this routine will sleep while the adapter is | 75 | * a second; this routine will sleep while the adapter is |
| 60 | * being reset. | 76 | * being reset. |
| 77 | * | ||
| 78 | * Returns a non-zero value if the reset failed. | ||
| 61 | */ | 79 | */ |
| 62 | void rtas_set_slot_reset (struct pci_dn *); | 80 | int rtas_set_slot_reset (struct pci_dn *); |
| 63 | 81 | ||
| 64 | /** | 82 | /** |
| 65 | * eeh_restore_bars - Restore device configuration info. | 83 | * eeh_restore_bars - Restore device configuration info. |
| @@ -83,6 +101,7 @@ void eeh_restore_bars(struct pci_dn *); | |||
| 83 | void rtas_configure_bridge(struct pci_dn *); | 101 | void rtas_configure_bridge(struct pci_dn *); |
| 84 | 102 | ||
| 85 | 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); | ||
| 86 | 105 | ||
| 87 | /** | 106 | /** |
| 88 | * mark and clear slots: find "partition endpoint" PE and set or | 107 | * mark and clear slots: find "partition endpoint" PE and set or |
| @@ -91,6 +110,10 @@ int rtas_write_config(struct pci_dn *, int where, int size, u32 val); | |||
| 91 | void eeh_mark_slot (struct device_node *dn, int mode_flag); | 110 | void eeh_mark_slot (struct device_node *dn, int mode_flag); |
| 92 | void eeh_clear_slot (struct device_node *dn, int mode_flag); | 111 | void eeh_clear_slot (struct device_node *dn, int mode_flag); |
| 93 | 112 | ||
| 113 | /* Find the associated "Partiationable Endpoint" PE */ | ||
| 114 | struct device_node * find_device_pe(struct device_node *dn); | ||
| 115 | |||
| 94 | #endif | 116 | #endif |
| 95 | 117 | ||
| 118 | #endif /* __KERNEL__ */ | ||
| 96 | #endif /* _ASM_POWERPC_PPC_PCI_H */ | 119 | #endif /* _ASM_POWERPC_PPC_PCI_H */ |
