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