aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/eeh_event.h
diff options
context:
space:
mode:
authorGavin Shan <shangw@linux.vnet.ibm.com>2012-02-27 15:04:08 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-03-08 19:39:46 -0500
commit40a7cd92197bfa947a1dab80c73a42dd33ac5067 (patch)
tree0e82f9f4b2ff51425e90e46631bde2915db12715 /arch/powerpc/include/asm/eeh_event.h
parentf631acd3e98c31b21937682d2b3f39bf9333a18e (diff)
powerpc/eeh: Replace pci_dn with eeh_dev for EEH aux components
The original EEH implementation is heavily depending on struct pci_dn. We have to put EEH related information to pci_dn. Actually, we could split struct pci_dn so that the EEH sensitive information to form an individual struct, then EEH looks more independent. The patch replaces pci_dn with eeh_dev for EEH aux components like event and driver. Also, the eeh_event struct has been adjusted for a little bit since eeh_dev has linked the associated FDT (Flat Device Tree) node and PCI device. It's not necessary for eeh_event struct to trace FDT node and PCI device. We can just simply to trace eeh_dev in eeh_event. The patch also renames function pcid_name() to eeh_pcid_name(), which should be missed in the previous patch where the EEH aux components have been cleaned up. Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/eeh_event.h')
-rw-r--r--arch/powerpc/include/asm/eeh_event.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/eeh_event.h b/arch/powerpc/include/asm/eeh_event.h
index 25ebf6a5aa57..c68b012b7797 100644
--- a/arch/powerpc/include/asm/eeh_event.h
+++ b/arch/powerpc/include/asm/eeh_event.h
@@ -28,12 +28,11 @@
28 */ 28 */
29struct eeh_event { 29struct eeh_event {
30 struct list_head list; /* to form event queue */ 30 struct list_head list; /* to form event queue */
31 struct device_node *dn; /* struct device node */ 31 struct eeh_dev *edev; /* EEH device */
32 struct pci_dev *dev; /* affected device */
33}; 32};
34 33
35int eeh_send_failure_event(struct device_node *dn, struct pci_dev *dev); 34int eeh_send_failure_event(struct eeh_dev *edev);
36struct pci_dn *handle_eeh_events(struct eeh_event *); 35struct eeh_dev *handle_eeh_events(struct eeh_event *);
37 36
38#endif /* __KERNEL__ */ 37#endif /* __KERNEL__ */
39#endif /* ASM_POWERPC_EEH_EVENT_H */ 38#endif /* ASM_POWERPC_EEH_EVENT_H */