xref: /original-bsd/sys/sys/dmap.h (revision 333da485)
1 /*-
2  * Copyright (c) 1982, 1986, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)dmap.h	8.2 (Berkeley) 01/04/94
8  */
9 
10 #ifndef _SYS_DMAP_H_
11 #define	_SYS_DMAP_H_
12 
13 /*
14  * Definitions for the mapping of vitual swap space to the physical swap
15  * area - the disk map.
16  */
17 #define	NDMAP	38		/* size of the swap area map */
18 
19 struct dmap {
20 	swblk_t dm_size;	/* current size used by process */
21 	swblk_t dm_alloc;	/* amount of physical swap space allocated */
22 	swblk_t dm_map[NDMAP];	/* first disk block number in each chunk */
23 };
24 #ifdef KERNEL
25 struct dmap zdmap;
26 int dmmin, dmmax, dmtext;
27 #endif
28 
29 /* The following structure is that ``returned'' from a call to vstodb(). */
30 struct dblock {
31 	swblk_t db_base;	/* base of physical contig drum block */
32 	swblk_t db_size;	/* size of block */
33 };
34 #endif	/* !_SYS_DMAP_H_ */
35