/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */ /* * Copyright (c) 2017-2018, Mellanox Technologies inc. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source tree, or the * OpenIB.org BSD license below: * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * - Redistributions of source code must retain the above * copyright notice, this list of conditions and the following * disclaimer. * * - Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef IB_USER_IOCTL_VERBS_H #define IB_USER_IOCTL_VERBS_H #include <linux/types.h> #include <rdma/ib_user_verbs.h> #ifndef RDMA_UAPI_PTR #define RDMA_UAPI_PTR(_type, _name) … #endif #define IB_UVERBS_ACCESS_OPTIONAL_FIRST … #define IB_UVERBS_ACCESS_OPTIONAL_LAST … enum ib_uverbs_core_support { … }; enum ib_uverbs_access_flags { … }; enum ib_uverbs_srq_type { … }; enum ib_uverbs_wq_type { … }; enum ib_uverbs_wq_flags { … }; enum ib_uverbs_qp_type { … }; enum ib_uverbs_qp_create_flags { … }; enum ib_uverbs_query_port_cap_flags { … }; enum ib_uverbs_query_port_flags { … }; enum ib_uverbs_flow_action_esp_keymat { … }; enum ib_uverbs_flow_action_esp_keymat_aes_gcm_iv_algo { … }; struct ib_uverbs_flow_action_esp_keymat_aes_gcm { … }; enum ib_uverbs_flow_action_esp_replay { … }; struct ib_uverbs_flow_action_esp_replay_bmp { … }; enum ib_uverbs_flow_action_esp_flags { … }; struct ib_uverbs_flow_action_esp_encap { … }; struct ib_uverbs_flow_action_esp { … }; enum ib_uverbs_read_counters_flags { … }; enum ib_uverbs_advise_mr_advice { … }; enum ib_uverbs_advise_mr_flag { … }; struct ib_uverbs_query_port_resp_ex { … }; struct ib_uverbs_qp_cap { … }; enum rdma_driver_id { … }; enum ib_uverbs_gid_type { … }; struct ib_uverbs_gid_entry { … }; #endif