blob: dadde7d52f46a8454250f8c5062546ae06ac30f8 [file] [log] [blame]
Thomas Gleixner1a59d1b82019-05-27 08:55:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Linas Vepstas172ca922005-11-03 18:50:04 -06002/*
Linas Vepstas172ca922005-11-03 18:50:04 -06003 *
4 * Copyright (c) 2005 Linas Vepstas <linas@linas.org>
5 */
6
Linas Vepstasac325ac2006-04-18 21:05:21 -07007#ifndef ASM_POWERPC_EEH_EVENT_H
8#define ASM_POWERPC_EEH_EVENT_H
Arnd Bergmann88ced032005-12-16 22:43:46 +01009#ifdef __KERNEL__
Linas Vepstas172ca922005-11-03 18:50:04 -060010
Gavin Shan29f8bf12012-02-27 20:04:02 +000011/*
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.
Linas Vepstas172ca922005-11-03 18:50:04 -060016 */
17struct eeh_event {
Gavin Shan29f8bf12012-02-27 20:04:02 +000018 struct list_head list; /* to form event queue */
Gavin Shanc533b462012-09-07 22:44:11 +000019 struct eeh_pe *pe; /* EEH PE */
Linas Vepstas172ca922005-11-03 18:50:04 -060020};
21
Gavin Shanc8608552013-06-20 13:21:00 +080022int eeh_event_init(void);
Gavin Shanc533b462012-09-07 22:44:11 +000023int eeh_send_failure_event(struct eeh_pe *pe);
Oliver O'Halloran954bd992019-02-15 11:48:17 +110024int __eeh_send_failure_event(struct eeh_pe *pe);
Gavin Shan5c7a35e2014-06-04 17:31:52 +100025void eeh_remove_event(struct eeh_pe *pe, bool force);
Sam Bobroff37fd8122018-03-19 13:46:30 +110026void eeh_handle_normal_event(struct eeh_pe *pe);
Sam Bobroff68701782018-03-19 13:46:20 +110027void eeh_handle_special_event(void);
Linas Vepstas77bd7412005-11-03 18:52:49 -060028
Arnd Bergmann88ced032005-12-16 22:43:46 +010029#endif /* __KERNEL__ */
Linas Vepstasac325ac2006-04-18 21:05:21 -070030#endif /* ASM_POWERPC_EEH_EVENT_H */