i40e_status.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright(c) 2013 - 2018 Intel Corporation. */
  3. #ifndef _I40E_STATUS_H_
  4. #define _I40E_STATUS_H_
  5. /* Error Codes */
  6. enum i40e_status_code {
  7. I40E_SUCCESS = 0,
  8. I40E_ERR_NVM = -1,
  9. I40E_ERR_NVM_CHECKSUM = -2,
  10. I40E_ERR_PHY = -3,
  11. I40E_ERR_CONFIG = -4,
  12. I40E_ERR_PARAM = -5,
  13. I40E_ERR_MAC_TYPE = -6,
  14. I40E_ERR_UNKNOWN_PHY = -7,
  15. I40E_ERR_LINK_SETUP = -8,
  16. I40E_ERR_ADAPTER_STOPPED = -9,
  17. I40E_ERR_INVALID_MAC_ADDR = -10,
  18. I40E_ERR_DEVICE_NOT_SUPPORTED = -11,
  19. I40E_ERR_MASTER_REQUESTS_PENDING = -12,
  20. I40E_ERR_INVALID_LINK_SETTINGS = -13,
  21. I40E_ERR_AUTONEG_NOT_COMPLETE = -14,
  22. I40E_ERR_RESET_FAILED = -15,
  23. I40E_ERR_SWFW_SYNC = -16,
  24. I40E_ERR_NO_AVAILABLE_VSI = -17,
  25. I40E_ERR_NO_MEMORY = -18,
  26. I40E_ERR_BAD_PTR = -19,
  27. I40E_ERR_RING_FULL = -20,
  28. I40E_ERR_INVALID_PD_ID = -21,
  29. I40E_ERR_INVALID_QP_ID = -22,
  30. I40E_ERR_INVALID_CQ_ID = -23,
  31. I40E_ERR_INVALID_CEQ_ID = -24,
  32. I40E_ERR_INVALID_AEQ_ID = -25,
  33. I40E_ERR_INVALID_SIZE = -26,
  34. I40E_ERR_INVALID_ARP_INDEX = -27,
  35. I40E_ERR_INVALID_FPM_FUNC_ID = -28,
  36. I40E_ERR_QP_INVALID_MSG_SIZE = -29,
  37. I40E_ERR_QP_TOOMANY_WRS_POSTED = -30,
  38. I40E_ERR_INVALID_FRAG_COUNT = -31,
  39. I40E_ERR_QUEUE_EMPTY = -32,
  40. I40E_ERR_INVALID_ALIGNMENT = -33,
  41. I40E_ERR_FLUSHED_QUEUE = -34,
  42. I40E_ERR_INVALID_PUSH_PAGE_INDEX = -35,
  43. I40E_ERR_INVALID_IMM_DATA_SIZE = -36,
  44. I40E_ERR_TIMEOUT = -37,
  45. I40E_ERR_OPCODE_MISMATCH = -38,
  46. I40E_ERR_CQP_COMPL_ERROR = -39,
  47. I40E_ERR_INVALID_VF_ID = -40,
  48. I40E_ERR_INVALID_HMCFN_ID = -41,
  49. I40E_ERR_BACKING_PAGE_ERROR = -42,
  50. I40E_ERR_NO_PBLCHUNKS_AVAILABLE = -43,
  51. I40E_ERR_INVALID_PBLE_INDEX = -44,
  52. I40E_ERR_INVALID_SD_INDEX = -45,
  53. I40E_ERR_INVALID_PAGE_DESC_INDEX = -46,
  54. I40E_ERR_INVALID_SD_TYPE = -47,
  55. I40E_ERR_MEMCPY_FAILED = -48,
  56. I40E_ERR_INVALID_HMC_OBJ_INDEX = -49,
  57. I40E_ERR_INVALID_HMC_OBJ_COUNT = -50,
  58. I40E_ERR_INVALID_SRQ_ARM_LIMIT = -51,
  59. I40E_ERR_SRQ_ENABLED = -52,
  60. I40E_ERR_ADMIN_QUEUE_ERROR = -53,
  61. I40E_ERR_ADMIN_QUEUE_TIMEOUT = -54,
  62. I40E_ERR_BUF_TOO_SHORT = -55,
  63. I40E_ERR_ADMIN_QUEUE_FULL = -56,
  64. I40E_ERR_ADMIN_QUEUE_NO_WORK = -57,
  65. I40E_ERR_BAD_IWARP_CQE = -58,
  66. I40E_ERR_NVM_BLANK_MODE = -59,
  67. I40E_ERR_NOT_IMPLEMENTED = -60,
  68. I40E_ERR_PE_DOORBELL_NOT_ENABLED = -61,
  69. I40E_ERR_DIAG_TEST_FAILED = -62,
  70. I40E_ERR_NOT_READY = -63,
  71. I40E_NOT_SUPPORTED = -64,
  72. I40E_ERR_FIRMWARE_API_VERSION = -65,
  73. I40E_ERR_ADMIN_QUEUE_CRITICAL_ERROR = -66,
  74. };
  75. #endif /* _I40E_STATUS_H_ */