vmparam.h revision 1.9
1/*	$NetBSD: vmparam.h,v 1.9 2002/12/10 05:14:32 thorpej Exp $	*/
2
3#ifndef OLDPMAP
4#include <powerpc/mpc6xx/vmparam.h>
5#else
6/*-
7 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
8 * Copyright (C) 1995, 1996 TooLs GmbH.
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 *    notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 *    notice, this list of conditions and the following disclaimer in the
18 *    documentation and/or other materials provided with the distribution.
19 * 3. All advertising materials mentioning features or use of this software
20 *    must display the following acknowledgement:
21 *	This product includes software developed by TooLs GmbH.
22 * 4. The name of TooLs GmbH may not be used to endorse or promote products
23 *    derived from this software without specific prior written permission.
24 *
25 * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
26 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
27 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
28 * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
29 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
30 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
31 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
32 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
33 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
34 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 */
36
37#ifndef	_MACHINE_VMPARAM_H_
38#define	_MACHINE_VMPARAM_H_
39
40#define	USRSTACK	VM_MAXUSER_ADDRESS
41
42#ifndef	MAXTSIZ
43#define	MAXTSIZ		(64*1024*1024)		/* max text size */
44#endif
45
46#ifndef	DFLDSIZ
47#define	DFLDSIZ		(128*1024*1024)		/* default data size */
48#endif
49
50#ifndef	MAXDSIZ
51#define	MAXDSIZ		(1*1024*1024*1024)	/* max data size */
52#endif
53
54#ifndef	DFLSSIZ
55#define	DFLSSIZ		(2*1024*1024)		/* default stack size */
56#endif
57
58#ifndef	MAXSSIZ
59#define	MAXSSIZ		(32*1024*1024)		/* max stack size */
60#endif
61
62/*
63 * Size of shared memory map
64 */
65#ifndef	SHMMAXPGS
66#define	SHMMAXPGS	1024
67#endif
68
69/*
70 * Size of User Raw I/O map
71 */
72#define	USRIOSIZE	1024
73
74/*
75 * Would like to have MAX addresses = 0, but this doesn't (currently) work
76 */
77#define	VM_MIN_ADDRESS		((vaddr_t)0)
78#define	VM_MAXUSER_ADDRESS	((vaddr_t)0xfffff000)
79#define	VM_MAX_ADDRESS		VM_MAXUSER_ADDRESS
80#define	VM_MIN_KERNEL_ADDRESS	((vaddr_t)(KERNEL_SR << ADDR_SR_SHFT))
81#define	VM_MAX_KERNEL_ADDRESS	(VM_MIN_KERNEL_ADDRESS + SEGMENT_LENGTH - 1)
82
83#define	VM_PHYS_SIZE		(USRIOSIZE * NBPG)
84
85#define	__HAVE_PMAP_PHYSSEG
86
87#ifndef _LOCORE
88struct pmap_physseg {
89	struct pv_entry *pvent;
90	char *attrs;
91};
92#endif
93
94#define VM_PHYSSEG_MAX		32
95#define VM_PHYSSEG_STRAT	VM_PSTRAT_BSEARCH
96#define VM_PHYSSEG_NOADD		/* can't add RAM after vm_mem_init */
97
98#define VM_NFREELIST		1
99#define VM_FREELIST_DEFAULT	0
100
101#endif /* _MACHINE_VMPARAM_H_ */
102#endif
103