eeh_powerpc.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License, version 2, as
  5. * published by the Free Software Foundation.
  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, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15. *
  16. * Copyright IBM Corp. 2015
  17. *
  18. * Authors: Gavin Shan <gwshan@linux.vnet.ibm.com>
  19. */
  20. #ifndef _ASM_POWERPC_EEH_H
  21. #define _ASM_POWERPC_EEH_H
  22. /* PE states */
  23. #define EEH_PE_STATE_NORMAL 0 /* Normal state */
  24. #define EEH_PE_STATE_RESET 1 /* PE reset asserted */
  25. #define EEH_PE_STATE_STOPPED_IO_DMA 2 /* Frozen PE */
  26. #define EEH_PE_STATE_STOPPED_DMA 4 /* Stopped DMA only */
  27. #define EEH_PE_STATE_UNAVAIL 5 /* Unavailable */
  28. /* EEH error types and functions */
  29. #define EEH_ERR_TYPE_32 0 /* 32-bits error */
  30. #define EEH_ERR_TYPE_64 1 /* 64-bits error */
  31. #define EEH_ERR_FUNC_MIN 0
  32. #define EEH_ERR_FUNC_LD_MEM_ADDR 0 /* Memory load */
  33. #define EEH_ERR_FUNC_LD_MEM_DATA 1
  34. #define EEH_ERR_FUNC_LD_IO_ADDR 2 /* IO load */
  35. #define EEH_ERR_FUNC_LD_IO_DATA 3
  36. #define EEH_ERR_FUNC_LD_CFG_ADDR 4 /* Config load */
  37. #define EEH_ERR_FUNC_LD_CFG_DATA 5
  38. #define EEH_ERR_FUNC_ST_MEM_ADDR 6 /* Memory store */
  39. #define EEH_ERR_FUNC_ST_MEM_DATA 7
  40. #define EEH_ERR_FUNC_ST_IO_ADDR 8 /* IO store */
  41. #define EEH_ERR_FUNC_ST_IO_DATA 9
  42. #define EEH_ERR_FUNC_ST_CFG_ADDR 10 /* Config store */
  43. #define EEH_ERR_FUNC_ST_CFG_DATA 11
  44. #define EEH_ERR_FUNC_DMA_RD_ADDR 12 /* DMA read */
  45. #define EEH_ERR_FUNC_DMA_RD_DATA 13
  46. #define EEH_ERR_FUNC_DMA_RD_MASTER 14
  47. #define EEH_ERR_FUNC_DMA_RD_TARGET 15
  48. #define EEH_ERR_FUNC_DMA_WR_ADDR 16 /* DMA write */
  49. #define EEH_ERR_FUNC_DMA_WR_DATA 17
  50. #define EEH_ERR_FUNC_DMA_WR_MASTER 18
  51. #define EEH_ERR_FUNC_DMA_WR_TARGET 19
  52. #define EEH_ERR_FUNC_MAX 19
  53. #endif /* _ASM_POWERPC_EEH_H */