diff options
Diffstat (limited to 'arch/powerpc/platforms/powernv/pci.h')
-rw-r--r-- | arch/powerpc/platforms/powernv/pci.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/powernv/pci.h b/arch/powerpc/platforms/powernv/pci.h index cde169442775..676232c34328 100644 --- a/arch/powerpc/platforms/powernv/pci.h +++ b/arch/powerpc/platforms/powernv/pci.h | |||
@@ -81,28 +81,27 @@ struct pnv_eeh_ops { | |||
81 | int (*configure_bridge)(struct eeh_pe *pe); | 81 | int (*configure_bridge)(struct eeh_pe *pe); |
82 | int (*next_error)(struct eeh_pe **pe); | 82 | int (*next_error)(struct eeh_pe **pe); |
83 | }; | 83 | }; |
84 | |||
85 | #define PNV_EEH_STATE_ENABLED (1 << 0) /* EEH enabled */ | ||
86 | #define PNV_EEH_STATE_REMOVED (1 << 1) /* PHB removed */ | ||
87 | |||
88 | #endif /* CONFIG_EEH */ | 84 | #endif /* CONFIG_EEH */ |
89 | 85 | ||
86 | #define PNV_PHB_FLAG_EEH (1 << 0) | ||
87 | |||
90 | struct pnv_phb { | 88 | struct pnv_phb { |
91 | struct pci_controller *hose; | 89 | struct pci_controller *hose; |
92 | enum pnv_phb_type type; | 90 | enum pnv_phb_type type; |
93 | enum pnv_phb_model model; | 91 | enum pnv_phb_model model; |
94 | u64 hub_id; | 92 | u64 hub_id; |
95 | u64 opal_id; | 93 | u64 opal_id; |
94 | int flags; | ||
96 | void __iomem *regs; | 95 | void __iomem *regs; |
97 | int initialized; | 96 | int initialized; |
98 | spinlock_t lock; | 97 | spinlock_t lock; |
99 | 98 | ||
100 | #ifdef CONFIG_EEH | 99 | #ifdef CONFIG_EEH |
101 | struct pnv_eeh_ops *eeh_ops; | 100 | struct pnv_eeh_ops *eeh_ops; |
102 | int eeh_state; | ||
103 | #endif | 101 | #endif |
104 | 102 | ||
105 | #ifdef CONFIG_DEBUG_FS | 103 | #ifdef CONFIG_DEBUG_FS |
104 | int has_dbgfs; | ||
106 | struct dentry *dbgfs; | 105 | struct dentry *dbgfs; |
107 | #endif | 106 | #endif |
108 | 107 | ||
@@ -205,5 +204,7 @@ extern void pnv_pci_init_ioda_hub(struct device_node *np); | |||
205 | extern void pnv_pci_init_ioda2_phb(struct device_node *np); | 204 | extern void pnv_pci_init_ioda2_phb(struct device_node *np); |
206 | extern void pnv_pci_ioda_tce_invalidate(struct iommu_table *tbl, | 205 | extern void pnv_pci_ioda_tce_invalidate(struct iommu_table *tbl, |
207 | __be64 *startp, __be64 *endp, bool rm); | 206 | __be64 *startp, __be64 *endp, bool rm); |
207 | extern void pnv_pci_reset_secondary_bus(struct pci_dev *dev); | ||
208 | extern int ioda_eeh_phb_reset(struct pci_controller *hose, int option); | ||
208 | 209 | ||
209 | #endif /* __POWERNV_PCI_H */ | 210 | #endif /* __POWERNV_PCI_H */ |