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