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