home *** CD-ROM | disk | FTP | other *** search
- /*
- * $Header: /ax/networking:include/sys/dmap.h:networking 1.1 $
- * $Source: /ax/networking:include/sys/dmap.h: $
- *
- * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
- *
- * $Log: dmap.h,v $
- * Revision 1.1 95/01/11 10:19:07 kwelton
- * Initial revision
- *
- * Revision 1.4 88/11/25 11:43:13 brian
- * NDMAP increased to 128 (from 38), allowing swap space to be allocated
- * a page at a time with a max segment size of 4Mb.
- *
- * Revision 1.3 88/06/17 20:18:50 beta
- * Acorn Unix initial beta version
- *
- */
- /* @(#)dmap.h 1.2 87/05/15 3.2/4.3NFSSRC */
- /*
- * Copyright (c) 1982, 1986 Regents of the University of California.
- * All rights reserved. The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
- *
- * @(#)dmap.h 7.1 (Berkeley) 6/4/86
- */
-
- /*
- * Definitions for the mapping of virtual swap
- * space to the physical swap area - the disk map.
- */
-
- #define NDMAP 128 /* size of the swap area map. */
- /* allows 4Mb if DMMAX is one page */
-
- struct dmap
- {
- swblk_t dm_size; /* current size used by process */
- swblk_t dm_alloc; /* amount of physical swap space allocated */
- swblk_t dm_map[NDMAP]; /* first disk block number in each chunk */
- };
- #ifdef KERNEL
- struct dmap zdmap;
- int dmmin, dmmax, dmtext;
- #endif
-
- /*
- * The following structure is that ``returned''
- * from a call to vstodb().
- */
- struct dblock
- {
- swblk_t db_base; /* base of physical contig drum block */
- swblk_t db_size; /* size of block */
- };
-
- /* EOF dmap.h */
-