1*9e39c5baSBill Taylor /*
2*9e39c5baSBill Taylor  * CDDL HEADER START
3*9e39c5baSBill Taylor  *
4*9e39c5baSBill Taylor  * The contents of this file are subject to the terms of the
5*9e39c5baSBill Taylor  * Common Development and Distribution License (the "License").
6*9e39c5baSBill Taylor  * You may not use this file except in compliance with the License.
7*9e39c5baSBill Taylor  *
8*9e39c5baSBill Taylor  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*9e39c5baSBill Taylor  * or http://www.opensolaris.org/os/licensing.
10*9e39c5baSBill Taylor  * See the License for the specific language governing permissions
11*9e39c5baSBill Taylor  * and limitations under the License.
12*9e39c5baSBill Taylor  *
13*9e39c5baSBill Taylor  * When distributing Covered Code, include this CDDL HEADER in each
14*9e39c5baSBill Taylor  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*9e39c5baSBill Taylor  * If applicable, add the following below this CDDL HEADER, with the
16*9e39c5baSBill Taylor  * fields enclosed by brackets "[]" replaced with your own identifying
17*9e39c5baSBill Taylor  * information: Portions Copyright [yyyy] [name of copyright owner]
18*9e39c5baSBill Taylor  *
19*9e39c5baSBill Taylor  * CDDL HEADER END
20*9e39c5baSBill Taylor  */
21*9e39c5baSBill Taylor 
22*9e39c5baSBill Taylor /*
23*9e39c5baSBill Taylor  * Copyright (c) 2002-2003, Network Appliance, Inc. All rights reserved.
24*9e39c5baSBill Taylor  */
25*9e39c5baSBill Taylor 
26*9e39c5baSBill Taylor /*
27*9e39c5baSBill Taylor  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
28*9e39c5baSBill Taylor  * Use is subject to license terms.
29*9e39c5baSBill Taylor  */
30*9e39c5baSBill Taylor 
31*9e39c5baSBill Taylor /*
32*9e39c5baSBill Taylor  *
33*9e39c5baSBill Taylor  * HEADER: dapl_sp_util.h
34*9e39c5baSBill Taylor  *
35*9e39c5baSBill Taylor  * PURPOSE: Utility defs & routines for the PSP & RSP data structure
36*9e39c5baSBill Taylor  *
37*9e39c5baSBill Taylor  */
38*9e39c5baSBill Taylor 
39*9e39c5baSBill Taylor #ifndef _DAPL_PSP_UTIL_H_
40*9e39c5baSBill Taylor #define	_DAPL_PSP_UTIL_H_
41*9e39c5baSBill Taylor 
42*9e39c5baSBill Taylor #ifdef __cplusplus
43*9e39c5baSBill Taylor extern "C" {
44*9e39c5baSBill Taylor #endif
45*9e39c5baSBill Taylor 
46*9e39c5baSBill Taylor DAPL_SP *
47*9e39c5baSBill Taylor dapls_sp_alloc(
48*9e39c5baSBill Taylor 	IN DAPL_IA	*ia_ptr,
49*9e39c5baSBill Taylor 	IN DAT_BOOLEAN	is_psp);
50*9e39c5baSBill Taylor 
51*9e39c5baSBill Taylor void
52*9e39c5baSBill Taylor dapls_sp_free_sp(
53*9e39c5baSBill Taylor 	IN DAPL_SP	*sp_ptr);
54*9e39c5baSBill Taylor 
55*9e39c5baSBill Taylor void
56*9e39c5baSBill Taylor dapl_sp_link_cr(
57*9e39c5baSBill Taylor 	IN DAPL_SP	*sp_ptr,
58*9e39c5baSBill Taylor 	IN DAPL_CR	*cr_ptr);
59*9e39c5baSBill Taylor 
60*9e39c5baSBill Taylor DAPL_CR *dapl_sp_search_cr(
61*9e39c5baSBill Taylor 	IN DAPL_SP		*sp_ptr,
62*9e39c5baSBill Taylor 	IN  ib_cm_handle_t	ib_cm_handle);
63*9e39c5baSBill Taylor 
64*9e39c5baSBill Taylor void dapl_sp_remove_cr(
65*9e39c5baSBill Taylor 	IN  DAPL_SP		*sp_ptr,
66*9e39c5baSBill Taylor 	IN  DAPL_CR		*cr_ptr);
67*9e39c5baSBill Taylor 
68*9e39c5baSBill Taylor #ifdef __cplusplus
69*9e39c5baSBill Taylor }
70*9e39c5baSBill Taylor #endif
71*9e39c5baSBill Taylor 
72*9e39c5baSBill Taylor #endif /* _DAPL_PSP_UTIL_H_ */