xref: /minix3/minix/servers/vm/glo.h (revision 129adfeb539ca3844b1e1d755bfe5e193eb4bb5d)
1*129adfebSDavid van Moolenbroek #ifndef _VM_GLO_H
2*129adfebSDavid van Moolenbroek #define _VM_GLO_H
3433d6423SLionel Sambuc 
4433d6423SLionel Sambuc #include <minix/sys_config.h>
5433d6423SLionel Sambuc #include <minix/type.h>
6433d6423SLionel Sambuc #include <minix/param.h>
7433d6423SLionel Sambuc #include <sys/stat.h>
8433d6423SLionel Sambuc 
9433d6423SLionel Sambuc #include "vm.h"
10433d6423SLionel Sambuc #include "vmproc.h"
11433d6423SLionel Sambuc 
12433d6423SLionel Sambuc #if _MAIN
13433d6423SLionel Sambuc #undef EXTERN
14433d6423SLionel Sambuc #define EXTERN
15433d6423SLionel Sambuc #endif
16433d6423SLionel Sambuc 
17433d6423SLionel Sambuc #define VMP_EXECTMP	_NR_PROCS
18433d6423SLionel Sambuc #define VMP_NR		_NR_PROCS+1
19433d6423SLionel Sambuc 
20433d6423SLionel Sambuc EXTERN struct vmproc vmproc[VMP_NR];
21433d6423SLionel Sambuc 
22433d6423SLionel Sambuc long enable_filemap;
23433d6423SLionel Sambuc 
24*129adfebSDavid van Moolenbroek typedef kinfo_t ixfer_kinfo_t;
25*129adfebSDavid van Moolenbroek EXTERN ixfer_kinfo_t kernel_boot_info;
26433d6423SLionel Sambuc 
27433d6423SLionel Sambuc #if SANITYCHECKS
28433d6423SLionel Sambuc EXTERN int nocheck;
29433d6423SLionel Sambuc EXTERN int incheck;
30433d6423SLionel Sambuc EXTERN int sc_lastline;
31433d6423SLionel Sambuc EXTERN const char *sc_lastfile;
32433d6423SLionel Sambuc #endif
33433d6423SLionel Sambuc 
34433d6423SLionel Sambuc extern struct minix_kerninfo *_minix_kerninfo;
35433d6423SLionel Sambuc 
36433d6423SLionel Sambuc /* mem types */
37433d6423SLionel Sambuc EXTERN  mem_type_t mem_type_anon,       /* anonymous memory */
38433d6423SLionel Sambuc         mem_type_directphys,		/* direct physical mapping memory */
39433d6423SLionel Sambuc 	mem_type_anon_contig,		/* physically contig anon memory */
40433d6423SLionel Sambuc 	mem_type_cache,			/* disk cache */
41433d6423SLionel Sambuc 	mem_type_mappedfile,		/* memory with file contents */
42433d6423SLionel Sambuc 	mem_type_shared;		/* memory shared by multiple processes */
43433d6423SLionel Sambuc 
44433d6423SLionel Sambuc /* total number of memory pages */
45433d6423SLionel Sambuc EXTERN int total_pages;
4663483e02SCristiano Giuffrida EXTERN int num_vm_instances;
47*129adfebSDavid van Moolenbroek 
48*129adfebSDavid van Moolenbroek #endif /* !_VM_GLO_H */
49