From 61305a2609949e6b254b4e5f9209728957c979a7 Mon Sep 17 00:00:00 2001 From: shefty Date: Thu, 24 Apr 2008 22:10:57 +0000 Subject: [PATCH] winverbs/ioctl: update IOCTL interface Define device attributes, and fix sizes of device properties. Signed-off-by: Sean Hefty git-svn-id: svn://openib.tc.cornell.edu/gen1@1072 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- branches/winverbs/core/winverbs/wv_ioctl.h | 27 ++++++++++++++++++---- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/branches/winverbs/core/winverbs/wv_ioctl.h b/branches/winverbs/core/winverbs/wv_ioctl.h index 7391f8cb..c6e76e5e 100644 --- a/branches/winverbs/core/winverbs/wv_ioctl.h +++ b/branches/winverbs/core/winverbs/wv_ioctl.h @@ -304,13 +304,30 @@ typedef struct _WV_IO_GUID_LIST } WV_IO_GUID_LIST; -#define WV_IO_ATOMIC_NONE 0 -#define WV_IO_ATOMIC_HCA 1 -#define WV_IO_ATOMIC_NODE 2 +// Device/port capability flags +#define WV_IO_RESIZE_MAX_WR 0x00000001 +#define WV_IO_BAD_PKEY_COUNTER 0x00000002 +#define WV_IO_BAD_QKEY_COUNTER 0x00000004 +// reserved 0x00000008 +#define WV_IO_PATH_MIGRATION 0x00000010 +#define WV_IO_CHANGE_PHYSICAL_PORT 0x00000020 +#define WV_IO_AH_PORT_CHECKING 0x00000040 +#define WV_IO_QP_STATE_MODIFIER 0x00000080 +#define WV_IO_SHUTDOWN_PORT 0x00000100 +#define WV_IO_INIT_TYPE 0x00000200 +#define WV_IO_PORT_ACTIVE_EVENT 0x00000400 +#define WV_IO_SYSTEM_IMAGE_GUID 0x00000800 +#define WV_IO_RC_RNR_NAK_GENERATION 0x00001000 +#define WV_IO_SRQ_RESIZE 0x00002000 +#define WV_IO_BATCH_NOTIFY_CQ 0x00004000 + +#define WV_IO_ATOMIC_NONE 0 +#define WV_IO_ATOMIC_HCA 1 +#define WV_IO_ATOMIC_NODE 2 typedef struct _WV_IO_DEVICE_ATTRIBUTES { - UINT8 FwVersion[64]; + UINT64 FwVersion; UINT64 NodeGuid; UINT64 SystemImageGuid; UINT32 VendorId; @@ -319,7 +336,7 @@ typedef struct _WV_IO_DEVICE_ATTRIBUTES UINT32 CapabilityFlags; UINT32 AtomicCapability; UINT32 PageSizeCapabilityFlags; - UINT32 MaxMrSize; + UINT64 MaxMrSize; UINT32 MaxQp; UINT32 MaxQpWr; UINT32 MaxSge; -- 2.41.0