pmap.h revision 80708
1255579Sdes/*-
2255579Sdes * Copyright (c) 2001 Jake Burkholder.
3255579Sdes * All rights reserved.
4255579Sdes *
5255579Sdes * Redistribution and use in source and binary forms, with or without
6255579Sdes * modification, are permitted provided that the following conditions
7255579Sdes * are met:
8255579Sdes * 1. Redistributions of source code must retain the above copyright
9255579Sdes *    notice, this list of conditions and the following disclaimer.
10255579Sdes * 2. Redistributions in binary form must reproduce the above copyright
11255579Sdes *    notice, this list of conditions and the following disclaimer in the
12255579Sdes *    documentation and/or other materials provided with the distribution.
13255579Sdes *
14255579Sdes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
15255579Sdes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16255579Sdes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17255579Sdes * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
18255579Sdes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19255579Sdes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20255579Sdes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21255579Sdes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22255579Sdes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23255579Sdes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24255579Sdes * SUCH DAMAGE.
25255579Sdes *
26255579Sdes * $FreeBSD: head/sys/sparc64/include/pmap.h 80708 2001-07-31 05:45:16Z jake $
27255579Sdes */
28255579Sdes
29255579Sdes#ifndef	_MACHINE_PMAP_H_
30255579Sdes#define	_MACHINE_PMAP_H_
31255579Sdes
32255579Sdesstruct	md_page {
33255579Sdes};
34255579Sdes
35255579Sdesstruct	pmap {
36255579Sdes	struct	pmap_statistics	pm_stats;
37255579Sdes};
38255579Sdes
39255579Sdestypedef	struct pmap *pmap_t;
40255579Sdes
41255579Sdesextern	struct pmap __kernel_pmap;
42255579Sdes#define	kernel_pmap	(&__kernel_pmap)
43255579Sdes
44255579Sdes#define	pmap_resident_count(pm)	(pm->pm_stats.resident_count)
45287917Sdes
46255588Sdes#ifdef _KERNEL
47255583Sdes
48255583Sdesvm_offset_t pmap_kextract(vm_offset_t va);
49255583Sdes
50255583Sdesextern	vm_offset_t avail_start;
51255583Sdesextern	vm_offset_t avail_end;
52255579Sdesextern	vm_offset_t phys_avail[];
53255583Sdesextern	vm_offset_t virtual_avail;
54255583Sdesextern	vm_offset_t virtual_end;
55255583Sdes
56255583Sdes#endif
57255583Sdes
58255583Sdes#endif /* !_MACHINE_PMAP_H_ */
59255583Sdes