1*b86efd96Sagiri /*
2*b86efd96Sagiri  * CDDL HEADER START
3*b86efd96Sagiri  *
4*b86efd96Sagiri  * The contents of this file are subject to the terms of the
5*b86efd96Sagiri  * Common Development and Distribution License (the "License").
6*b86efd96Sagiri  * You may not use this file except in compliance with the License.
7*b86efd96Sagiri  *
8*b86efd96Sagiri  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*b86efd96Sagiri  * or http://www.opensolaris.org/os/licensing.
10*b86efd96Sagiri  * See the License for the specific language governing permissions
11*b86efd96Sagiri  * and limitations under the License.
12*b86efd96Sagiri  *
13*b86efd96Sagiri  * When distributing Covered Code, include this CDDL HEADER in each
14*b86efd96Sagiri  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*b86efd96Sagiri  * If applicable, add the following below this CDDL HEADER, with the
16*b86efd96Sagiri  * fields enclosed by brackets "[]" replaced with your own identifying
17*b86efd96Sagiri  * information: Portions Copyright [yyyy] [name of copyright owner]
18*b86efd96Sagiri  *
19*b86efd96Sagiri  * CDDL HEADER END
20*b86efd96Sagiri  */
21*b86efd96Sagiri /*
22*b86efd96Sagiri  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23*b86efd96Sagiri  * Use is subject to license terms.
24*b86efd96Sagiri  */
25*b86efd96Sagiri 
26*b86efd96Sagiri #ifndef	_RDS_TRANSPORT_H
27*b86efd96Sagiri #define	_RDS_TRANSPORT_H
28*b86efd96Sagiri 
29*b86efd96Sagiri #ifdef	__cplusplus
30*b86efd96Sagiri extern "C" {
31*b86efd96Sagiri #endif
32*b86efd96Sagiri 
33*b86efd96Sagiri typedef struct rds_transport_ops_s {
34*b86efd96Sagiri 	int (*rds_transport_open_ib)(void);
35*b86efd96Sagiri 	void (*rds_transport_close_ib)(void);
36*b86efd96Sagiri 	int (*rds_transport_sendmsg)(uio_t *uiop, ipaddr_t srcip,
37*b86efd96Sagiri 	    ipaddr_t destip, in_port_t sport, in_port_t dport,
38*b86efd96Sagiri 	    zoneid_t zoneid);
39*b86efd96Sagiri 	void (*rds_transport_resume_port)(in_port_t port);
40*b86efd96Sagiri 	boolean_t (*rds_transport_if_lookup_by_name)(char *if_name);
41*b86efd96Sagiri } rds_transport_ops_t;
42*b86efd96Sagiri 
43*b86efd96Sagiri extern	rds_transport_ops_t *rds_transport_ops;
44*b86efd96Sagiri extern	uint_t	UserBufferSize;
45*b86efd96Sagiri extern	uint_t	rds_rx_pkts_pending_hwm;
46*b86efd96Sagiri 
47*b86efd96Sagiri #ifdef	__cplusplus
48*b86efd96Sagiri }
49*b86efd96Sagiri #endif
50*b86efd96Sagiri 
51*b86efd96Sagiri #endif	/* _RDS_TRANSPORT_H */
52