delete VERBOSE #ifdef's
[unix-history] / usr / src / sys / vm / pmap.h
CommitLineData
175f072e 1/*
175f072e
KM
2 * Copyright (c) 1991 Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
0e24ad83 8 * %sccs.include.redist.c%
175f072e 9 *
4d754146 10 * @(#)pmap.h 7.10 (Berkeley) %G%
0e24ad83
KM
11 *
12 *
13 * Copyright (c) 1987, 1990 Carnegie-Mellon University.
14 * All rights reserved.
15 *
16 * Author: Avadis Tevanian, Jr.
17 *
18 * Permission to use, copy, modify and distribute this software and
19 * its documentation is hereby granted, provided that both the copyright
20 * notice and this permission notice appear in all copies of the
21 * software, derivative works or modified versions, and any portions
22 * thereof, and that both notices appear in supporting documentation.
23 *
24 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
25 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
26 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
27 *
28 * Carnegie Mellon requests users of this software to return to
29 *
30 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
31 * School of Computer Science
32 * Carnegie Mellon University
33 * Pittsburgh PA 15213-3890
34 *
35 * any improvements or extensions that they make and grant Carnegie the
36 * rights to redistribute these changes.
175f072e
KM
37 */
38
39/*
40 * Machine address mapping definitions -- machine-independent
41 * section. [For machine-dependent section, see "machine/pmap.h".]
42 */
43
44#ifndef _PMAP_VM_
45#define _PMAP_VM_
46
88682c28
KM
47/*
48 * Each machine dependent implementation is expected to
49 * keep certain statistics. They may do this anyway they
50 * so choose, but are expected to return the statistics
51 * in the following structure.
52 */
53struct pmap_statistics {
54 long resident_count; /* # of pages mapped (total)*/
55 long wired_count; /* # of pages wired */
56};
57typedef struct pmap_statistics *pmap_statistics_t;
58
175f072e 59#include <machine/pmap.h>
175f072e
KM
60
61#ifdef KERNEL
4d754146
KB
62__BEGIN_DECLS
63void *pmap_bootstrap_alloc __P((int));
64void pmap_bootstrap( /* machine dependent */ );
65void pmap_change_wiring __P((pmap_t, vm_offset_t, boolean_t));
66void pmap_clear_modify __P((vm_offset_t pa));
67void pmap_clear_reference __P((vm_offset_t pa));
68void pmap_collect __P((pmap_t));
69void pmap_copy __P((pmap_t,
70 pmap_t, vm_offset_t, vm_size_t, vm_offset_t));
71void pmap_copy_page __P((vm_offset_t, vm_offset_t));
72pmap_t pmap_create __P((vm_size_t));
73void pmap_destroy __P((pmap_t));
74void pmap_enter __P((pmap_t,
75 vm_offset_t, vm_offset_t, vm_prot_t, boolean_t));
76vm_offset_t pmap_extract __P((pmap_t, vm_offset_t));
77void pmap_init __P((vm_offset_t, vm_offset_t));
78boolean_t pmap_is_modified __P((vm_offset_t pa));
79boolean_t pmap_is_referenced __P((vm_offset_t pa));
80vm_offset_t pmap_map __P((vm_offset_t, vm_offset_t, vm_offset_t, int));
81void pmap_page_protect __P((vm_offset_t, vm_prot_t));
82void pmap_pageable __P((pmap_t,
83 vm_offset_t, vm_offset_t, boolean_t));
84vm_offset_t pmap_phys_address __P((int));
85void pmap_pinit __P((pmap_t));
86void pmap_protect __P((pmap_t,
87 vm_offset_t, vm_offset_t, vm_prot_t));
88void pmap_reference __P((pmap_t));
89void pmap_release __P((pmap_t));
90void pmap_remove __P((pmap_t, vm_offset_t, vm_offset_t));
91void pmap_update __P((void));
92void pmap_zero_page __P((vm_offset_t));
93__END_DECLS
175f072e
KM
94#endif
95
a69d0e7c 96#endif /* _PMAP_VM_ */