1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *
4  * Copyright (c) 2005 Linas Vepstas <linas@linas.org>
5  */
6 
7 #ifndef ASM_POWERPC_EEH_EVENT_H
8 #define ASM_POWERPC_EEH_EVENT_H
9 #ifdef __KERNEL__
10 
11 /*
12  * structure holding pci controller data that describes a
13  * change in the isolation status of a PCI slot.  A pointer
14  * to this struct is passed as the data pointer in a notify
15  * callback.
16  */
17 struct eeh_event {
18 	struct list_head	list;	/* to form event queue	*/
19 	struct eeh_pe		*pe;	/* EEH PE		*/
20 };
21 
22 int eeh_event_init(void);
23 int eeh_send_failure_event(struct eeh_pe *pe);
24 int __eeh_send_failure_event(struct eeh_pe *pe);
25 void eeh_remove_event(struct eeh_pe *pe, bool force);
26 void eeh_handle_normal_event(struct eeh_pe *pe);
27 void eeh_handle_special_event(void);
28 
29 #endif /* __KERNEL__ */
30 #endif /* ASM_POWERPC_EEH_EVENT_H */
31