xref: /netbsd-src/sys/arch/zaurus/include/vmparam.h (revision 2688b45919104063fe0cb59463eebf907599f0ac)
1*2688b459Schristos /*	$NetBSD: vmparam.h,v 1.7 2019/03/27 17:15:30 christos Exp $	*/
2c657d486Sober 
3c657d486Sober /*
4c657d486Sober  * Copyright (c) 1988 The Regents of the University of California.
5c657d486Sober  * All rights reserved.
6c657d486Sober  *
7c657d486Sober  * Redistribution and use in source and binary forms, with or without
8c657d486Sober  * modification, are permitted provided that the following conditions
9c657d486Sober  * are met:
10c657d486Sober  * 1. Redistributions of source code must retain the above copyright
11c657d486Sober  *    notice, this list of conditions and the following disclaimer.
12c657d486Sober  * 2. Redistributions in binary form must reproduce the above copyright
13c657d486Sober  *    notice, this list of conditions and the following disclaimer in the
14c657d486Sober  *    documentation and/or other materials provided with the distribution.
15c657d486Sober  * 3. Neither the name of the University nor the names of its contributors
16c657d486Sober  *    may be used to endorse or promote products derived from this software
17c657d486Sober  *    without specific prior written permission.
18c657d486Sober  *
19c657d486Sober  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20c657d486Sober  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21c657d486Sober  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22c657d486Sober  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23c657d486Sober  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24c657d486Sober  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25c657d486Sober  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26c657d486Sober  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27c657d486Sober  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28c657d486Sober  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29c657d486Sober  * SUCH DAMAGE.
30c657d486Sober  */
31c657d486Sober 
32c657d486Sober #ifndef	_ZAURUS_VMPARAM_H_
33c657d486Sober #define	_ZAURUS_VMPARAM_H_
34c657d486Sober 
35c657d486Sober #include <arm/arm32/vmparam.h>
36c657d486Sober 
37c657d486Sober /*
38c657d486Sober  * Address space constants
39c657d486Sober  */
40c657d486Sober 
41c657d486Sober /*
42c657d486Sober  * The line between user space and kernel space
43c657d486Sober  * Mappings >= KERNEL_BASE are constant across all processes
44c657d486Sober  */
45c657d486Sober #define	KERNEL_BASE		0xc0000000
46c657d486Sober 
47c657d486Sober /*
48c657d486Sober  * Size of User Raw I/O map
49c657d486Sober  */
50c657d486Sober 
51c657d486Sober #define USRIOSIZE       300
52c657d486Sober 
53c657d486Sober /* virtual sizes (bytes) for various kernel submaps */
54c657d486Sober 
55c657d486Sober #define VM_PHYS_SIZE		(USRIOSIZE*PAGE_SIZE)
56c657d486Sober 
57c657d486Sober /*
58c657d486Sober  * max number of non-contig chunks of physical RAM you can have
59c657d486Sober  */
60c657d486Sober 
61c657d486Sober #define	VM_PHYSSEG_MAX		32
62c657d486Sober 
63c657d486Sober /*
64c657d486Sober  * when converting a physical address to a vm_page structure, we
65c657d486Sober  * want to use a binary search on the chunks of physical memory
66c657d486Sober  * to find our RAM
67c657d486Sober  */
68c657d486Sober 
69c657d486Sober #define	VM_PHYSSEG_STRAT	VM_PSTRAT_BSEARCH
70c657d486Sober 
71c657d486Sober /*
72c657d486Sober  * we support 2 free lists:
73c657d486Sober  *
74c657d486Sober  *	- DEFAULT for all systems
7581f10ee7Sskrll  *	- ISADMA for the ISA DMA range
76c657d486Sober  */
77c657d486Sober 
78c657d486Sober #define	VM_NFREELIST		2
79c657d486Sober #define	VM_FREELIST_DEFAULT	0
80c657d486Sober #define	VM_FREELIST_ISADMA	1
81c657d486Sober 
82c657d486Sober #endif	/* _ZAURUS_VMPARAM_H_ */
83