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.
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.
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]
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
39 #define EV_FLAG_INIT (0x01)
40 #define EV_FLAG_AGAIN (0x02)
41 #define EV_FLAG_WAKEUP (0x04)
42 #define EV_FLAG_REMOVE (0x08)
43 #define EV_FLAG_REM_P1 (0x10)
44 #define EV_FLAG_REM_P2 (0x20)
45 #define EV_FLAG_REM_P3 (0x40)
46 #define EV_FLAG_REM_P4 (0x80)
48 #define EV_FLAG_REM_P (0xF0)
50 typedef struct esi_portal
{
58 struct esi_portal
*next
;
73 /* function prototypes */
74 int esi_load(uint32_t, uchar_t
*, uint32_t);
75 int esi_add(uint32_t, uchar_t
*, uint32_t);
76 int esi_remove(uint32_t);
77 int esi_remove_obj(const isns_obj_t
*, int);
78 int verify_esi_portal();
79 uint32_t get_stopwatch(int);
80 uint32_t ev_intval(void *);
81 int ev_match(void *, uint32_t);
82 int ev_remove(void *, uint32_t, int, int);
85 int evf_again(void *);
86 int evf_wakeup(void *);
88 int evf_rem_pending(void *);
89 void evf_zero(void *);
91 void evl_append(void *);
92 void evl_strip(void *);
93 int evl_remove(uint32_t, uint32_t, int);
95 void *esi_proc(void *);
97 void portal_dies(uint32_t);
98 void reg_expiring(void *);
104 #endif /* _ISNS_ESI_H */