Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  *
0004  * Copyright (c) 2005 Linas Vepstas <linas@linas.org>
0005  */
0006 
0007 #ifndef ASM_POWERPC_EEH_EVENT_H
0008 #define ASM_POWERPC_EEH_EVENT_H
0009 #ifdef __KERNEL__
0010 
0011 /*
0012  * structure holding pci controller data that describes a
0013  * change in the isolation status of a PCI slot.  A pointer
0014  * to this struct is passed as the data pointer in a notify
0015  * callback.
0016  */
0017 struct eeh_event {
0018     struct list_head    list;   /* to form event queue  */
0019     struct eeh_pe       *pe;    /* EEH PE       */
0020 };
0021 
0022 int eeh_event_init(void);
0023 int eeh_send_failure_event(struct eeh_pe *pe);
0024 int __eeh_send_failure_event(struct eeh_pe *pe);
0025 void eeh_remove_event(struct eeh_pe *pe, bool force);
0026 void eeh_handle_normal_event(struct eeh_pe *pe);
0027 void eeh_handle_special_event(void);
0028 
0029 #endif /* __KERNEL__ */
0030 #endif /* ASM_POWERPC_EEH_EVENT_H */