winverbs/nd: map completion status to ND values
[mirror/winof/.git] / ulp / libibverbs / include / infiniband / verbs.h
index 700259e..780f938 100644 (file)
@@ -63,6 +63,8 @@ typedef unsigned __int64      uint64_t;
 #define EAFNOSUPPORT   WV_INVALID_ADDRESS\r
 #define EWOULDBLOCK            WV_DEVICE_BUSY\r
 \r
 #define EAFNOSUPPORT   WV_INVALID_ADDRESS\r
 #define EWOULDBLOCK            WV_DEVICE_BUSY\r
 \r
+#define ECONNRESET             WSAECONNRESET\r
+\r
 union ibv_gid\r
 {\r
        uint8_t                 raw[16];\r
 union ibv_gid\r
 {\r
        uint8_t                 raw[16];\r
@@ -240,28 +242,29 @@ struct ibv_async_event
 \r
 enum ibv_wc_status\r
 {\r
 \r
 enum ibv_wc_status\r
 {\r
-       IBV_WC_SUCCESS,\r
-       IBV_WC_LOC_LEN_ERR,\r
-       IBV_WC_LOC_QP_OP_ERR,\r
-       IBV_WC_LOC_PROT_ERR,\r
-       IBV_WC_WR_FLUSH_ERR,\r
-       IBV_WC_MW_BIND_ERR,\r
-       IBV_WC_REM_ACCESS_ERR,\r
-       IBV_WC_REM_OP_ERR,\r
-       IBV_WC_RNR_RETRY_EXC_ERR,\r
-       IBV_WC_RESP_TIMEOUT_ERR,\r
-       IBV_WC_REM_INV_REQ_ERR,\r
-       IBV_WC_BAD_RESP_ERR,\r
-       IBV_WC_LOC_ACCESS_ERR,\r
-       IBV_WC_GENERAL_ERR,\r
-       IBV_WC_FATAL_ERR,\r
-       IBV_WC_RETRY_EXC_ERR,\r
-       IBV_WC_REM_ABORT_ERR,\r
-       IBV_WC_LOC_EEC_OP_ERR,\r
-       IBV_WC_LOC_RDD_VIOL_ERR,\r
-       IBV_WC_REM_INV_RD_REQ_ERR,\r
-       IBV_WC_INV_EECN_ERR,\r
-       IBV_WC_INV_EEC_STATE_ERR\r
+       IBV_WC_SUCCESS                          = WvWcSuccess,\r
+       IBV_WC_LOC_LEN_ERR                      = WvWcLocalLengthError,\r
+       IBV_WC_LOC_QP_OP_ERR            = WvWcLocalOpError,\r
+       IBV_WC_LOC_PROT_ERR                     = WvWcLocalProtectionError,\r
+       IBV_WC_WR_FLUSH_ERR                     = WvWcFlushed,\r
+       IBV_WC_MW_BIND_ERR                      = WvWcMwBindError,\r
+       IBV_WC_REM_ACCESS_ERR           = WvWcRemoteAccessError,\r
+       IBV_WC_REM_OP_ERR                       = WvWcRemoteOpError,\r
+       IBV_WC_RNR_RETRY_EXC_ERR        = WvWcRnrRetryError,\r
+       IBV_WC_RESP_TIMEOUT_ERR         = WvWcTimeoutRetryError,\r
+       IBV_WC_REM_INV_REQ_ERR          = WvWcRemoteInvalidRequest,\r
+       IBV_WC_BAD_RESP_ERR                     = WvWcBadResponse,\r
+       IBV_WC_LOC_ACCESS_ERR           = WvWcLocalAccessError,\r
+       IBV_WC_GENERAL_ERR                      = WvWcError,\r
+       IBV_WC_FATAL_ERR                        = WvWcError,\r
+       IBV_WC_RETRY_EXC_ERR            = WvWcError,\r
+       IBV_WC_REM_ABORT_ERR            = WvWcError,\r
+       IBV_WC_LOC_EEC_OP_ERR           = WvWcError,\r
+       IBV_WC_LOC_RDD_VIOL_ERR         = WvWcError,\r
+       IBV_WC_REM_INV_RD_REQ_ERR       = WvWcError,\r
+       IBV_WC_INV_EECN_ERR                     = WvWcError,\r
+       IBV_WC_INV_EEC_STATE_ERR        = WvWcError\r
+\r
 };\r
 \r
 __declspec(dllexport)\r
 };\r
 \r
 __declspec(dllexport)\r
@@ -660,6 +663,8 @@ struct ibv_cq
        IWVCompletionQueue              *handle;\r
        int                                             cqe;\r
        COMP_ENTRY                              comp_entry;\r
        IWVCompletionQueue              *handle;\r
        int                                             cqe;\r
        COMP_ENTRY                              comp_entry;\r
+       LONG volatile                   notify_cnt;\r
+       LONG volatile                   ack_cnt;\r
 };\r
 \r
 struct ibv_ah\r
 };\r
 \r
 struct ibv_ah\r