1*4c23b30cSpara /* $NetBSD: param.h,v 1.35 2012/02/10 17:35:49 para Exp $ */ 28b0113cfSleo 38b0113cfSleo /* 49b6bd2d9Srmind * Copyright (c) 1988 University of Utah. 58b0113cfSleo * Copyright (c) 1982, 1986, 1990 The Regents of the University of California. 68b0113cfSleo * All rights reserved. 78b0113cfSleo * 88b0113cfSleo * This code is derived from software contributed to Berkeley by 98b0113cfSleo * the Systems Programming Group of the University of Utah Computer 108b0113cfSleo * Science Department. 118b0113cfSleo * 128b0113cfSleo * Redistribution and use in source and binary forms, with or without 138b0113cfSleo * modification, are permitted provided that the following conditions 148b0113cfSleo * are met: 158b0113cfSleo * 1. Redistributions of source code must retain the above copyright 168b0113cfSleo * notice, this list of conditions and the following disclaimer. 178b0113cfSleo * 2. Redistributions in binary form must reproduce the above copyright 188b0113cfSleo * notice, this list of conditions and the following disclaimer in the 198b0113cfSleo * 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.11 89/08/14$ 37aad01611Sagc * 38aad01611Sagc * @(#)param.h 7.8 (Berkeley) 6/28/91 39aad01611Sagc */ 408b0113cfSleo 418b0113cfSleo #ifndef _MACHINE_PARAM_H_ 428b0113cfSleo #define _MACHINE_PARAM_H_ 438b0113cfSleo 448b0113cfSleo /* 458b0113cfSleo * Machine dependent constants for atari 468b0113cfSleo */ 4718ec26aaScgd #define _MACHINE atari 488b0113cfSleo #define MACHINE "atari" 498b0113cfSleo 508b0113cfSleo #define PGSHIFT 13 /* LOG2(NBPG) */ 51931d90fcSveego #define KERNBASE 0x00000000 /* start of kernel virtual */ 528b0113cfSleo 531c599835Sveego #define UPAGES 2 /* pages of u-area */ 541c599835Sveego 556304388eSveego #include <m68k/param.h> 566304388eSveego 571c599835Sveego #define NPTEPG (NBPG/(sizeof (pt_entry_t))) 581c599835Sveego 598b0113cfSleo /* 60dded044fSthorpej * Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized 61dded044fSthorpej * logical pages. 628b0113cfSleo */ 63*4c23b30cSpara #define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT) 64*4c23b30cSpara #define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT) 658b0113cfSleo 66716d4c38Sleo #ifdef _KERNEL 67716d4c38Sleo 689324e8d0Sleo #include <machine/intr.h> 698b0113cfSleo 70c8ad2035Sjoerg void delay(unsigned int); 718e56abf0Sleo 728e56abf0Sleo #define DELAY(n) delay(n) 738e56abf0Sleo #endif /* _KERNEL */ 748b0113cfSleo 758b0113cfSleo #endif /* !_MACHINE_PARAM_H_ */ 76