diff options
Diffstat (limited to 'arch/powerpc/include/asm/eeh_event.h')
| -rw-r--r-- | arch/powerpc/include/asm/eeh_event.h | 35 | 
1 files changed, 11 insertions, 24 deletions
diff --git a/arch/powerpc/include/asm/eeh_event.h b/arch/powerpc/include/asm/eeh_event.h index cc3cb04539a..1e551a2d6f8 100644 --- a/arch/powerpc/include/asm/eeh_event.h +++ b/arch/powerpc/include/asm/eeh_event.h @@ -1,6 +1,4 @@  /* - *	eeh_event.h - *   * This program is free software; you can redistribute it and/or modify   * it under the terms of the GNU General Public License as published by   * the Free Software Foundation; either version 2 of the License, or @@ -22,32 +20,21 @@  #define ASM_POWERPC_EEH_EVENT_H  #ifdef __KERNEL__ -/** EEH event -- structure holding pci controller data that describes - *  a change in the isolation status of a PCI slot.  A pointer - *  to this struct is passed as the data pointer in a notify callback. +/* + * structure holding pci controller data that describes a + * change in the isolation status of a PCI slot.  A pointer + * to this struct is passed as the data pointer in a notify + * callback.   */  struct eeh_event { -	struct list_head     list; -	struct device_node 	*dn;   /* struct device node */ -	struct pci_dev       *dev;  /* affected device */ +	struct list_head	list;	/* to form event queue	*/ +	struct eeh_pe		*pe;	/* EEH PE		*/  }; -/** - * eeh_send_failure_event - generate a PCI error event - * @dev pci device - * - * This routine builds a PCI error event which will be delivered - * to all listeners on the eeh_notifier_chain. - * - * This routine can be called within an interrupt context; - * the actual event will be delivered in a normal context - * (from a workqueue). - */ -int eeh_send_failure_event (struct device_node *dn, -                            struct pci_dev *dev); - -/* Main recovery function */ -struct pci_dn * handle_eeh_events (struct eeh_event *); +int eeh_event_init(void); +int eeh_send_failure_event(struct eeh_pe *pe); +void eeh_remove_event(struct eeh_pe *pe, bool force); +void eeh_handle_event(struct eeh_pe *pe);  #endif /* __KERNEL__ */  #endif /* ASM_POWERPC_EEH_EVENT_H */  | 
