162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * Copyright (c) 2018, Mellanox Technologies inc.  All rights reserved.
362306a36Sopenharmony_ci * Copyright (c) 2020, Intel Corporation. All rights reserved.
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * This software is available to you under a choice of one of two
662306a36Sopenharmony_ci * licenses.  You may choose to be licensed under the terms of the GNU
762306a36Sopenharmony_ci * General Public License (GPL) Version 2, available from the file
862306a36Sopenharmony_ci * COPYING in the main directory of this source tree, or the
962306a36Sopenharmony_ci * OpenIB.org BSD license below:
1062306a36Sopenharmony_ci *
1162306a36Sopenharmony_ci *     Redistribution and use in source and binary forms, with or
1262306a36Sopenharmony_ci *     without modification, are permitted provided that the following
1362306a36Sopenharmony_ci *     conditions are met:
1462306a36Sopenharmony_ci *
1562306a36Sopenharmony_ci *      - Redistributions of source code must retain the above
1662306a36Sopenharmony_ci *        copyright notice, this list of conditions and the following
1762306a36Sopenharmony_ci *        disclaimer.
1862306a36Sopenharmony_ci *
1962306a36Sopenharmony_ci *      - Redistributions in binary form must reproduce the above
2062306a36Sopenharmony_ci *        copyright notice, this list of conditions and the following
2162306a36Sopenharmony_ci *        disclaimer in the documentation and/or other materials
2262306a36Sopenharmony_ci *        provided with the distribution.
2362306a36Sopenharmony_ci *
2462306a36Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
2562306a36Sopenharmony_ci * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2662306a36Sopenharmony_ci * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
2762306a36Sopenharmony_ci * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
2862306a36Sopenharmony_ci * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
2962306a36Sopenharmony_ci * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
3062306a36Sopenharmony_ci * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3162306a36Sopenharmony_ci * SOFTWARE.
3262306a36Sopenharmony_ci */
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci#ifndef IB_USER_IOCTL_CMDS_H
3562306a36Sopenharmony_ci#define IB_USER_IOCTL_CMDS_H
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci#define UVERBS_ID_NS_MASK 0xF000
3862306a36Sopenharmony_ci#define UVERBS_ID_NS_SHIFT 12
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci#define UVERBS_UDATA_DRIVER_DATA_NS	1
4162306a36Sopenharmony_ci#define UVERBS_UDATA_DRIVER_DATA_FLAG	(1UL << UVERBS_ID_NS_SHIFT)
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_cienum uverbs_default_objects {
4462306a36Sopenharmony_ci	UVERBS_OBJECT_DEVICE, /* No instances of DEVICE are allowed */
4562306a36Sopenharmony_ci	UVERBS_OBJECT_PD,
4662306a36Sopenharmony_ci	UVERBS_OBJECT_COMP_CHANNEL,
4762306a36Sopenharmony_ci	UVERBS_OBJECT_CQ,
4862306a36Sopenharmony_ci	UVERBS_OBJECT_QP,
4962306a36Sopenharmony_ci	UVERBS_OBJECT_SRQ,
5062306a36Sopenharmony_ci	UVERBS_OBJECT_AH,
5162306a36Sopenharmony_ci	UVERBS_OBJECT_MR,
5262306a36Sopenharmony_ci	UVERBS_OBJECT_MW,
5362306a36Sopenharmony_ci	UVERBS_OBJECT_FLOW,
5462306a36Sopenharmony_ci	UVERBS_OBJECT_XRCD,
5562306a36Sopenharmony_ci	UVERBS_OBJECT_RWQ_IND_TBL,
5662306a36Sopenharmony_ci	UVERBS_OBJECT_WQ,
5762306a36Sopenharmony_ci	UVERBS_OBJECT_FLOW_ACTION,
5862306a36Sopenharmony_ci	UVERBS_OBJECT_DM,
5962306a36Sopenharmony_ci	UVERBS_OBJECT_COUNTERS,
6062306a36Sopenharmony_ci	UVERBS_OBJECT_ASYNC_EVENT,
6162306a36Sopenharmony_ci};
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_cienum {
6462306a36Sopenharmony_ci	UVERBS_ATTR_UHW_IN = UVERBS_UDATA_DRIVER_DATA_FLAG,
6562306a36Sopenharmony_ci	UVERBS_ATTR_UHW_OUT,
6662306a36Sopenharmony_ci};
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_cienum uverbs_methods_device {
6962306a36Sopenharmony_ci	UVERBS_METHOD_INVOKE_WRITE,
7062306a36Sopenharmony_ci	UVERBS_METHOD_INFO_HANDLES,
7162306a36Sopenharmony_ci	UVERBS_METHOD_QUERY_PORT,
7262306a36Sopenharmony_ci	UVERBS_METHOD_GET_CONTEXT,
7362306a36Sopenharmony_ci	UVERBS_METHOD_QUERY_CONTEXT,
7462306a36Sopenharmony_ci	UVERBS_METHOD_QUERY_GID_TABLE,
7562306a36Sopenharmony_ci	UVERBS_METHOD_QUERY_GID_ENTRY,
7662306a36Sopenharmony_ci};
7762306a36Sopenharmony_ci
7862306a36Sopenharmony_cienum uverbs_attrs_invoke_write_cmd_attr_ids {
7962306a36Sopenharmony_ci	UVERBS_ATTR_CORE_IN,
8062306a36Sopenharmony_ci	UVERBS_ATTR_CORE_OUT,
8162306a36Sopenharmony_ci	UVERBS_ATTR_WRITE_CMD,
8262306a36Sopenharmony_ci};
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_cienum uverbs_attrs_query_port_cmd_attr_ids {
8562306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_PORT_PORT_NUM,
8662306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_PORT_RESP,
8762306a36Sopenharmony_ci};
8862306a36Sopenharmony_ci
8962306a36Sopenharmony_cienum uverbs_attrs_get_context_attr_ids {
9062306a36Sopenharmony_ci	UVERBS_ATTR_GET_CONTEXT_NUM_COMP_VECTORS,
9162306a36Sopenharmony_ci	UVERBS_ATTR_GET_CONTEXT_CORE_SUPPORT,
9262306a36Sopenharmony_ci};
9362306a36Sopenharmony_ci
9462306a36Sopenharmony_cienum uverbs_attrs_query_context_attr_ids {
9562306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_CONTEXT_NUM_COMP_VECTORS,
9662306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_CONTEXT_CORE_SUPPORT,
9762306a36Sopenharmony_ci};
9862306a36Sopenharmony_ci
9962306a36Sopenharmony_cienum uverbs_attrs_create_cq_cmd_attr_ids {
10062306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_CQ_HANDLE,
10162306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_CQ_CQE,
10262306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_CQ_USER_HANDLE,
10362306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_CQ_COMP_CHANNEL,
10462306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_CQ_COMP_VECTOR,
10562306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_CQ_FLAGS,
10662306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_CQ_RESP_CQE,
10762306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_CQ_EVENT_FD,
10862306a36Sopenharmony_ci};
10962306a36Sopenharmony_ci
11062306a36Sopenharmony_cienum uverbs_attrs_destroy_cq_cmd_attr_ids {
11162306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_CQ_HANDLE,
11262306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_CQ_RESP,
11362306a36Sopenharmony_ci};
11462306a36Sopenharmony_ci
11562306a36Sopenharmony_cienum uverbs_attrs_create_flow_action_esp {
11662306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_FLOW_ACTION_ESP_HANDLE,
11762306a36Sopenharmony_ci	UVERBS_ATTR_FLOW_ACTION_ESP_ATTRS,
11862306a36Sopenharmony_ci	UVERBS_ATTR_FLOW_ACTION_ESP_ESN,
11962306a36Sopenharmony_ci	UVERBS_ATTR_FLOW_ACTION_ESP_KEYMAT,
12062306a36Sopenharmony_ci	UVERBS_ATTR_FLOW_ACTION_ESP_REPLAY,
12162306a36Sopenharmony_ci	UVERBS_ATTR_FLOW_ACTION_ESP_ENCAP,
12262306a36Sopenharmony_ci};
12362306a36Sopenharmony_ci
12462306a36Sopenharmony_cienum uverbs_attrs_modify_flow_action_esp {
12562306a36Sopenharmony_ci	UVERBS_ATTR_MODIFY_FLOW_ACTION_ESP_HANDLE =
12662306a36Sopenharmony_ci		UVERBS_ATTR_CREATE_FLOW_ACTION_ESP_HANDLE,
12762306a36Sopenharmony_ci};
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_cienum uverbs_attrs_destroy_flow_action_esp {
13062306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_FLOW_ACTION_HANDLE,
13162306a36Sopenharmony_ci};
13262306a36Sopenharmony_ci
13362306a36Sopenharmony_cienum uverbs_attrs_create_qp_cmd_attr_ids {
13462306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_HANDLE,
13562306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_XRCD_HANDLE,
13662306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_PD_HANDLE,
13762306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_SRQ_HANDLE,
13862306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_SEND_CQ_HANDLE,
13962306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_RECV_CQ_HANDLE,
14062306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_IND_TABLE_HANDLE,
14162306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_USER_HANDLE,
14262306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_CAP,
14362306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_TYPE,
14462306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_FLAGS,
14562306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_SOURCE_QPN,
14662306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_EVENT_FD,
14762306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_RESP_CAP,
14862306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_QP_RESP_QP_NUM,
14962306a36Sopenharmony_ci};
15062306a36Sopenharmony_ci
15162306a36Sopenharmony_cienum uverbs_attrs_destroy_qp_cmd_attr_ids {
15262306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_QP_HANDLE,
15362306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_QP_RESP,
15462306a36Sopenharmony_ci};
15562306a36Sopenharmony_ci
15662306a36Sopenharmony_cienum uverbs_methods_qp {
15762306a36Sopenharmony_ci	UVERBS_METHOD_QP_CREATE,
15862306a36Sopenharmony_ci	UVERBS_METHOD_QP_DESTROY,
15962306a36Sopenharmony_ci};
16062306a36Sopenharmony_ci
16162306a36Sopenharmony_cienum uverbs_attrs_create_srq_cmd_attr_ids {
16262306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_SRQ_HANDLE,
16362306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_SRQ_PD_HANDLE,
16462306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_SRQ_XRCD_HANDLE,
16562306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_SRQ_CQ_HANDLE,
16662306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_SRQ_USER_HANDLE,
16762306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_SRQ_MAX_WR,
16862306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_SRQ_MAX_SGE,
16962306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_SRQ_LIMIT,
17062306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_SRQ_MAX_NUM_TAGS,
17162306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_SRQ_TYPE,
17262306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_SRQ_EVENT_FD,
17362306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_SRQ_RESP_MAX_WR,
17462306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_SRQ_RESP_MAX_SGE,
17562306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_SRQ_RESP_SRQ_NUM,
17662306a36Sopenharmony_ci};
17762306a36Sopenharmony_ci
17862306a36Sopenharmony_cienum uverbs_attrs_destroy_srq_cmd_attr_ids {
17962306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_SRQ_HANDLE,
18062306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_SRQ_RESP,
18162306a36Sopenharmony_ci};
18262306a36Sopenharmony_ci
18362306a36Sopenharmony_cienum uverbs_methods_srq {
18462306a36Sopenharmony_ci	UVERBS_METHOD_SRQ_CREATE,
18562306a36Sopenharmony_ci	UVERBS_METHOD_SRQ_DESTROY,
18662306a36Sopenharmony_ci};
18762306a36Sopenharmony_ci
18862306a36Sopenharmony_cienum uverbs_methods_cq {
18962306a36Sopenharmony_ci	UVERBS_METHOD_CQ_CREATE,
19062306a36Sopenharmony_ci	UVERBS_METHOD_CQ_DESTROY,
19162306a36Sopenharmony_ci};
19262306a36Sopenharmony_ci
19362306a36Sopenharmony_cienum uverbs_attrs_create_wq_cmd_attr_ids {
19462306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_WQ_HANDLE,
19562306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_WQ_PD_HANDLE,
19662306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_WQ_CQ_HANDLE,
19762306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_WQ_USER_HANDLE,
19862306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_WQ_TYPE,
19962306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_WQ_EVENT_FD,
20062306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_WQ_MAX_WR,
20162306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_WQ_MAX_SGE,
20262306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_WQ_FLAGS,
20362306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_WQ_RESP_MAX_WR,
20462306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_WQ_RESP_MAX_SGE,
20562306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_WQ_RESP_WQ_NUM,
20662306a36Sopenharmony_ci};
20762306a36Sopenharmony_ci
20862306a36Sopenharmony_cienum uverbs_attrs_destroy_wq_cmd_attr_ids {
20962306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_WQ_HANDLE,
21062306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_WQ_RESP,
21162306a36Sopenharmony_ci};
21262306a36Sopenharmony_ci
21362306a36Sopenharmony_cienum uverbs_methods_wq {
21462306a36Sopenharmony_ci	UVERBS_METHOD_WQ_CREATE,
21562306a36Sopenharmony_ci	UVERBS_METHOD_WQ_DESTROY,
21662306a36Sopenharmony_ci};
21762306a36Sopenharmony_ci
21862306a36Sopenharmony_cienum uverbs_methods_actions_flow_action_ops {
21962306a36Sopenharmony_ci	UVERBS_METHOD_FLOW_ACTION_ESP_CREATE,
22062306a36Sopenharmony_ci	UVERBS_METHOD_FLOW_ACTION_DESTROY,
22162306a36Sopenharmony_ci	UVERBS_METHOD_FLOW_ACTION_ESP_MODIFY,
22262306a36Sopenharmony_ci};
22362306a36Sopenharmony_ci
22462306a36Sopenharmony_cienum uverbs_attrs_alloc_dm_cmd_attr_ids {
22562306a36Sopenharmony_ci	UVERBS_ATTR_ALLOC_DM_HANDLE,
22662306a36Sopenharmony_ci	UVERBS_ATTR_ALLOC_DM_LENGTH,
22762306a36Sopenharmony_ci	UVERBS_ATTR_ALLOC_DM_ALIGNMENT,
22862306a36Sopenharmony_ci};
22962306a36Sopenharmony_ci
23062306a36Sopenharmony_cienum uverbs_attrs_free_dm_cmd_attr_ids {
23162306a36Sopenharmony_ci	UVERBS_ATTR_FREE_DM_HANDLE,
23262306a36Sopenharmony_ci};
23362306a36Sopenharmony_ci
23462306a36Sopenharmony_cienum uverbs_methods_dm {
23562306a36Sopenharmony_ci	UVERBS_METHOD_DM_ALLOC,
23662306a36Sopenharmony_ci	UVERBS_METHOD_DM_FREE,
23762306a36Sopenharmony_ci};
23862306a36Sopenharmony_ci
23962306a36Sopenharmony_cienum uverbs_attrs_reg_dm_mr_cmd_attr_ids {
24062306a36Sopenharmony_ci	UVERBS_ATTR_REG_DM_MR_HANDLE,
24162306a36Sopenharmony_ci	UVERBS_ATTR_REG_DM_MR_OFFSET,
24262306a36Sopenharmony_ci	UVERBS_ATTR_REG_DM_MR_LENGTH,
24362306a36Sopenharmony_ci	UVERBS_ATTR_REG_DM_MR_PD_HANDLE,
24462306a36Sopenharmony_ci	UVERBS_ATTR_REG_DM_MR_ACCESS_FLAGS,
24562306a36Sopenharmony_ci	UVERBS_ATTR_REG_DM_MR_DM_HANDLE,
24662306a36Sopenharmony_ci	UVERBS_ATTR_REG_DM_MR_RESP_LKEY,
24762306a36Sopenharmony_ci	UVERBS_ATTR_REG_DM_MR_RESP_RKEY,
24862306a36Sopenharmony_ci};
24962306a36Sopenharmony_ci
25062306a36Sopenharmony_cienum uverbs_methods_mr {
25162306a36Sopenharmony_ci	UVERBS_METHOD_DM_MR_REG,
25262306a36Sopenharmony_ci	UVERBS_METHOD_MR_DESTROY,
25362306a36Sopenharmony_ci	UVERBS_METHOD_ADVISE_MR,
25462306a36Sopenharmony_ci	UVERBS_METHOD_QUERY_MR,
25562306a36Sopenharmony_ci	UVERBS_METHOD_REG_DMABUF_MR,
25662306a36Sopenharmony_ci};
25762306a36Sopenharmony_ci
25862306a36Sopenharmony_cienum uverbs_attrs_mr_destroy_ids {
25962306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_MR_HANDLE,
26062306a36Sopenharmony_ci};
26162306a36Sopenharmony_ci
26262306a36Sopenharmony_cienum uverbs_attrs_advise_mr_cmd_attr_ids {
26362306a36Sopenharmony_ci	UVERBS_ATTR_ADVISE_MR_PD_HANDLE,
26462306a36Sopenharmony_ci	UVERBS_ATTR_ADVISE_MR_ADVICE,
26562306a36Sopenharmony_ci	UVERBS_ATTR_ADVISE_MR_FLAGS,
26662306a36Sopenharmony_ci	UVERBS_ATTR_ADVISE_MR_SGE_LIST,
26762306a36Sopenharmony_ci};
26862306a36Sopenharmony_ci
26962306a36Sopenharmony_cienum uverbs_attrs_query_mr_cmd_attr_ids {
27062306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_MR_HANDLE,
27162306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_MR_RESP_LKEY,
27262306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_MR_RESP_RKEY,
27362306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_MR_RESP_LENGTH,
27462306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_MR_RESP_IOVA,
27562306a36Sopenharmony_ci};
27662306a36Sopenharmony_ci
27762306a36Sopenharmony_cienum uverbs_attrs_reg_dmabuf_mr_cmd_attr_ids {
27862306a36Sopenharmony_ci	UVERBS_ATTR_REG_DMABUF_MR_HANDLE,
27962306a36Sopenharmony_ci	UVERBS_ATTR_REG_DMABUF_MR_PD_HANDLE,
28062306a36Sopenharmony_ci	UVERBS_ATTR_REG_DMABUF_MR_OFFSET,
28162306a36Sopenharmony_ci	UVERBS_ATTR_REG_DMABUF_MR_LENGTH,
28262306a36Sopenharmony_ci	UVERBS_ATTR_REG_DMABUF_MR_IOVA,
28362306a36Sopenharmony_ci	UVERBS_ATTR_REG_DMABUF_MR_FD,
28462306a36Sopenharmony_ci	UVERBS_ATTR_REG_DMABUF_MR_ACCESS_FLAGS,
28562306a36Sopenharmony_ci	UVERBS_ATTR_REG_DMABUF_MR_RESP_LKEY,
28662306a36Sopenharmony_ci	UVERBS_ATTR_REG_DMABUF_MR_RESP_RKEY,
28762306a36Sopenharmony_ci};
28862306a36Sopenharmony_ci
28962306a36Sopenharmony_cienum uverbs_attrs_create_counters_cmd_attr_ids {
29062306a36Sopenharmony_ci	UVERBS_ATTR_CREATE_COUNTERS_HANDLE,
29162306a36Sopenharmony_ci};
29262306a36Sopenharmony_ci
29362306a36Sopenharmony_cienum uverbs_attrs_destroy_counters_cmd_attr_ids {
29462306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_COUNTERS_HANDLE,
29562306a36Sopenharmony_ci};
29662306a36Sopenharmony_ci
29762306a36Sopenharmony_cienum uverbs_attrs_read_counters_cmd_attr_ids {
29862306a36Sopenharmony_ci	UVERBS_ATTR_READ_COUNTERS_HANDLE,
29962306a36Sopenharmony_ci	UVERBS_ATTR_READ_COUNTERS_BUFF,
30062306a36Sopenharmony_ci	UVERBS_ATTR_READ_COUNTERS_FLAGS,
30162306a36Sopenharmony_ci};
30262306a36Sopenharmony_ci
30362306a36Sopenharmony_cienum uverbs_methods_actions_counters_ops {
30462306a36Sopenharmony_ci	UVERBS_METHOD_COUNTERS_CREATE,
30562306a36Sopenharmony_ci	UVERBS_METHOD_COUNTERS_DESTROY,
30662306a36Sopenharmony_ci	UVERBS_METHOD_COUNTERS_READ,
30762306a36Sopenharmony_ci};
30862306a36Sopenharmony_ci
30962306a36Sopenharmony_cienum uverbs_attrs_info_handles_id {
31062306a36Sopenharmony_ci	UVERBS_ATTR_INFO_OBJECT_ID,
31162306a36Sopenharmony_ci	UVERBS_ATTR_INFO_TOTAL_HANDLES,
31262306a36Sopenharmony_ci	UVERBS_ATTR_INFO_HANDLES_LIST,
31362306a36Sopenharmony_ci};
31462306a36Sopenharmony_ci
31562306a36Sopenharmony_cienum uverbs_methods_pd {
31662306a36Sopenharmony_ci	UVERBS_METHOD_PD_DESTROY,
31762306a36Sopenharmony_ci};
31862306a36Sopenharmony_ci
31962306a36Sopenharmony_cienum uverbs_attrs_pd_destroy_ids {
32062306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_PD_HANDLE,
32162306a36Sopenharmony_ci};
32262306a36Sopenharmony_ci
32362306a36Sopenharmony_cienum uverbs_methods_mw {
32462306a36Sopenharmony_ci	UVERBS_METHOD_MW_DESTROY,
32562306a36Sopenharmony_ci};
32662306a36Sopenharmony_ci
32762306a36Sopenharmony_cienum uverbs_attrs_mw_destroy_ids {
32862306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_MW_HANDLE,
32962306a36Sopenharmony_ci};
33062306a36Sopenharmony_ci
33162306a36Sopenharmony_cienum uverbs_methods_xrcd {
33262306a36Sopenharmony_ci	UVERBS_METHOD_XRCD_DESTROY,
33362306a36Sopenharmony_ci};
33462306a36Sopenharmony_ci
33562306a36Sopenharmony_cienum uverbs_attrs_xrcd_destroy_ids {
33662306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_XRCD_HANDLE,
33762306a36Sopenharmony_ci};
33862306a36Sopenharmony_ci
33962306a36Sopenharmony_cienum uverbs_methods_ah {
34062306a36Sopenharmony_ci	UVERBS_METHOD_AH_DESTROY,
34162306a36Sopenharmony_ci};
34262306a36Sopenharmony_ci
34362306a36Sopenharmony_cienum uverbs_attrs_ah_destroy_ids {
34462306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_AH_HANDLE,
34562306a36Sopenharmony_ci};
34662306a36Sopenharmony_ci
34762306a36Sopenharmony_cienum uverbs_methods_rwq_ind_tbl {
34862306a36Sopenharmony_ci	UVERBS_METHOD_RWQ_IND_TBL_DESTROY,
34962306a36Sopenharmony_ci};
35062306a36Sopenharmony_ci
35162306a36Sopenharmony_cienum uverbs_attrs_rwq_ind_tbl_destroy_ids {
35262306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_RWQ_IND_TBL_HANDLE,
35362306a36Sopenharmony_ci};
35462306a36Sopenharmony_ci
35562306a36Sopenharmony_cienum uverbs_methods_flow {
35662306a36Sopenharmony_ci	UVERBS_METHOD_FLOW_DESTROY,
35762306a36Sopenharmony_ci};
35862306a36Sopenharmony_ci
35962306a36Sopenharmony_cienum uverbs_attrs_flow_destroy_ids {
36062306a36Sopenharmony_ci	UVERBS_ATTR_DESTROY_FLOW_HANDLE,
36162306a36Sopenharmony_ci};
36262306a36Sopenharmony_ci
36362306a36Sopenharmony_cienum uverbs_method_async_event {
36462306a36Sopenharmony_ci	UVERBS_METHOD_ASYNC_EVENT_ALLOC,
36562306a36Sopenharmony_ci};
36662306a36Sopenharmony_ci
36762306a36Sopenharmony_cienum uverbs_attrs_async_event_create {
36862306a36Sopenharmony_ci	UVERBS_ATTR_ASYNC_EVENT_ALLOC_FD_HANDLE,
36962306a36Sopenharmony_ci};
37062306a36Sopenharmony_ci
37162306a36Sopenharmony_cienum uverbs_attrs_query_gid_table_cmd_attr_ids {
37262306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_GID_TABLE_ENTRY_SIZE,
37362306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_GID_TABLE_FLAGS,
37462306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_GID_TABLE_RESP_ENTRIES,
37562306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_GID_TABLE_RESP_NUM_ENTRIES,
37662306a36Sopenharmony_ci};
37762306a36Sopenharmony_ci
37862306a36Sopenharmony_cienum uverbs_attrs_query_gid_entry_cmd_attr_ids {
37962306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_GID_ENTRY_PORT,
38062306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_GID_ENTRY_GID_INDEX,
38162306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_GID_ENTRY_FLAGS,
38262306a36Sopenharmony_ci	UVERBS_ATTR_QUERY_GID_ENTRY_RESP_ENTRY,
38362306a36Sopenharmony_ci};
38462306a36Sopenharmony_ci
38562306a36Sopenharmony_ci#endif
386