c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * CDDL HEADER START
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * The contents of this file are subject to the terms of the
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * Common Development and Distribution License (the "License").
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * You may not use this file except in compliance with the License.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * See the License for the specific language governing permissions
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * and limitations under the License.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * When distributing Covered Code, include this CDDL HEADER in each
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * If applicable, add the following below this CDDL HEADER, with the
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * fields enclosed by brackets "[]" replaced with your own identifying
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * information: Portions Copyright [yyyy] [name of copyright owner]
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * CDDL HEADER END
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Otaextern "C" {
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * If there is yet an active async event, hdl is not freed. However,
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * if the device state is IB_DEV_CLOSE, the device is about to be closed
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * so that the event should be discarded.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#define FIRE_QP_EVENT(clnt, hdl, ib_event, qpp, type) \
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#define FIRE_CQ_EVENT(clnt, hdl, ib_event, cqp, type) \
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#define IBTF2OF_PGSZ(hca_page_sz) ((hca_page_sz) << 10)
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#define OF2IBTF_STATE(s) ((enum ibt_cep_state_e)(s))
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#define OF2IBTF_PATH_MIG_STATE(s) ((ibt_cep_cmstate_t)((s)+1))
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#endif /* _SYS_IB_CLIENTS_OF_SOL_OFS_SOL_KVERB_IMPL_H */