11.17Spara/*	$NetBSD: param.h,v 1.17 2012/02/10 17:35:48 para Exp $	*/
21.1Stsutsui
31.1Stsutsui/*
41.16Srmind * Copyright (c) 1988 University of Utah.
51.1Stsutsui * Copyright (c) 1982, 1986, 1990, 1993
61.1Stsutsui *	The Regents of the University of California.  All rights reserved.
71.8Sagc *
81.8Sagc * This code is derived from software contributed to Berkeley by
91.8Sagc * the Systems Programming Group of the University of Utah Computer
101.8Sagc * Science Department.
111.8Sagc *
121.8Sagc * Redistribution and use in source and binary forms, with or without
131.8Sagc * modification, are permitted provided that the following conditions
141.8Sagc * are met:
151.8Sagc * 1. Redistributions of source code must retain the above copyright
161.8Sagc *    notice, this list of conditions and the following disclaimer.
171.8Sagc * 2. Redistributions in binary form must reproduce the above copyright
181.8Sagc *    notice, this list of conditions and the following disclaimer in the
191.8Sagc *    documentation and/or other materials provided with the distribution.
201.8Sagc * 3. Neither the name of the University nor the names of its contributors
211.8Sagc *    may be used to endorse or promote products derived from this software
221.8Sagc *    without specific prior written permission.
231.8Sagc *
241.8Sagc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
251.8Sagc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
261.8Sagc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
271.8Sagc * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
281.8Sagc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
291.8Sagc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
301.8Sagc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
311.8Sagc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
321.8Sagc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
331.8Sagc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
341.8Sagc * SUCH DAMAGE.
351.8Sagc *
361.8Sagc * from: Utah $Hdr: machparam.h 1.16 92/12/20$
371.8Sagc *
381.8Sagc *	@(#)param.h	8.1 (Berkeley) 6/10/93
391.8Sagc */
401.1Stsutsui
411.9Stsutsui#ifndef	_NEWS68K_PARAM_H_
421.9Stsutsui#define	_NEWS68K_PARAM_H_
431.1Stsutsui
441.1Stsutsui/*
451.1Stsutsui * Machine dependent constants for m68k NEWS.
461.1Stsutsui */
471.1Stsutsui#define	_MACHINE	news68k
481.1Stsutsui#define	MACHINE		"news68k"
491.1Stsutsui
501.1Stsutsui
511.15Stsutsui#define	PGSHIFT		13		/* LOG2(NBPG) */
521.1Stsutsui#define	KERNBASE	0x00000000	/* start of kernel virtual */
531.1Stsutsui
541.4Stsutsui#define	UPAGES		2		/* pages of u-area */
551.1Stsutsui
561.1Stsutsui#include <m68k/param.h>
571.1Stsutsui
581.1Stsutsui#define	NPTEPG		(NBPG/(sizeof (pt_entry_t)))
591.1Stsutsui
601.1Stsutsui/*
611.2Sthorpej * Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
621.2Sthorpej * logical pages.
631.1Stsutsui */
641.17Spara#define	NKMEMPAGES_MIN_DEFAULT	((16 * 1024 * 1024) >> PAGE_SHIFT)
651.17Spara#define	NKMEMPAGES_MAX_DEFAULT	((128 * 1024 * 1024) >> PAGE_SHIFT)
661.1Stsutsui
671.1Stsutsui#if defined(_KERNEL) && !defined(_LOCORE)
681.11Stsutsui#include <machine/intr.h>
691.11Stsutsui
701.1Stsutsui#define	delay(us)	_delay((us) << 8)
711.1Stsutsui#define DELAY(us)	delay(us)
721.1Stsutsui
731.7Stsutsuivoid	_delay(u_int);
741.1Stsutsui#endif /* _KERNEL && !_LOCORE */
751.1Stsutsui
761.9Stsutsui#endif	/* !_NEWS68K_PARAM_H_ */
77