ndkinfo.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * This file is part of the mingw-w64 runtime package.
  3. * No warranty is given; refer to the file DISCLAIMER within this package.
  4. */
  5. #ifndef _NDKINFO_H_
  6. #define _NDKINFO_H_
  7. #include <winapifamily.h>
  8. #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
  9. #define NDK_ADAPTER_FLAG_IN_ORDER_DMA_SUPPORTED 0x1
  10. #define NDK_ADAPTER_FLAG_RDMA_READ_SINK_NOT_REQUIRED 0x2
  11. #define NDK_ADAPTER_FLAG_CQ_INTERRUPT_MODERATION_SUPPORTED 0x4
  12. #define NDK_ADAPTER_FLAG_MULTI_ENGINE_SUPPORTED 0x8
  13. #define NDK_ADAPTER_FLAG_CQ_RESIZE_SUPPORTED 0x100
  14. #define NDK_ADAPTER_FLAG_LOOPBACK_CONNECTIONS_SUPPORTED 0x10000
  15. typedef struct {
  16. USHORT Major;
  17. USHORT Minor;
  18. } NDK_VERSION;
  19. typedef struct _NDK_ADAPTER_INFO {
  20. NDK_VERSION Version;
  21. UINT32 VendorId;
  22. UINT32 DeviceId;
  23. SIZE_T MaxRegistrationSize;
  24. SIZE_T MaxWindowSize;
  25. ULONG FRMRPageCount;
  26. ULONG MaxInitiatorRequestSge;
  27. ULONG MaxReceiveRequestSge;
  28. ULONG MaxReadRequestSge;
  29. ULONG MaxTransferLength;
  30. ULONG MaxInlineDataSize;
  31. ULONG MaxInboundReadLimit;
  32. ULONG MaxOutboundReadLimit;
  33. ULONG MaxReceiveQueueDepth;
  34. ULONG MaxInitiatorQueueDepth;
  35. ULONG MaxSrqDepth;
  36. ULONG MaxCqDepth;
  37. ULONG LargeRequestThreshold;
  38. ULONG MaxCallerData;
  39. ULONG MaxCalleeData;
  40. ULONG AdapterFlags;
  41. } NDK_ADAPTER_INFO;
  42. #endif
  43. #endif