c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * CDDL HEADER START
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 * 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 * 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 * CDDL HEADER END
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * This is the Solaris uCMA header file. This contains Solaris specific
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * data structures and defines for the sol_ucma driver.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#ifndef _SYS_IB_CLIENTS_OF_SOL_UCMA_SOL_UCMA_H
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#define _SYS_IB_CLIENTS_OF_SOL_UCMA_SOL_UCMA_H
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#include <sys/ib/clients/of/sol_ofs/sol_ofs_common.h>
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#include <sys/ib/clients/of/sol_ucma/sol_rdma_user_cm.h>
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * MAX Number of PATHS supported. This is the same as
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * supported by RDMA CM library API revisit - TBD
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * MAX Number of Listens supported
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar/* Defines for file_evt_close_flag */
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * RDMA-CM Event File structure
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikartypedef struct {
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * Events data
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * pollhead - for chpoll(9e)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * event_cv - for blocking wait at GET_EVENT
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * evt_list - List of Events
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * pending_evt_cnt - Pending Events to be pushed
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * to userland.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikartypedef enum {
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * Structure for each IDs created using rdma_create_id()
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikartypedef struct {
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar /* Channel id and user ID for this Channel */
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar /* Total events for this channel */
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar /* rdma_cm_id for this channel */
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar /* Flush QP flag for this channel */
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * UCMA Event Structure
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar * Global structure for Solaris UCMA Driver.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar /* Client Handle flag */
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#endif /* _SYS_IB_CLIENTS_OF_SOL_UCMA_SOL_UCMA_H */