1*c39526b7SPramod Gunjikar /* 2*c39526b7SPramod Gunjikar * CDDL HEADER START 3*c39526b7SPramod Gunjikar * 4*c39526b7SPramod Gunjikar * The contents of this file are subject to the terms of the 5*c39526b7SPramod Gunjikar * Common Development and Distribution License (the "License"). 6*c39526b7SPramod Gunjikar * You may not use this file except in compliance with the License. 7*c39526b7SPramod Gunjikar * 8*c39526b7SPramod Gunjikar * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*c39526b7SPramod Gunjikar * or http://www.opensolaris.org/os/licensing. 10*c39526b7SPramod Gunjikar * See the License for the specific language governing permissions 11*c39526b7SPramod Gunjikar * and limitations under the License. 12*c39526b7SPramod Gunjikar * 13*c39526b7SPramod Gunjikar * When distributing Covered Code, include this CDDL HEADER in each 14*c39526b7SPramod Gunjikar * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*c39526b7SPramod Gunjikar * If applicable, add the following below this CDDL HEADER, with the 16*c39526b7SPramod Gunjikar * fields enclosed by brackets "[]" replaced with your own identifying 17*c39526b7SPramod Gunjikar * information: Portions Copyright [yyyy] [name of copyright owner] 18*c39526b7SPramod Gunjikar * 19*c39526b7SPramod Gunjikar * CDDL HEADER END 20*c39526b7SPramod Gunjikar */ 21*c39526b7SPramod Gunjikar 22*c39526b7SPramod Gunjikar /* 23*c39526b7SPramod Gunjikar * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 24*c39526b7SPramod Gunjikar */ 25*c39526b7SPramod Gunjikar 26*c39526b7SPramod Gunjikar #ifndef _SYS_IB_CLIENTS_OF_SOL_UVERBS_SOL_UVERBS_EVENT_H 27*c39526b7SPramod Gunjikar #define _SYS_IB_CLIENTS_OF_SOL_UVERBS_SOL_UVERBS_EVENT_H 28*c39526b7SPramod Gunjikar 29*c39526b7SPramod Gunjikar #ifdef __cplusplus 30*c39526b7SPramod Gunjikar extern "C" { 31*c39526b7SPramod Gunjikar #endif 32*c39526b7SPramod Gunjikar 33*c39526b7SPramod Gunjikar /* 34*c39526b7SPramod Gunjikar * 35*c39526b7SPramod Gunjikar * NAME: sol_uverbs_event.h 36*c39526b7SPramod Gunjikar * 37*c39526b7SPramod Gunjikar * DESC: Solaris User Verbs Kernel Async Event structures and definitions. 38*c39526b7SPramod Gunjikar * 39*c39526b7SPramod Gunjikar */ 40*c39526b7SPramod Gunjikar 41*c39526b7SPramod Gunjikar 42*c39526b7SPramod Gunjikar /* 43*c39526b7SPramod Gunjikar * Functions - See sol_uverbs_event.c for descriptions. 44*c39526b7SPramod Gunjikar */ 45*c39526b7SPramod Gunjikar uverbs_ufile_uobj_t *uverbs_alloc_event_file(uverbs_uctxt_uobj_t *uctxt, 46*c39526b7SPramod Gunjikar int is_async); 47*c39526b7SPramod Gunjikar 48*c39526b7SPramod Gunjikar void uverbs_release_event_file(sol_ofs_uobj_t *uobj); 49*c39526b7SPramod Gunjikar 50*c39526b7SPramod Gunjikar void uverbs_async_event_handler(void *clnt_private, ibt_hca_hdl_t hca_hdl, 51*c39526b7SPramod Gunjikar ibt_async_code_t code, ibt_async_event_t *event); 52*c39526b7SPramod Gunjikar 53*c39526b7SPramod Gunjikar void uverbs_release_ucq_channel(uverbs_uctxt_uobj_t *uctxt, 54*c39526b7SPramod Gunjikar uverbs_ufile_uobj_t *comp_chan, uverbs_ucq_uobj_t *ucq); 55*c39526b7SPramod Gunjikar 56*c39526b7SPramod Gunjikar void uverbs_release_ucq_uevents(uverbs_ufile_uobj_t *ev_file, 57*c39526b7SPramod Gunjikar uverbs_ucq_uobj_t *ucq); 58*c39526b7SPramod Gunjikar 59*c39526b7SPramod Gunjikar void uverbs_release_uqp_uevents(uverbs_ufile_uobj_t *ev_file, 60*c39526b7SPramod Gunjikar uverbs_uqp_uobj_t *uqp); 61*c39526b7SPramod Gunjikar 62*c39526b7SPramod Gunjikar void uverbs_release_usrq_uevents(uverbs_ufile_uobj_t *ev_file, 63*c39526b7SPramod Gunjikar uverbs_usrq_uobj_t *usrq); 64*c39526b7SPramod Gunjikar 65*c39526b7SPramod Gunjikar void sol_uverbs_event_file_close(uverbs_ufile_uobj_t *); 66*c39526b7SPramod Gunjikar 67*c39526b7SPramod Gunjikar int sol_uverbs_event_file_read(uverbs_ufile_uobj_t *, struct uio *uiop, 68*c39526b7SPramod Gunjikar cred_t *cred); 69*c39526b7SPramod Gunjikar 70*c39526b7SPramod Gunjikar int sol_uverbs_event_file_poll(uverbs_ufile_uobj_t *, short events, int anyyet, 71*c39526b7SPramod Gunjikar short *reventsp, pollhead_t **phpp); 72*c39526b7SPramod Gunjikar 73*c39526b7SPramod Gunjikar #ifdef __cplusplus 74*c39526b7SPramod Gunjikar } 75*c39526b7SPramod Gunjikar #endif 76*c39526b7SPramod Gunjikar #endif /* _SYS_IB_CLIENTS_OF_SOL_UVERBS_SOL_UVERBS_EVENT_H */ 77