1*2688b459Schristos /* $NetBSD: vmparam.h,v 1.8 2019/03/27 17:15:29 christos Exp $ */ 20560d8b9Sgavan 30560d8b9Sgavan /* 40560d8b9Sgavan * Copyright (c) 1988 The Regents of the University of California. 50560d8b9Sgavan * All rights reserved. 60560d8b9Sgavan * 70560d8b9Sgavan * Redistribution and use in source and binary forms, with or without 80560d8b9Sgavan * modification, are permitted provided that the following conditions 90560d8b9Sgavan * are met: 100560d8b9Sgavan * 1. Redistributions of source code must retain the above copyright 110560d8b9Sgavan * notice, this list of conditions and the following disclaimer. 120560d8b9Sgavan * 2. Redistributions in binary form must reproduce the above copyright 130560d8b9Sgavan * notice, this list of conditions and the following disclaimer in the 140560d8b9Sgavan * documentation and/or other materials provided with the distribution. 150560d8b9Sgavan * 3. Neither the name of the University nor the names of its contributors 160560d8b9Sgavan * may be used to endorse or promote products derived from this software 170560d8b9Sgavan * without specific prior written permission. 180560d8b9Sgavan * 190560d8b9Sgavan * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 200560d8b9Sgavan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 210560d8b9Sgavan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 220560d8b9Sgavan * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 230560d8b9Sgavan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 240560d8b9Sgavan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 250560d8b9Sgavan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 260560d8b9Sgavan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 270560d8b9Sgavan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 280560d8b9Sgavan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 290560d8b9Sgavan * SUCH DAMAGE. 300560d8b9Sgavan */ 310560d8b9Sgavan 320560d8b9Sgavan #ifndef _IYONIX_VMPARAM_H_ 330560d8b9Sgavan #define _IYONIX_VMPARAM_H_ 340560d8b9Sgavan 350560d8b9Sgavan #include <arm/arm32/vmparam.h> 360560d8b9Sgavan 370560d8b9Sgavan /* 380560d8b9Sgavan * Address space constants 390560d8b9Sgavan */ 400560d8b9Sgavan 410560d8b9Sgavan /* 420560d8b9Sgavan * The line between user space and kernel space 430560d8b9Sgavan * Mappings >= KERNEL_BASE are constant across all processes 440560d8b9Sgavan */ 450560d8b9Sgavan #define KERNEL_BASE 0xf0000000 460560d8b9Sgavan 470560d8b9Sgavan /* 480560d8b9Sgavan * Size of User Raw I/O map 490560d8b9Sgavan */ 500560d8b9Sgavan 510560d8b9Sgavan #define USRIOSIZE 300 520560d8b9Sgavan 530560d8b9Sgavan /* virtual sizes (bytes) for various kernel submaps */ 540560d8b9Sgavan 550560d8b9Sgavan #define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE) 560560d8b9Sgavan 570560d8b9Sgavan /* 580560d8b9Sgavan * max number of non-contig chunks of physical RAM you can have 590560d8b9Sgavan */ 600560d8b9Sgavan 610560d8b9Sgavan #define VM_PHYSSEG_MAX 32 620560d8b9Sgavan 630560d8b9Sgavan /* 640560d8b9Sgavan * when converting a physical address to a vm_page structure, we 650560d8b9Sgavan * want to use a binary search on the chunks of physical memory 660560d8b9Sgavan * to find our RAM 670560d8b9Sgavan */ 680560d8b9Sgavan 690560d8b9Sgavan #define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH 700560d8b9Sgavan 710560d8b9Sgavan /* 720560d8b9Sgavan * we support 2 free lists: 730560d8b9Sgavan * 740560d8b9Sgavan * - DEFAULT for all systems 7581f10ee7Sskrll * - ISADMA for the ISA DMA range 760560d8b9Sgavan */ 770560d8b9Sgavan 780560d8b9Sgavan #define VM_NFREELIST 2 790560d8b9Sgavan #define VM_FREELIST_DEFAULT 0 800560d8b9Sgavan #define VM_FREELIST_ISADMA 1 810560d8b9Sgavan 820560d8b9Sgavan #endif /* _IYONIX_VMPARAM_H_ */ 83