11.35Spara/*	$NetBSD: param.h,v 1.35 2012/02/10 17:35:49 para Exp $	*/
21.1Sleo
31.1Sleo/*
41.34Srmind * Copyright (c) 1988 University of Utah.
51.1Sleo * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
61.1Sleo * All rights reserved.
71.29Sagc *
81.29Sagc * This code is derived from software contributed to Berkeley by
91.29Sagc * the Systems Programming Group of the University of Utah Computer
101.29Sagc * Science Department.
111.29Sagc *
121.29Sagc * Redistribution and use in source and binary forms, with or without
131.29Sagc * modification, are permitted provided that the following conditions
141.29Sagc * are met:
151.29Sagc * 1. Redistributions of source code must retain the above copyright
161.29Sagc *    notice, this list of conditions and the following disclaimer.
171.29Sagc * 2. Redistributions in binary form must reproduce the above copyright
181.29Sagc *    notice, this list of conditions and the following disclaimer in the
191.29Sagc *    documentation and/or other materials provided with the distribution.
201.29Sagc * 3. Neither the name of the University nor the names of its contributors
211.29Sagc *    may be used to endorse or promote products derived from this software
221.29Sagc *    without specific prior written permission.
231.29Sagc *
241.29Sagc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
251.29Sagc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
261.29Sagc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
271.29Sagc * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
281.29Sagc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
291.29Sagc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
301.29Sagc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
311.29Sagc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
321.29Sagc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
331.29Sagc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
341.29Sagc * SUCH DAMAGE.
351.29Sagc *
361.29Sagc * from: Utah $Hdr: machparam.h 1.11 89/08/14$
371.29Sagc *
381.29Sagc *	@(#)param.h	7.8 (Berkeley) 6/28/91
391.29Sagc */
401.1Sleo
411.21Sveego#ifndef	_MACHINE_PARAM_H_
421.21Sveego#define	_MACHINE_PARAM_H_
431.1Sleo
441.1Sleo/*
451.1Sleo * Machine dependent constants for atari
461.1Sleo */
471.13Scgd#define	_MACHINE	atari
481.1Sleo#define	MACHINE		"atari"
491.1Sleo
501.21Sveego#define	PGSHIFT		13		/* LOG2(NBPG) */
511.21Sveego#define	KERNBASE	0x00000000	/* start of kernel virtual */
521.1Sleo
531.23Sveego#define	UPAGES		2		/* pages of u-area */
541.23Sveego
551.22Sveego#include <m68k/param.h>
561.23Sveego
571.23Sveego#define	NPTEPG		(NBPG/(sizeof (pt_entry_t)))
581.22Sveego
591.1Sleo/*
601.27Sthorpej * Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
611.27Sthorpej * logical pages.
621.1Sleo */
631.35Spara#define	NKMEMPAGES_MIN_DEFAULT	((8 * 1024 * 1024) >> PAGE_SHIFT)
641.35Spara#define	NKMEMPAGES_MAX_DEFAULT	((128 * 1024 * 1024) >> PAGE_SHIFT)
651.1Sleo
661.28Sleo#ifdef	_KERNEL
671.28Sleo
681.19Sleo#include <machine/intr.h>
691.1Sleo
701.31Sjoergvoid delay(unsigned int);
711.5Sleo
721.5Sleo#define	DELAY(n)	delay(n)
731.21Sveego#endif	/* _KERNEL */
741.1Sleo
751.21Sveego#endif	/* !_MACHINE_PARAM_H_ */
76