From 691b90deafed943c37221419a0535e24f3fc8e9c Mon Sep 17 00:00:00 2001 From: tzachid Date: Mon, 21 Nov 2005 10:55:30 +0000 Subject: [PATCH] Base connection between user mode sdp and kernel mode was achived (added a forgotten file). (Rev69) git-svn-id: svn://openib.tc.cornell.edu/gen1@158 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/ulp/sdp/include/SdpShared.h | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 trunk/ulp/sdp/include/SdpShared.h diff --git a/trunk/ulp/sdp/include/SdpShared.h b/trunk/ulp/sdp/include/SdpShared.h new file mode 100644 index 00000000..15615b38 --- /dev/null +++ b/trunk/ulp/sdp/include/SdpShared.h @@ -0,0 +1,32 @@ +/* Copyright mellanox 2005 */ + +#define ProviderName L"SdpDriver" + +#define SDP_DEVICE_NAME L"\\Device\\"ProviderName +#define SDP_LINK_NAME L"\\DosDevices\\Global\\"ProviderName +#define SDP_WIN32_NAME L"\\\\.\\"ProviderName + +// Define the IOCTL codes that will be used for sending the requests down + +#define IOCTL_WSP_SOCKET CTL_CODE(FILE_DEVICE_UNKNOWN, 0x801, METHOD_BUFFERED ,FILE_ANY_ACCESS) + +// Data structures that are used for connect +struct WspSocketIn { + ULONG dwFlags; +}; + +struct WspSocketOut { + int Errno; + VOID *pSocket; +}; + +struct WspConnectIn { + ULONG IP; + USHORT Port; + int namelen; +}; + +struct WspConnectOut { + int Errno; +}; + -- 2.41.0