1 /* dmap.h 4.4 82/05/04 */ 2 3 /* 4 * Definitions for the mapping of vitual swap 5 * space to the physical swap area - the disk map. 6 */ 7 8 #define NDMAP 16 /* size of the swap area map */ 9 #define DMMIN 32 /* the initial block size in clicks */ 10 #ifndef DMMAX 11 #define DMMAX 1024 /* max block size alloc on drum = .5M byte */ 12 #endif 13 #define DMTEXT 1024 /* size of blocks of pure text = .5M byte */ 14 15 struct dmap 16 { 17 swblk_t dm_size; /* current size used by process */ 18 swblk_t dm_alloc; /* amount of physical swap space allocated */ 19 swblk_t dm_map[NDMAP]; /* first disk block number in each chunk */ 20 }; 21 #ifdef KERNEL 22 struct dmap zdmap; 23 #endif 24 25 /* 26 * The following structure is that ``returned'' 27 * from a call to vstodb(). 28 */ 29 struct dblock 30 { 31 swblk_t db_base; /* base of physical contig drum block */ 32 swblk_t db_size; /* size of block */ 33 }; 34