aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinas Vepstas <linas@austin.ibm.com>2007-05-22 14:18:04 -0400
committerPaul Mackerras <paulus@samba.org>2007-06-14 08:29:55 -0400
commitc2e221e8b93ea54da85d9b5413a2eff9f4a653f7 (patch)
tree0385fcb8a801f3d307556bbbf0eea0b67b9649e4 /include
parent3f1df7a260aded4937e512872f3fbfdb9bc22c82 (diff)
[POWERPC] pseries: asm/pci-bridge.h CONFIG_ minor cleanup
Use the correct CONFIG_ option to mark off the EEH bits. Move the EEH bits to the bottom of the struct. The config_space array is used by EEH only; it does not need to be part of the struct for non-pseries machines. Signed-off-by: Linas Vepstas <linas@austin.ibm.com> ---- Revised patch, per commments from Michael Ellerman. include/asm-powerpc/pci-bridge.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-powerpc/pci-bridge.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/include/asm-powerpc/pci-bridge.h b/include/asm-powerpc/pci-bridge.h
index d9bf5aba96cb..11537a07ca70 100644
--- a/include/asm-powerpc/pci-bridge.h
+++ b/include/asm-powerpc/pci-bridge.h
@@ -70,19 +70,21 @@ struct pci_dn {
70 int devfn; /* pci device and function number */ 70 int devfn; /* pci device and function number */
71 int class_code; /* pci device class */ 71 int class_code; /* pci device class */
72 72
73#ifdef CONFIG_PPC_PSERIES 73 struct pci_controller *phb; /* for pci devices */
74 struct iommu_table *iommu_table; /* for phb's or bridges */
75 struct pci_dev *pcidev; /* back-pointer to the pci device */
76 struct device_node *node; /* back-pointer to the device_node */
77
78 int pci_ext_config_space; /* for pci devices */
79
80#ifdef CONFIG_EEH
74 int eeh_mode; /* See eeh.h for possible EEH_MODEs */ 81 int eeh_mode; /* See eeh.h for possible EEH_MODEs */
75 int eeh_config_addr; 82 int eeh_config_addr;
76 int eeh_pe_config_addr; /* new-style partition endpoint address */ 83 int eeh_pe_config_addr; /* new-style partition endpoint address */
77 int eeh_check_count; /* # times driver ignored error */ 84 int eeh_check_count; /* # times driver ignored error */
78 int eeh_freeze_count; /* # times this device froze up. */ 85 int eeh_freeze_count; /* # times this device froze up. */
79#endif
80 int pci_ext_config_space; /* for pci devices */
81 struct pci_controller *phb; /* for pci devices */
82 struct iommu_table *iommu_table; /* for phb's or bridges */
83 struct pci_dev *pcidev; /* back-pointer to the pci device */
84 struct device_node *node; /* back-pointer to the device_node */
85 u32 config_space[16]; /* saved PCI config space */ 86 u32 config_space[16]; /* saved PCI config space */
87#endif
86}; 88};
87 89
88/* Get the pointer to a device_node's pci_dn */ 90/* Get the pointer to a device_node's pci_dn */