Loading...
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 */
17struct eeh_event {
18 struct list_head list; /* to form event queue */
19 struct eeh_pe *pe; /* EEH PE */
20};
21
22int eeh_event_init(void);
23int eeh_send_failure_event(struct eeh_pe *pe);
24int __eeh_send_failure_event(struct eeh_pe *pe);
25void eeh_remove_event(struct eeh_pe *pe, bool force);
26void eeh_handle_normal_event(struct eeh_pe *pe);
27void eeh_handle_special_event(void);
28
29#endif /* __KERNEL__ */
30#endif /* ASM_POWERPC_EEH_EVENT_H */