sol_rdma_user_cm.h revision c39526b769298791ff5b0b6c5e761f49aabaeb4e
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy/*
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * CDDL HEADER START
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy *
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * The contents of this file are subject to the terms of the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Common Development and Distribution License (the "License").
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * You may not use this file except in compliance with the License.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy *
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * or http://www.opensolaris.org/os/licensing.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * See the License for the specific language governing permissions
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * and limitations under the License.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy *
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * When distributing Covered Code, include this CDDL HEADER in each
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * If applicable, add the following below this CDDL HEADER, with the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * fields enclosed by brackets "[]" replaced with your own identifying
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * information: Portions Copyright [yyyy] [name of copyright owner]
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy *
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * CDDL HEADER END
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy */
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy/*
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy */
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#ifndef _SYS_IB_CLIENTS_OF_SOL_UCMA_SOL_RDMA_USER_CM_H
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define _SYS_IB_CLIENTS_OF_SOL_UCMA_SOL_RDMA_USER_CM_H
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#ifdef __cplusplus
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyextern "C" {
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#endif
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#include <sys/ib/clients/of/ofa_solaris.h>
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#include <sys/ib/clients/of/rdma/rdma_user_cm.h>
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy/*
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Typedefs for data structures defined in rdma_user_cm.h
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy */
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_cmd_hdr sol_ucma_cmd_hdr_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_create_id sol_ucma_create_id_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_create_id_resp sol_ucma_create_id_resp_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_destroy_id sol_ucma_destroy_id_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_destroy_id_resp sol_ucma_destroy_id_resp_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_bind_addr sol_ucma_bind_addr_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_resolve_addr sol_ucma_resolve_addr_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_resolve_route sol_ucma_resolve_route_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_query_route sol_ucma_query_route_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_query_route_resp
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy sol_ucma_query_route_resp_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_connect sol_ucma_connect_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_listen sol_ucma_listen_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_accept sol_ucma_accept_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_reject sol_ucma_reject_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_disconnect sol_ucma_disconnect_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_init_qp_attr sol_ucma_init_qp_attr_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_notify sol_ucma_notify_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_join_mcast sol_ucma_join_mcast_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_get_event sol_ucma_get_event_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_event_resp sol_ucma_event_resp_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_ud_param sol_ucma_ud_param_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct rdma_ucm_set_option sol_ucma_set_option_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#pragma pack(1)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct {
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy uint64_t response;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy struct sockaddr_in6 addr;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy uint32_t id;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy} sol_ucma_bind_addr32_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct {
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy uint64_t response;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy struct sockaddr_in6 addr;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy uint32_t id;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy uint32_t reserved;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy} sol_ucma_bind_addr64_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct {
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy uint64_t response;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy uint64_t uid;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy struct sockaddr_in6 addr;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy uint32_t id;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy} sol_ucma_join_mcast32_t;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytypedef struct {
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy uint64_t response;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy uint64_t uid;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy struct sockaddr_in6 addr;
uint32_t id;
uint32_t reserved;
} sol_ucma_join_mcast64_t;
#pragma pack()
#ifdef __cplusplus
}
#endif
#endif /* _SYS_IB_CLIENTS_OF_SOL_UCMA_SOL_RDMA_USER_CM_H */