eeh_event.h 826 B

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