]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
rdma/verbs: Add header file to define RDMA_INTERFACE_VERBS
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 24 Apr 2008 22:13:21 +0000 (22:13 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 24 Apr 2008 22:13:21 +0000 (22:13 +0000)
RDMA_VERBS_INTERFACE is reported by HCA drivers in response to query
interface requests.  It simply consists in reporting the ci_interface_t.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1073 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

branches/winverbs/inc/kernel/rdma/verbs.h [new file with mode: 0644]

diff --git a/branches/winverbs/inc/kernel/rdma/verbs.h b/branches/winverbs/inc/kernel/rdma/verbs.h
new file mode 100644 (file)
index 0000000..67f5eac
--- /dev/null
@@ -0,0 +1,63 @@
+/*\r
+ * Copyright (c) 1996-2008 Intel Corporation. All rights reserved.\r
+ *\r
+ * This software is available to you under the OpenIB.org BSD license\r
+ * below:\r
+ *\r
+ *     Redistribution and use in source and binary forms, with or\r
+ *     without modification, are permitted provided that the following\r
+ *     conditions are met:\r
+ *\r
+ *      - Redistributions of source code must retain the above\r
+ *        copyright notice, this list of conditions and the following\r
+ *        disclaimer.\r
+ *\r
+ *      - Redistributions in binary form must reproduce the above\r
+ *        copyright notice, this list of conditions and the following\r
+ *        disclaimer in the documentation and/or other materials\r
+ *        provided with the distribution.\r
+ *\r
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AWV\r
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\r
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\r
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r
+ * SOFTWARE.\r
+ */\r
+\r
+#pragma once\r
+\r
+#ifndef _VERBS_H_\r
+#define _VERBS_H_\r
+\r
+#include <initguid.h>\r
+#include <iba/ib_ci.h>\r
+\r
+static inline USHORT VerbsVersion(UINT8 Major, UINT8 Minor)\r
+{\r
+       return ((USHORT) Major << 8) | ((USHORT) Minor);\r
+}\r
+\r
+static inline UINT8 VerbsVersionMajor(USHORT Version)\r
+{\r
+       return (UINT8) (Version >> 8);\r
+}\r
+\r
+static inline UINT8 VerbsVersionMinor(USHORT Version)\r
+{\r
+       return (UINT8) Version;\r
+}\r
+\r
+DEFINE_GUID(GUID_RDMA_INTERFACE_VERBS, 0xf0ebae86, 0xedb5, 0x4b40,\r
+                       0xa1, 0xa, 0x44, 0xd5, 0xdb, 0x3b, 0x96, 0x4e);\r
+\r
+typedef struct _RDMA_INTERFACE_VERBS\r
+{\r
+       INTERFACE               InterfaceHeader;\r
+       ci_interface_t  Verbs;\r
+\r
+}      RDMA_INTERFACE_VERBS;\r
+\r
+#endif // _VERBS_H_\r