diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mlx4/cmd.h | 1 | ||||
-rw-r--r-- | include/linux/mlx4/device.h | 6 | ||||
-rw-r--r-- | include/rdma/ib_cm.h | 12 | ||||
-rw-r--r-- | include/rdma/ib_mad.h | 2 | ||||
-rw-r--r-- | include/rdma/ib_smi.h | 34 |
5 files changed, 29 insertions, 26 deletions
diff --git a/include/linux/mlx4/cmd.h b/include/linux/mlx4/cmd.h index cf9c679ab38b..0f82293a82ed 100644 --- a/include/linux/mlx4/cmd.h +++ b/include/linux/mlx4/cmd.h | |||
@@ -55,6 +55,7 @@ enum { | |||
55 | MLX4_CMD_CLOSE_PORT = 0xa, | 55 | MLX4_CMD_CLOSE_PORT = 0xa, |
56 | MLX4_CMD_QUERY_HCA = 0xb, | 56 | MLX4_CMD_QUERY_HCA = 0xb, |
57 | MLX4_CMD_QUERY_PORT = 0x43, | 57 | MLX4_CMD_QUERY_PORT = 0x43, |
58 | MLX4_CMD_SENSE_PORT = 0x4d, | ||
58 | MLX4_CMD_SET_PORT = 0xc, | 59 | MLX4_CMD_SET_PORT = 0xc, |
59 | MLX4_CMD_ACCESS_DDR = 0x2e, | 60 | MLX4_CMD_ACCESS_DDR = 0x2e, |
60 | MLX4_CMD_MAP_ICM = 0xffa, | 61 | MLX4_CMD_MAP_ICM = 0xffa, |
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 8f659cc29960..3aff8a6a389e 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
@@ -155,8 +155,9 @@ enum mlx4_qp_region { | |||
155 | }; | 155 | }; |
156 | 156 | ||
157 | enum mlx4_port_type { | 157 | enum mlx4_port_type { |
158 | MLX4_PORT_TYPE_IB = 1 << 0, | 158 | MLX4_PORT_TYPE_IB = 1, |
159 | MLX4_PORT_TYPE_ETH = 1 << 1, | 159 | MLX4_PORT_TYPE_ETH = 2, |
160 | MLX4_PORT_TYPE_AUTO = 3 | ||
160 | }; | 161 | }; |
161 | 162 | ||
162 | enum mlx4_special_vlan_idx { | 163 | enum mlx4_special_vlan_idx { |
@@ -237,6 +238,7 @@ struct mlx4_caps { | |||
237 | enum mlx4_port_type port_type[MLX4_MAX_PORTS + 1]; | 238 | enum mlx4_port_type port_type[MLX4_MAX_PORTS + 1]; |
238 | u8 supported_type[MLX4_MAX_PORTS + 1]; | 239 | u8 supported_type[MLX4_MAX_PORTS + 1]; |
239 | u32 port_mask; | 240 | u32 port_mask; |
241 | enum mlx4_port_type possible_type[MLX4_MAX_PORTS + 1]; | ||
240 | }; | 242 | }; |
241 | 243 | ||
242 | struct mlx4_buf_list { | 244 | struct mlx4_buf_list { |
diff --git a/include/rdma/ib_cm.h b/include/rdma/ib_cm.h index ec7c6d99ed3f..938858304300 100644 --- a/include/rdma/ib_cm.h +++ b/include/rdma/ib_cm.h | |||
@@ -314,12 +314,12 @@ struct ib_cm_id *ib_create_cm_id(struct ib_device *device, | |||
314 | */ | 314 | */ |
315 | void ib_destroy_cm_id(struct ib_cm_id *cm_id); | 315 | void ib_destroy_cm_id(struct ib_cm_id *cm_id); |
316 | 316 | ||
317 | #define IB_SERVICE_ID_AGN_MASK __constant_cpu_to_be64(0xFF00000000000000ULL) | 317 | #define IB_SERVICE_ID_AGN_MASK cpu_to_be64(0xFF00000000000000ULL) |
318 | #define IB_CM_ASSIGN_SERVICE_ID __constant_cpu_to_be64(0x0200000000000000ULL) | 318 | #define IB_CM_ASSIGN_SERVICE_ID cpu_to_be64(0x0200000000000000ULL) |
319 | #define IB_CMA_SERVICE_ID __constant_cpu_to_be64(0x0000000001000000ULL) | 319 | #define IB_CMA_SERVICE_ID cpu_to_be64(0x0000000001000000ULL) |
320 | #define IB_CMA_SERVICE_ID_MASK __constant_cpu_to_be64(0xFFFFFFFFFF000000ULL) | 320 | #define IB_CMA_SERVICE_ID_MASK cpu_to_be64(0xFFFFFFFFFF000000ULL) |
321 | #define IB_SDP_SERVICE_ID __constant_cpu_to_be64(0x0000000000010000ULL) | 321 | #define IB_SDP_SERVICE_ID cpu_to_be64(0x0000000000010000ULL) |
322 | #define IB_SDP_SERVICE_ID_MASK __constant_cpu_to_be64(0xFFFFFFFFFFFF0000ULL) | 322 | #define IB_SDP_SERVICE_ID_MASK cpu_to_be64(0xFFFFFFFFFFFF0000ULL) |
323 | 323 | ||
324 | struct ib_cm_compare_data { | 324 | struct ib_cm_compare_data { |
325 | u8 data[IB_CM_COMPARE_SIZE]; | 325 | u8 data[IB_CM_COMPARE_SIZE]; |
diff --git a/include/rdma/ib_mad.h b/include/rdma/ib_mad.h index 1a0f409f1700..d3b9401b77b0 100644 --- a/include/rdma/ib_mad.h +++ b/include/rdma/ib_mad.h | |||
@@ -107,7 +107,7 @@ | |||
107 | #define IB_MGMT_RMPP_STATUS_ABORT_MAX 127 | 107 | #define IB_MGMT_RMPP_STATUS_ABORT_MAX 127 |
108 | 108 | ||
109 | #define IB_QP0 0 | 109 | #define IB_QP0 0 |
110 | #define IB_QP1 __constant_htonl(1) | 110 | #define IB_QP1 cpu_to_be32(1) |
111 | #define IB_QP1_QKEY 0x80010000 | 111 | #define IB_QP1_QKEY 0x80010000 |
112 | #define IB_QP_SET_QKEY 0x80000000 | 112 | #define IB_QP_SET_QKEY 0x80000000 |
113 | 113 | ||
diff --git a/include/rdma/ib_smi.h b/include/rdma/ib_smi.h index aaca0878668f..98b9086d769a 100644 --- a/include/rdma/ib_smi.h +++ b/include/rdma/ib_smi.h | |||
@@ -63,25 +63,25 @@ struct ib_smp { | |||
63 | u8 return_path[IB_SMP_MAX_PATH_HOPS]; | 63 | u8 return_path[IB_SMP_MAX_PATH_HOPS]; |
64 | } __attribute__ ((packed)); | 64 | } __attribute__ ((packed)); |
65 | 65 | ||
66 | #define IB_SMP_DIRECTION __constant_htons(0x8000) | 66 | #define IB_SMP_DIRECTION cpu_to_be16(0x8000) |
67 | 67 | ||
68 | /* Subnet management attributes */ | 68 | /* Subnet management attributes */ |
69 | #define IB_SMP_ATTR_NOTICE __constant_htons(0x0002) | 69 | #define IB_SMP_ATTR_NOTICE cpu_to_be16(0x0002) |
70 | #define IB_SMP_ATTR_NODE_DESC __constant_htons(0x0010) | 70 | #define IB_SMP_ATTR_NODE_DESC cpu_to_be16(0x0010) |
71 | #define IB_SMP_ATTR_NODE_INFO __constant_htons(0x0011) | 71 | #define IB_SMP_ATTR_NODE_INFO cpu_to_be16(0x0011) |
72 | #define IB_SMP_ATTR_SWITCH_INFO __constant_htons(0x0012) | 72 | #define IB_SMP_ATTR_SWITCH_INFO cpu_to_be16(0x0012) |
73 | #define IB_SMP_ATTR_GUID_INFO __constant_htons(0x0014) | 73 | #define IB_SMP_ATTR_GUID_INFO cpu_to_be16(0x0014) |
74 | #define IB_SMP_ATTR_PORT_INFO __constant_htons(0x0015) | 74 | #define IB_SMP_ATTR_PORT_INFO cpu_to_be16(0x0015) |
75 | #define IB_SMP_ATTR_PKEY_TABLE __constant_htons(0x0016) | 75 | #define IB_SMP_ATTR_PKEY_TABLE cpu_to_be16(0x0016) |
76 | #define IB_SMP_ATTR_SL_TO_VL_TABLE __constant_htons(0x0017) | 76 | #define IB_SMP_ATTR_SL_TO_VL_TABLE cpu_to_be16(0x0017) |
77 | #define IB_SMP_ATTR_VL_ARB_TABLE __constant_htons(0x0018) | 77 | #define IB_SMP_ATTR_VL_ARB_TABLE cpu_to_be16(0x0018) |
78 | #define IB_SMP_ATTR_LINEAR_FORWARD_TABLE __constant_htons(0x0019) | 78 | #define IB_SMP_ATTR_LINEAR_FORWARD_TABLE cpu_to_be16(0x0019) |
79 | #define IB_SMP_ATTR_RANDOM_FORWARD_TABLE __constant_htons(0x001A) | 79 | #define IB_SMP_ATTR_RANDOM_FORWARD_TABLE cpu_to_be16(0x001A) |
80 | #define IB_SMP_ATTR_MCAST_FORWARD_TABLE __constant_htons(0x001B) | 80 | #define IB_SMP_ATTR_MCAST_FORWARD_TABLE cpu_to_be16(0x001B) |
81 | #define IB_SMP_ATTR_SM_INFO __constant_htons(0x0020) | 81 | #define IB_SMP_ATTR_SM_INFO cpu_to_be16(0x0020) |
82 | #define IB_SMP_ATTR_VENDOR_DIAG __constant_htons(0x0030) | 82 | #define IB_SMP_ATTR_VENDOR_DIAG cpu_to_be16(0x0030) |
83 | #define IB_SMP_ATTR_LED_INFO __constant_htons(0x0031) | 83 | #define IB_SMP_ATTR_LED_INFO cpu_to_be16(0x0031) |
84 | #define IB_SMP_ATTR_VENDOR_MASK __constant_htons(0xFF00) | 84 | #define IB_SMP_ATTR_VENDOR_MASK cpu_to_be16(0xFF00) |
85 | 85 | ||
86 | struct ib_port_info { | 86 | struct ib_port_info { |
87 | __be64 mkey; | 87 | __be64 mkey; |