aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/ppc-pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/ppc-pci.h')
-rw-r--r--include/asm-powerpc/ppc-pci.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/include/asm-powerpc/ppc-pci.h b/include/asm-powerpc/ppc-pci.h
index 6dcd7a811fe1..8e2005159ffd 100644
--- a/include/asm-powerpc/ppc-pci.h
+++ b/include/asm-powerpc/ppc-pci.h
@@ -62,11 +62,14 @@ struct pci_dev *pci_get_device_by_addr(unsigned long addr);
62 62
63/** 63/**
64 * eeh_slot_error_detail -- record and EEH error condition to the log 64 * eeh_slot_error_detail -- record and EEH error condition to the log
65 * @severity: 1 if temporary, 2 if permanent failure. 65 * @pdn: pci device node
66 * @severity: EEH_LOG_TEMP_FAILURE or EEH_LOG_PERM_FAILURE
66 * 67 *
67 * Obtains the EEH error details from the RTAS subsystem, 68 * Obtains the EEH error details from the RTAS subsystem,
68 * and then logs these details with the RTAS error log system. 69 * and then logs these details with the RTAS error log system.
69 */ 70 */
71#define EEH_LOG_TEMP_FAILURE 1
72#define EEH_LOG_PERM_FAILURE 2
70void eeh_slot_error_detail (struct pci_dn *pdn, int severity); 73void eeh_slot_error_detail (struct pci_dn *pdn, int severity);
71 74
72/** 75/**
@@ -82,6 +85,7 @@ int rtas_pci_enable(struct pci_dn *pdn, int function);
82 85
83/** 86/**
84 * rtas_set_slot_reset -- unfreeze a frozen slot 87 * rtas_set_slot_reset -- unfreeze a frozen slot
88 * @pdn: pci device node
85 * 89 *
86 * Clear the EEH-frozen condition on a slot. This routine 90 * Clear the EEH-frozen condition on a slot. This routine
87 * does this by asserting the PCI #RST line for 1/8th of 91 * does this by asserting the PCI #RST line for 1/8th of
@@ -95,6 +99,7 @@ int eeh_wait_for_slot_status(struct pci_dn *pdn, int max_wait_msecs);
95 99
96/** 100/**
97 * eeh_restore_bars - Restore device configuration info. 101 * eeh_restore_bars - Restore device configuration info.
102 * @pdn: pci device node
98 * 103 *
99 * A reset of a PCI device will clear out its config space. 104 * A reset of a PCI device will clear out its config space.
100 * This routines will restore the config space for this 105 * This routines will restore the config space for this
@@ -105,6 +110,7 @@ void eeh_restore_bars(struct pci_dn *);
105 110
106/** 111/**
107 * rtas_configure_bridge -- firmware initialization of pci bridge 112 * rtas_configure_bridge -- firmware initialization of pci bridge
113 * @pdn: pci device node
108 * 114 *
109 * Ask the firmware to configure all PCI bridges devices 115 * Ask the firmware to configure all PCI bridges devices
110 * located behind the indicated node. Required after a 116 * located behind the indicated node. Required after a
@@ -118,16 +124,22 @@ int rtas_write_config(struct pci_dn *, int where, int size, u32 val);
118int rtas_read_config(struct pci_dn *, int where, int size, u32 *val); 124int rtas_read_config(struct pci_dn *, int where, int size, u32 *val);
119 125
120/** 126/**
127 * eeh_mark_slot -- set mode flags for pertition endpoint
128 * @pdn: pci device node
129 *
121 * mark and clear slots: find "partition endpoint" PE and set or 130 * mark and clear slots: find "partition endpoint" PE and set or
122 * clear the flags for each subnode of the PE. 131 * clear the flags for each subnode of the PE.
123 */ 132 */
124void eeh_mark_slot (struct device_node *dn, int mode_flag); 133void eeh_mark_slot (struct device_node *dn, int mode_flag);
125void eeh_clear_slot (struct device_node *dn, int mode_flag); 134void eeh_clear_slot (struct device_node *dn, int mode_flag);
126 135
127/* Find the associated "Partiationable Endpoint" PE */ 136/**
137 * find_device_pe -- Find the associated "Partiationable Endpoint" PE
138 * @pdn: pci device node
139 */
128struct device_node * find_device_pe(struct device_node *dn); 140struct device_node * find_device_pe(struct device_node *dn);
129 141
130#endif 142#endif /* CONFIG_EEH */
131 143
132#else /* CONFIG_PCI */ 144#else /* CONFIG_PCI */
133static inline void find_and_init_phbs(void) { } 145static inline void find_and_init_phbs(void) { }