11.4Schristos/*	$NetBSD: vmparam.h,v 1.4 2019/03/27 17:15:29 christos Exp $	*/
21.1Skiyohara
31.1Skiyohara/*
41.1Skiyohara * Copyright (c) 1988 The Regents of the University of California.
51.1Skiyohara * All rights reserved.
61.1Skiyohara *
71.1Skiyohara * Redistribution and use in source and binary forms, with or without
81.1Skiyohara * modification, are permitted provided that the following conditions
91.1Skiyohara * are met:
101.1Skiyohara * 1. Redistributions of source code must retain the above copyright
111.1Skiyohara *    notice, this list of conditions and the following disclaimer.
121.1Skiyohara * 2. Redistributions in binary form must reproduce the above copyright
131.1Skiyohara *    notice, this list of conditions and the following disclaimer in the
141.1Skiyohara *    documentation and/or other materials provided with the distribution.
151.1Skiyohara * 3. Neither the name of the University nor the names of its contributors
161.1Skiyohara *    may be used to endorse or promote products derived from this software
171.1Skiyohara *    without specific prior written permission.
181.1Skiyohara *
191.1Skiyohara * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
201.1Skiyohara * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
211.1Skiyohara * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
221.1Skiyohara * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
231.1Skiyohara * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
241.1Skiyohara * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
251.1Skiyohara * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
261.1Skiyohara * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
271.1Skiyohara * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
281.1Skiyohara * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
291.1Skiyohara * SUCH DAMAGE.
301.1Skiyohara */
311.1Skiyohara
321.1Skiyohara#ifndef	_EPOC32_VMPARAM_H_
331.1Skiyohara#define	_EPOC32_VMPARAM_H_
341.1Skiyohara
351.1Skiyohara#include <arm/arm32/vmparam.h>
361.1Skiyohara
371.1Skiyohara/*
381.1Skiyohara * Address space constants
391.1Skiyohara */
401.1Skiyohara
411.1Skiyohara/*
421.1Skiyohara * The line between user space and kernel space
431.1Skiyohara * Mappings >= KERNEL_BASE are constant across all processes
441.1Skiyohara */
451.1Skiyohara#define	KERNEL_BASE		0xc0000000
461.1Skiyohara
471.1Skiyohara/*
481.1Skiyohara * Size of User Raw I/O map
491.1Skiyohara */
501.1Skiyohara
511.1Skiyohara#define USRIOSIZE       300
521.1Skiyohara
531.1Skiyohara/* virtual sizes (bytes) for various kernel submaps */
541.1Skiyohara
551.1Skiyohara#define VM_PHYS_SIZE		(USRIOSIZE*PAGE_SIZE)
561.1Skiyohara
571.1Skiyohara/*
581.1Skiyohara * max number of non-contig chunks of physical RAM you can have
591.1Skiyohara */
601.1Skiyohara
611.1Skiyohara#define	VM_PHYSSEG_MAX		32
621.1Skiyohara
631.1Skiyohara/*
641.1Skiyohara * when converting a physical address to a vm_page structure, we
651.1Skiyohara * want to use a binary search on the chunks of physical memory
661.1Skiyohara * to find our RAM
671.1Skiyohara */
681.1Skiyohara
691.1Skiyohara#define	VM_PHYSSEG_STRAT	VM_PSTRAT_BSEARCH
701.1Skiyohara
711.1Skiyohara/*
721.1Skiyohara * we support 2 free lists:
731.1Skiyohara *
741.1Skiyohara *	- DEFAULT for all systems
751.1Skiyohara */
761.1Skiyohara
771.1Skiyohara#define	VM_NFREELIST		1
781.1Skiyohara#define	VM_FREELIST_DEFAULT	0
791.1Skiyohara
801.1Skiyohara#endif	/* _EPOC32_VMPARAM_H_ */
81