1*4c23b30cSpara /* $NetBSD: param.h,v 1.33 2012/02/10 17:35:48 para Exp $ */ 20b036e11Schuck 30b036e11Schuck /* 49b6bd2d9Srmind * Copyright (c) 1988 University of Utah. 50b036e11Schuck * Copyright (c) 1982, 1986, 1990, 1993 60b036e11Schuck * The Regents of the University of California. All rights reserved. 70b036e11Schuck * 80b036e11Schuck * This code is derived from software contributed to Berkeley by 90b036e11Schuck * the Systems Programming Group of the University of Utah Computer 100b036e11Schuck * Science Department. 110b036e11Schuck * 120b036e11Schuck * Redistribution and use in source and binary forms, with or without 130b036e11Schuck * modification, are permitted provided that the following conditions 140b036e11Schuck * are met: 150b036e11Schuck * 1. Redistributions of source code must retain the above copyright 160b036e11Schuck * notice, this list of conditions and the following disclaimer. 170b036e11Schuck * 2. Redistributions in binary form must reproduce the above copyright 180b036e11Schuck * notice, this list of conditions and the following disclaimer in the 190b036e11Schuck * documentation and/or other materials provided with the distribution. 20aad01611Sagc * 3. Neither the name of the University nor the names of its contributors 21aad01611Sagc * may be used to endorse or promote products derived from this software 22aad01611Sagc * without specific prior written permission. 23aad01611Sagc * 24aad01611Sagc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25aad01611Sagc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26aad01611Sagc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27aad01611Sagc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28aad01611Sagc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29aad01611Sagc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30aad01611Sagc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31aad01611Sagc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32aad01611Sagc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33aad01611Sagc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34aad01611Sagc * SUCH DAMAGE. 35aad01611Sagc * 36aad01611Sagc * from: Utah $Hdr: machparam.h 1.16 92/12/20$ 37aad01611Sagc * 38aad01611Sagc * @(#)param.h 8.1 (Berkeley) 6/10/93 39aad01611Sagc */ 400b036e11Schuck 41931d90fcSveego #ifndef _MACHINE_PARAM_H_ 42931d90fcSveego #define _MACHINE_PARAM_H_ 43931d90fcSveego 440b036e11Schuck /* 450b036e11Schuck * Machine dependent constants for mvme68k, based on HP9000 series 300. 460b036e11Schuck */ 4718ec26aaScgd #define _MACHINE mvme68k 480b036e11Schuck #define MACHINE "mvme68k" 490b036e11Schuck 50dc4ed2e4She #ifdef _KERNEL 519c745dbdSscw /* 529c745dbdSscw * Grab the interrupt definitions 539c745dbdSscw */ 549c745dbdSscw #include <machine/intr.h> 55dc4ed2e4She #endif /* _KERNEL */ 569c745dbdSscw 570b036e11Schuck #define PGSHIFT 12 /* LOG2(NBPG) */ 58931d90fcSveego #define KERNBASE 0x00000000 /* start of kernel virtual */ 59931d90fcSveego 601f9f7cbeSscw #define UPAGES 2 /* pages of u-area */ 616304388eSveego 626304388eSveego #include <m68k/param.h> 636304388eSveego 641450ec3fSveego #define NPTEPG (NBPG/(sizeof (pt_entry_t))) 651450ec3fSveego 660b036e11Schuck /* 67dded044fSthorpej * Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized 68dded044fSthorpej * logical pages. 690b036e11Schuck */ 70*4c23b30cSpara #define NKMEMPAGES_MIN_DEFAULT ((16 * 1024 * 1024) >> PAGE_SHIFT) 71*4c23b30cSpara #define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT) 720b036e11Schuck 739c745dbdSscw #if defined(_KERNEL) && !defined(_LOCORE) 74a07f7c80Stsutsui extern void _delay(unsigned int); 75b6f0a678Sscw #define delay(us) _delay((us)<<10) 7681fc5956Schuck #define DELAY(n) delay(n) 779c745dbdSscw #endif /* _KERNEL && !_LOCORE */ 78931d90fcSveego 79931d90fcSveego #endif /* !_MACHINE_PARAM_H_ */ 80