11.33Spara/* $NetBSD: param.h,v 1.33 2012/02/10 17:35:48 para Exp $ */ 21.1Schuck 31.1Schuck/* 41.32Srmind * Copyright (c) 1988 University of Utah. 51.1Schuck * Copyright (c) 1982, 1986, 1990, 1993 61.1Schuck * The Regents of the University of California. All rights reserved. 71.26Sagc * 81.26Sagc * This code is derived from software contributed to Berkeley by 91.26Sagc * the Systems Programming Group of the University of Utah Computer 101.26Sagc * Science Department. 111.26Sagc * 121.26Sagc * Redistribution and use in source and binary forms, with or without 131.26Sagc * modification, are permitted provided that the following conditions 141.26Sagc * are met: 151.26Sagc * 1. Redistributions of source code must retain the above copyright 161.26Sagc * notice, this list of conditions and the following disclaimer. 171.26Sagc * 2. Redistributions in binary form must reproduce the above copyright 181.26Sagc * notice, this list of conditions and the following disclaimer in the 191.26Sagc * documentation and/or other materials provided with the distribution. 201.26Sagc * 3. Neither the name of the University nor the names of its contributors 211.26Sagc * may be used to endorse or promote products derived from this software 221.26Sagc * without specific prior written permission. 231.26Sagc * 241.26Sagc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 251.26Sagc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 261.26Sagc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 271.26Sagc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 281.26Sagc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 291.26Sagc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 301.26Sagc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 311.26Sagc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 321.26Sagc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 331.26Sagc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 341.26Sagc * SUCH DAMAGE. 351.26Sagc * 361.26Sagc * from: Utah $Hdr: machparam.h 1.16 92/12/20$ 371.26Sagc * 381.26Sagc * @(#)param.h 8.1 (Berkeley) 6/10/93 391.26Sagc */ 401.1Schuck 411.8Sveego#ifndef _MACHINE_PARAM_H_ 421.8Sveego#define _MACHINE_PARAM_H_ 431.8Sveego 441.1Schuck/* 451.1Schuck * Machine dependent constants for mvme68k, based on HP9000 series 300. 461.1Schuck */ 471.5Scgd#define _MACHINE mvme68k 481.4Scgd#define MACHINE "mvme68k" 491.1Schuck 501.27She#ifdef _KERNEL 511.20Sscw/* 521.20Sscw * Grab the interrupt definitions 531.20Sscw */ 541.20Sscw#include <machine/intr.h> 551.27She#endif /* _KERNEL */ 561.20Sscw 571.8Sveego#define PGSHIFT 12 /* LOG2(NBPG) */ 581.8Sveego#define KERNBASE 0x00000000 /* start of kernel virtual */ 591.8Sveego 601.23Sscw#define UPAGES 2 /* pages of u-area */ 611.1Schuck 621.8Sveego#include <m68k/param.h> 631.10Sveego 641.10Sveego#define NPTEPG (NBPG/(sizeof (pt_entry_t))) 651.1Schuck 661.1Schuck/* 671.19Sthorpej * Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized 681.19Sthorpej * logical pages. 691.1Schuck */ 701.33Spara#define NKMEMPAGES_MIN_DEFAULT ((16 * 1024 * 1024) >> PAGE_SHIFT) 711.33Spara#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT) 721.1Schuck 731.20Sscw#if defined(_KERNEL) && !defined(_LOCORE) 741.29Stsutsuiextern void _delay(unsigned int); 751.22Sscw#define delay(us) _delay((us)<<10) 761.6Schuck#define DELAY(n) delay(n) 771.20Sscw#endif /* _KERNEL && !_LOCORE */ 781.8Sveego 791.8Sveego#endif /* !_MACHINE_PARAM_H_ */ 80