dapl_mr_util.h revision 9517:b4839b0aa7a4
1101497Smike/*
2101497Smike * CDDL HEADER START
3101497Smike *
4101497Smike * The contents of this file are subject to the terms of the
5101497Smike * Common Development and Distribution License (the "License").
6101497Smike * You may not use this file except in compliance with the License.
7101497Smike *
8101497Smike * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9101497Smike * or http://www.opensolaris.org/os/licensing.
10101497Smike * See the License for the specific language governing permissions
11101497Smike * and limitations under the License.
12101497Smike *
13101497Smike * When distributing Covered Code, include this CDDL HEADER in each
14101497Smike * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15101497Smike * If applicable, add the following below this CDDL HEADER, with the
16101497Smike * fields enclosed by brackets "[]" replaced with your own identifying
17101497Smike * information: Portions Copyright [yyyy] [name of copyright owner]
18101497Smike *
19101497Smike * CDDL HEADER END
20101497Smike */
21101497Smike
22101497Smike/*
23101497Smike * Copyright (c) 2002-2003, Network Appliance, Inc. All rights reserved.
24101497Smike */
25101497Smike
26108637Stjr/*
27101497Smike * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
28101497Smike * Use is subject to license terms.
29101497Smike */
30101497Smike
31101497Smike/*
32101497Smike *
33101497Smike * HEADER: dapl_mr_util.h
34101497Smike *
35101497Smike * PURPOSE: Utility defs & routines for memory registration functions
36101497Smike *
37101497Smike */
38101497Smike
39101497Smike#ifndef _DAPL_MR_UTIL_H_
40101497Smike#define	_DAPL_MR_UTIL_H_
41101497Smike
42101497Smike#ifdef __cplusplus
43101497Smikeextern "C" {
44107592Sru#endif
45108087Sru
46108637Stjr#include "dapl.h"
47108637Stjr#include "dapl_hash.h"
48101497Smike
49101497Smike/*
50108637Stjr *
51101497Smike * Function Prototypes
52101497Smike *
53101497Smike */
54101497Smikeextern DAT_VADDR
55101497Smikedapl_mr_get_address(IN DAT_REGION_DESCRIPTION desc, IN DAT_MEM_TYPE type);
56101497Smike
57101497Smikeextern DAT_BOOLEAN
58107592Srudapl_mr_bounds_check(IN DAT_VADDR addr_a,
59108040Sru	IN DAT_VLEN length_a,
60101497Smike	IN DAT_VADDR addr_b, IN DAT_VLEN length_b);
61101497Smike
62101497Smike#ifdef __cplusplus
63101497Smike}
64101497Smike#endif
65101497Smike
66101497Smike#endif /* _DAPL_MR_UTIL_H_ */
67101497Smike