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