Home | History | Annotate | Line # | Download | only in include
param.h revision 1.15.56.1
      1  1.15.56.1   thorpej /*	$NetBSD: param.h,v 1.15.56.1 2021/06/17 04:46:25 thorpej Exp $	*/
      2        1.1  fredette 
      3        1.1  fredette /*
      4       1.13     rmind  * Copyright (c) 1988 University of Utah.
      5        1.1  fredette  * Copyright (c) 1982, 1986, 1990, 1993
      6        1.1  fredette  *	The Regents of the University of California.  All rights reserved.
      7        1.4       agc  *
      8        1.4       agc  * This code is derived from software contributed to Berkeley by
      9        1.4       agc  * the Systems Programming Group of the University of Utah Computer
     10        1.4       agc  * Science Department.
     11        1.4       agc  *
     12        1.4       agc  * Redistribution and use in source and binary forms, with or without
     13        1.4       agc  * modification, are permitted provided that the following conditions
     14        1.4       agc  * are met:
     15        1.4       agc  * 1. Redistributions of source code must retain the above copyright
     16        1.4       agc  *    notice, this list of conditions and the following disclaimer.
     17        1.4       agc  * 2. Redistributions in binary form must reproduce the above copyright
     18        1.4       agc  *    notice, this list of conditions and the following disclaimer in the
     19        1.4       agc  *    documentation and/or other materials provided with the distribution.
     20        1.4       agc  * 3. Neither the name of the University nor the names of its contributors
     21        1.4       agc  *    may be used to endorse or promote products derived from this software
     22        1.4       agc  *    without specific prior written permission.
     23        1.4       agc  *
     24        1.4       agc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     25        1.4       agc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     26        1.4       agc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     27        1.4       agc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     28        1.4       agc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     29        1.4       agc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     30        1.4       agc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     31        1.4       agc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     32        1.4       agc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     33        1.4       agc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     34        1.4       agc  * SUCH DAMAGE.
     35        1.4       agc  *
     36        1.4       agc  *	from: Utah Hdr: machparam.h 1.16 92/12/20
     37        1.4       agc  *	from: @(#)param.h	8.1 (Berkeley) 6/10/93
     38        1.4       agc  */
     39        1.1  fredette 
     40        1.1  fredette #ifndef	_MACHINE_PARAM_H_
     41        1.1  fredette #define	_MACHINE_PARAM_H_
     42        1.1  fredette 
     43  1.15.56.1   thorpej #ifdef _KERNEL_OPT
     44  1.15.56.1   thorpej #include "opt_param.h"
     45  1.15.56.1   thorpej #endif
     46  1.15.56.1   thorpej 
     47        1.1  fredette /*
     48        1.1  fredette  * Machine dependent constants for the Sun2 series.
     49        1.1  fredette  */
     50        1.1  fredette #define	_MACHINE	sun2
     51        1.1  fredette #define	MACHINE		"sun2"
     52        1.1  fredette #define	_MACHINE_ARCH	m68000
     53        1.1  fredette #define	MACHINE_ARCH	"m68000"
     54        1.1  fredette #define	MID_MACHINE	MID_M680002K
     55        1.1  fredette 
     56        1.3  fredette #define PGSHIFT		11		/* LOG2(NBPG) */
     57        1.3  fredette 
     58        1.1  fredette #ifdef MSGBUFSIZE
     59        1.1  fredette #error "MSGBUFSIZE is not user-adjustable for this arch"
     60        1.1  fredette #endif
     61        1.3  fredette #define MSGBUFOFF	0x0
     62        1.3  fredette #define MSGBUFSIZE	((NBPG * 4) - MSGBUFOFF)
     63        1.1  fredette 
     64        1.1  fredette /* This is needed by ps (actually USPACE). */
     65        1.1  fredette #define	UPAGES		(16384 / NBPG)		/* pages of u-area */
     66        1.1  fredette 
     67        1.1  fredette #if defined(_KERNEL) || defined(_STANDALONE)
     68        1.1  fredette 
     69        1.3  fredette #define	KERNBASE	0x00006000	/* start of kernel virtual */
     70        1.1  fredette #define	KERN_END	0x00E00000	/* end of kernel virtual */
     71        1.1  fredette 
     72        1.9   tsutsui #define	MAXBSIZE	0x4000		/* max FS block size */
     73        1.5   mycroft #define	MAXPHYS		0xe000
     74        1.1  fredette 
     75        1.1  fredette /*
     76       1.12     joerg  * XXX fredette - we force a small cluster size to help me debug
     77       1.12     joerg  * this on my low-memory machine.  These should go away at some point.
     78        1.1  fredette  */
     79        1.1  fredette #define MCLSHIFT	10
     80        1.2  fredette 
     81        1.2  fredette /*
     82        1.2  fredette  * XXX fredette - we must define this, otw UBC consumes 8MB of kernel VM.
     83        1.2  fredette  * For now, we make it absurdly small, perhaps it can grow later.
     84        1.2  fredette  */
     85        1.2  fredette #define	UBC_NWINS	32
     86        1.1  fredette 
     87       1.10        ad #define	MAXEXEC		1
     88       1.10        ad 
     89        1.1  fredette #endif	/* _KERNEL */
     90        1.1  fredette 
     91        1.1  fredette #include <m68k/param.h>
     92        1.1  fredette 
     93        1.1  fredette /*
     94        1.1  fredette  * Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
     95        1.1  fredette  * logical pages.
     96        1.1  fredette  */
     97       1.15   tsutsui #define	NKMEMPAGES_MIN_DEFAULT	((4 * 1024 * 1024) >> PAGE_SHIFT)
     98       1.15   tsutsui #define	NKMEMPAGES_MAX_DEFAULT	((8 * 1024 * 1024) >> PAGE_SHIFT)
     99        1.1  fredette 
    100        1.1  fredette #if defined(_KERNEL) && !defined(_LOCORE)
    101        1.1  fredette 
    102        1.7       chs #include <machine/intr.h>
    103        1.1  fredette 
    104        1.6       chs extern void _delay(unsigned);
    105        1.1  fredette #define delay(us)	_delay((us)<<8)
    106        1.1  fredette #define	DELAY(n)	delay(n)
    107        1.1  fredette 
    108        1.1  fredette #endif	/* _KERNEL && !_LOCORE */
    109        1.1  fredette #endif	/* !_MACHINE_PARAM_H_ */
    110