/*
* interfaces. These are imported from the OFED header ib_user_verbs.h. Oracle
* elects to have and use the contents of ib_user_verbs.h under and governed
* by the OpenIB.org BSD license (see below for full license text). However,
* the following notice accompanied the original version of this file:
*/
/*
* Copyright (c) 2005 Topspin Communications. All rights reserved.
* Copyright (c) 2005, 2006 Cisco Systems. All rights reserved.
* Copyright (c) 2005 PathScale, Inc. All rights reserved.
* Copyright (c) 2006 Mellanox Technologies. 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
* 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.
*
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
* Increment this value if any changes that break userspace ABI
* compatibility are made.
*/
enum {
};
/*
* Make sure that all structs defined in this file remain laid out so
* that they pack the same way on 32-bit and 64-bit architectures (to
* avoid incompatibility between 32-bit userspace and 64-bit kernels).
* Specifically:
* - Do not use pointer types -- pass pointers in uint64_t instead.
* - Make sure that any structure larger than 4 bytes is padded to a
* multiple of 8 bytes. Otherwise the structure size will be
* different between 32-bit and 64-bit architectures.
*/
struct ib_uverbs_async_event_desc {
};
struct ib_uverbs_comp_event_desc {
};
/*
* All commands from userspace should start with a uint32_t command field
* followed by uint16_t in_words and out_words fields (which give the
* length of the command block and response buffer if any in 32-bit
* words). The kernel driver will read these fields first and read
* the rest of the command struct based on these value.
*/
struct ib_uverbs_cmd_hdr {
};
struct ib_uverbs_get_context {
};
struct ib_uverbs_get_context_resp {
};
struct ib_uverbs_query_device {
};
struct ib_uverbs_query_device_resp {
};
struct ib_uverbs_query_port {
};
struct ib_uverbs_query_port_resp {
};
struct ib_uverbs_query_gid {
};
struct ib_uverbs_query_gid_resp {
};
struct ib_uverbs_query_pkey {
};
struct ib_uverbs_query_pkey_resp {
};
struct ib_uverbs_alloc_pd {
};
/*
* PD responses may pass opaque data to userspace drivers, we choose a value
* larger than what any HCA requires.
*/
struct ib_uverbs_alloc_pd_resp {
};
struct ib_uverbs_dealloc_pd {
};
struct ib_uverbs_reg_mr {
};
struct ib_uverbs_reg_mr_resp {
};
struct ib_uverbs_dereg_mr {
};
struct ib_uverbs_create_comp_channel {
};
struct ib_uverbs_create_comp_channel_resp {
};
struct ib_uverbs_create_cq {
};
/*
* CQ responses pass opaque data to userspace drivers, we choose a value
* larger than what any HCA requires.
*/
struct ib_uverbs_create_cq_resp {
};
struct ib_uverbs_resize_cq {
};
struct ib_uverbs_resize_cq_resp {
};
struct ib_uverbs_poll_cq {
};
struct ib_uverbs_wc {
};
struct ib_uverbs_poll_cq_resp {
};
struct ib_uverbs_req_notify_cq {
};
struct ib_uverbs_destroy_cq {
};
struct ib_uverbs_destroy_cq_resp {
};
struct ib_uverbs_global_route {
};
struct ib_uverbs_ah_attr {
};
struct ib_uverbs_qp_attr {
/* ib_qp_cap */
};
struct ib_uverbs_create_qp {
};
/*
* QP responses pass opaque data to userspace drivers, we choose a value
* larger than what any HCA requires.
*/
struct ib_uverbs_create_qp_resp {
};
/*
* This struct needs to remain a multiple of 8 bytes to keep the
* alignment of the modify QP parameters.
*/
struct ib_uverbs_qp_dest {
};
struct ib_uverbs_query_qp {
};
struct ib_uverbs_query_qp_resp {
};
struct ib_uverbs_modify_qp {
};
struct ib_uverbs_destroy_qp {
};
struct ib_uverbs_destroy_qp_resp {
};
/*
* The ib_uverbs_sge structure isn't used anywhere, since we assume
* the ib_sge structure is packed the same way on 32-bit and 64-bit
* architectures in both kernel and user space. It's just here to
* document the ABI.
*/
struct ib_uverbs_sge {
};
struct ib_uverbs_send_wr {
union {
struct {
} rdma;
struct {
} atomic;
struct {
} ud;
} wr;
};
struct ib_uverbs_post_send {
};
struct ib_uverbs_post_send_resp {
};
struct ib_uverbs_recv_wr {
};
struct ib_uverbs_post_recv {
};
struct ib_uverbs_post_recv_resp {
};
struct ib_uverbs_post_srq_recv {
};
struct ib_uverbs_post_srq_recv_resp {
};
struct ib_uverbs_create_ah {
};
struct ib_uverbs_create_ah_resp {
};
struct ib_uverbs_destroy_ah {
};
struct ib_uverbs_attach_mcast {
};
struct ib_uverbs_detach_mcast {
};
struct ib_uverbs_create_srq {
};
/*
* SRQ responses pass opaque data to userspace drivers, we choose a value
* larger than what any HCA requires.
*/
struct ib_uverbs_create_srq_resp {
};
struct ib_uverbs_modify_srq {
};
struct ib_uverbs_query_srq {
};
struct ib_uverbs_query_srq_resp {
};
struct ib_uverbs_destroy_srq {
};
struct ib_uverbs_destroy_srq_resp {
};
#ifdef __cplusplus
}
#endif
#endif /* _SYS_IB_CLIENTS_OF_RDMA_IB_USER_VERBS_H */