xref: /original-bsd/sys/vm/pmap.h (revision 7f22226e)
1 /*
2  * Copyright (c) 1985, Avadis Tevanian, Jr.
3  * Copyright (c) 1987 Carnegie-Mellon University
4  * Copyright (c) 1991 Regents of the University of California.
5  * All rights reserved.
6  *
7  * This code is derived from software contributed to Berkeley by
8  * The Mach Operating System project at Carnegie-Mellon University.
9  *
10  * The CMU software License Agreement specifies the terms and conditions
11  * for use and redistribution.
12  *
13  *	@(#)pmap.h	7.1 (Berkeley) 12/05/90
14  */
15 
16 /*
17  *	Machine address mapping definitions -- machine-independent
18  *	section.  [For machine-dependent section, see "machine/pmap.h".]
19  */
20 
21 #ifndef	_PMAP_VM_
22 #define	_PMAP_VM_
23 
24 #ifdef KERNEL
25 #include "types.h"
26 #include "machine/pmap.h"
27 #else
28 #include <sys/types.h>
29 #include <machine/pmap.h>
30 #endif
31 
32 #ifdef KERNEL
33 void		pmap_bootstrap();
34 void		pmap_init();
35 vm_offset_t	pmap_map();
36 pmap_t		pmap_create();
37 pmap_t		pmap_kernel();
38 void		pmap_destroy();
39 void		pmap_reference();
40 void		pmap_remove();
41 void		pmap_remove_all();
42 void		pmap_copy_on_write();
43 void		pmap_protect();
44 void		pmap_enter();
45 vm_offset_t	pmap_extract();
46 void		pmap_update();
47 void		pmap_collect();
48 void		pmap_activate();
49 void		pmap_deactivate();
50 void		pmap_copy();
51 void		pmap_statistics();
52 void		pmap_clear_reference();
53 boolean_t	pmap_is_referenced();
54 
55 void		pmap_redzone();
56 boolean_t	pmap_access();
57 
58 extern pmap_t	kernel_pmap;
59 #endif
60 
61 #endif	_PMAP_VM_
62