blob: 9884e872686f382f2256836afc79bf474d01d99e [file] [log] [blame]
Linas Vepstas172ca922005-11-03 18:50:04 -06001/*
Linas Vepstas172ca922005-11-03 18:50:04 -06002 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15 *
16 * Copyright (c) 2005 Linas Vepstas <linas@linas.org>
17 */
18
Linas Vepstasac325ac2006-04-18 21:05:21 -070019#ifndef ASM_POWERPC_EEH_EVENT_H
20#define ASM_POWERPC_EEH_EVENT_H
Arnd Bergmann88ced032005-12-16 22:43:46 +010021#ifdef __KERNEL__
Linas Vepstas172ca922005-11-03 18:50:04 -060022
Gavin Shan29f8bf12012-02-27 20:04:02 +000023/*
24 * structure holding pci controller data that describes a
25 * change in the isolation status of a PCI slot. A pointer
26 * to this struct is passed as the data pointer in a notify
27 * callback.
Linas Vepstas172ca922005-11-03 18:50:04 -060028 */
29struct eeh_event {
Gavin Shan29f8bf12012-02-27 20:04:02 +000030 struct list_head list; /* to form event queue */
Gavin Shanc533b462012-09-07 22:44:11 +000031 struct eeh_pe *pe; /* EEH PE */
Linas Vepstas172ca922005-11-03 18:50:04 -060032};
33
Gavin Shanc8608552013-06-20 13:21:00 +080034int eeh_event_init(void);
Gavin Shanc533b462012-09-07 22:44:11 +000035int eeh_send_failure_event(struct eeh_pe *pe);
Gavin Shan5c7a35e2014-06-04 17:31:52 +100036void eeh_remove_event(struct eeh_pe *pe, bool force);
Sam Bobroff37fd8122018-03-19 13:46:30 +110037void eeh_handle_normal_event(struct eeh_pe *pe);
Sam Bobroff68701782018-03-19 13:46:20 +110038void eeh_handle_special_event(void);
Linas Vepstas77bd7412005-11-03 18:52:49 -060039
Arnd Bergmann88ced032005-12-16 22:43:46 +010040#endif /* __KERNEL__ */
Linas Vepstasac325ac2006-04-18 21:05:21 -070041#endif /* ASM_POWERPC_EEH_EVENT_H */