c2_ae.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*
  2. * Copyright (c) 2005 Ammasso, Inc. All rights reserved.
  3. * Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved.
  4. *
  5. * This software is available to you under a choice of one of two
  6. * licenses. You may choose to be licensed under the terms of the GNU
  7. * General Public License (GPL) Version 2, available from the file
  8. * COPYING in the main directory of this source tree, or the
  9. * OpenIB.org BSD license below:
  10. *
  11. * Redistribution and use in source and binary forms, with or
  12. * without modification, are permitted provided that the following
  13. * conditions are met:
  14. *
  15. * - Redistributions of source code must retain the above
  16. * copyright notice, this list of conditions and the following
  17. * disclaimer.
  18. *
  19. * - Redistributions in binary form must reproduce the above
  20. * copyright notice, this list of conditions and the following
  21. * disclaimer in the documentation and/or other materials
  22. * provided with the distribution.
  23. *
  24. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  25. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  26. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  27. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  28. * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  29. * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  30. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  31. * SOFTWARE.
  32. */
  33. #ifndef _C2_AE_H_
  34. #define _C2_AE_H_
  35. /*
  36. * WARNING: If you change this file, also bump C2_IVN_BASE
  37. * in common/include/clustercore/c2_ivn.h.
  38. */
  39. /*
  40. * Asynchronous Event Identifiers
  41. *
  42. * These start at 0x80 only so it's obvious from inspection that
  43. * they are not work-request statuses. This isn't critical.
  44. *
  45. * NOTE: these event id's must fit in eight bits.
  46. */
  47. enum c2_event_id {
  48. CCAE_REMOTE_SHUTDOWN = 0x80,
  49. CCAE_ACTIVE_CONNECT_RESULTS,
  50. CCAE_CONNECTION_REQUEST,
  51. CCAE_LLP_CLOSE_COMPLETE,
  52. CCAE_TERMINATE_MESSAGE_RECEIVED,
  53. CCAE_LLP_CONNECTION_RESET,
  54. CCAE_LLP_CONNECTION_LOST,
  55. CCAE_LLP_SEGMENT_SIZE_INVALID,
  56. CCAE_LLP_INVALID_CRC,
  57. CCAE_LLP_BAD_FPDU,
  58. CCAE_INVALID_DDP_VERSION,
  59. CCAE_INVALID_RDMA_VERSION,
  60. CCAE_UNEXPECTED_OPCODE,
  61. CCAE_INVALID_DDP_QUEUE_NUMBER,
  62. CCAE_RDMA_READ_NOT_ENABLED,
  63. CCAE_RDMA_WRITE_NOT_ENABLED,
  64. CCAE_RDMA_READ_TOO_SMALL,
  65. CCAE_NO_L_BIT,
  66. CCAE_TAGGED_INVALID_STAG,
  67. CCAE_TAGGED_BASE_BOUNDS_VIOLATION,
  68. CCAE_TAGGED_ACCESS_RIGHTS_VIOLATION,
  69. CCAE_TAGGED_INVALID_PD,
  70. CCAE_WRAP_ERROR,
  71. CCAE_BAD_CLOSE,
  72. CCAE_BAD_LLP_CLOSE,
  73. CCAE_INVALID_MSN_RANGE,
  74. CCAE_INVALID_MSN_GAP,
  75. CCAE_IRRQ_OVERFLOW,
  76. CCAE_IRRQ_MSN_GAP,
  77. CCAE_IRRQ_MSN_RANGE,
  78. CCAE_IRRQ_INVALID_STAG,
  79. CCAE_IRRQ_BASE_BOUNDS_VIOLATION,
  80. CCAE_IRRQ_ACCESS_RIGHTS_VIOLATION,
  81. CCAE_IRRQ_INVALID_PD,
  82. CCAE_IRRQ_WRAP_ERROR,
  83. CCAE_CQ_SQ_COMPLETION_OVERFLOW,
  84. CCAE_CQ_RQ_COMPLETION_ERROR,
  85. CCAE_QP_SRQ_WQE_ERROR,
  86. CCAE_QP_LOCAL_CATASTROPHIC_ERROR,
  87. CCAE_CQ_OVERFLOW,
  88. CCAE_CQ_OPERATION_ERROR,
  89. CCAE_SRQ_LIMIT_REACHED,
  90. CCAE_QP_RQ_LIMIT_REACHED,
  91. CCAE_SRQ_CATASTROPHIC_ERROR,
  92. CCAE_RNIC_CATASTROPHIC_ERROR
  93. /* WARNING If you add more id's, make sure their values fit in eight bits. */
  94. };
  95. /*
  96. * Resource Indicators and Identifiers
  97. */
  98. enum c2_resource_indicator {
  99. C2_RES_IND_QP = 1,
  100. C2_RES_IND_EP,
  101. C2_RES_IND_CQ,
  102. C2_RES_IND_SRQ,
  103. };
  104. #endif /* _C2_AE_H_ */