Base connection between user mode sdp and kernel mode was achived (added a forgotten...
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 21 Nov 2005 10:55:30 +0000 (10:55 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 21 Nov 2005 10:55:30 +0000 (10:55 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@158 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/sdp/include/SdpShared.h [new file with mode: 0644]

diff --git a/ulp/sdp/include/SdpShared.h b/ulp/sdp/include/SdpShared.h
new file mode 100644 (file)
index 0000000..15615b3
--- /dev/null
@@ -0,0 +1,32 @@
+/* Copyright mellanox 2005 */\r
+\r
+#define ProviderName L"SdpDriver"\r
+\r
+#define SDP_DEVICE_NAME        L"\\Device\\"ProviderName\r
+#define SDP_LINK_NAME L"\\DosDevices\\Global\\"ProviderName\r
+#define SDP_WIN32_NAME L"\\\\.\\"ProviderName\r
+\r
+// Define the IOCTL codes that will be used for sending the requests down\r
+\r
+#define IOCTL_WSP_SOCKET       CTL_CODE(FILE_DEVICE_UNKNOWN, 0x801, METHOD_BUFFERED ,FILE_ANY_ACCESS)\r
+\r
+// Data structures that are used for connect\r
+struct WspSocketIn {\r
+       ULONG dwFlags;\r
+};\r
+\r
+struct WspSocketOut {\r
+       int Errno;\r
+       VOID *pSocket;\r
+};\r
+\r
+struct WspConnectIn {\r
+       ULONG IP;\r
+       USHORT Port;\r
+       int namelen;\r
+};\r
+\r
+struct WspConnectOut {\r
+       int Errno;\r
+};\r
+\r