11.2Sriastrad/* $NetBSD: param.h,v 1.2 2014/03/18 18:20:41 riastradh Exp $ */ 21.1Smatt 31.1Smatt/* 41.1Smatt * Copyright (c) 1988 University of Utah. 51.1Smatt * Copyright (c) 1982, 1986, 1990, 1993 61.1Smatt * The Regents of the University of California. All rights reserved. 71.1Smatt * 81.1Smatt * This code is derived from software contributed to Berkeley by 91.1Smatt * the Systems Programming Group of the University of Utah Computer 101.1Smatt * Science Department. 111.1Smatt * 121.1Smatt * Redistribution and use in source and binary forms, with or without 131.1Smatt * modification, are permitted provided that the following conditions 141.1Smatt * are met: 151.1Smatt * 1. Redistributions of source code must retain the above copyright 161.1Smatt * notice, this list of conditions and the following disclaimer. 171.1Smatt * 2. Redistributions in binary form must reproduce the above copyright 181.1Smatt * notice, this list of conditions and the following disclaimer in the 191.1Smatt * documentation and/or other materials provided with the distribution. 201.1Smatt * 3. Neither the name of the University nor the names of its contributors 211.1Smatt * may be used to endorse or promote products derived from this software 221.1Smatt * without specific prior written permission. 231.1Smatt * 241.1Smatt * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 251.1Smatt * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 261.1Smatt * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 271.1Smatt * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 281.1Smatt * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 291.1Smatt * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 301.1Smatt * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 311.1Smatt * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 321.1Smatt * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 331.1Smatt * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 341.1Smatt * SUCH DAMAGE. 351.1Smatt * 361.1Smatt * from: Utah $Hdr: machparam.h 1.16 92/12/20$ 371.1Smatt * 381.1Smatt * @(#)param.h 8.1 (Berkeley) 6/10/93 391.1Smatt */ 401.1Smatt 411.1Smatt#ifndef _MACHINE_PARAM_H_ 421.1Smatt#define _MACHINE_PARAM_H_ 431.1Smatt 441.1Smatt/* 451.1Smatt * Machine dependent constants for mvme68k, based on HP9000 series 300. 461.1Smatt */ 471.1Smatt#define _MACHINE evbcf 481.1Smatt#define MACHINE "evbcf" 491.1Smatt 501.1Smatt#ifdef _KERNEL 511.1Smatt/* 521.1Smatt * Grab the interrupt definitions 531.1Smatt */ 541.1Smatt#include <machine/intr.h> 551.1Smatt#endif /* _KERNEL */ 561.1Smatt 571.1Smatt#define PGSHIFT 12 /* LOG2(NBPG) */ 581.1Smatt#define KERNBASE 0x00000000 /* start of kernel virtual */ 591.1Smatt 601.1Smatt#define UPAGES 2 /* pages of u-area */ 611.1Smatt 621.1Smatt#include <m68k/param.h> 631.1Smatt 641.1Smatt#define NPTEPG (NBPG/(sizeof (pt_entry_t))) 651.1Smatt 661.1Smatt/* 671.1Smatt * Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized 681.1Smatt * logical pages. 691.1Smatt */ 701.1Smatt#define NKMEMPAGES_MIN_DEFAULT ((16 * 1024 * 1024) >> PAGE_SHIFT) 711.1Smatt#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT) 721.1Smatt 731.1Smatt#if defined(_KERNEL) && !defined(_LOCORE) 741.1Smattextern void _delay(unsigned int); 751.1Smatt#define delay(us) _delay((us)<<10) 761.1Smatt#define DELAY(n) delay(n) 771.1Smatt#endif /* _KERNEL && !_LOCORE */ 781.1Smatt 791.1Smatt#endif /* !_MACHINE_PARAM_H_ */ 80