Home | History | Annotate | Line # | Download | only in include
param.h revision 1.13.8.1
      1  1.13.8.1       mrg /*	$NetBSD: param.h,v 1.13.8.1 2012/02/18 07:33:19 mrg 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.1  fredette /*
     44       1.1  fredette  * Machine dependent constants for the Sun2 series.
     45       1.1  fredette  */
     46       1.1  fredette #define	_MACHINE	sun2
     47       1.1  fredette #define	MACHINE		"sun2"
     48       1.1  fredette #define	_MACHINE_ARCH	m68000
     49       1.1  fredette #define	MACHINE_ARCH	"m68000"
     50       1.1  fredette #define	MID_MACHINE	MID_M680002K
     51       1.1  fredette 
     52       1.3  fredette #define PGSHIFT		11		/* LOG2(NBPG) */
     53       1.3  fredette 
     54       1.1  fredette #ifdef MSGBUFSIZE
     55       1.1  fredette #error "MSGBUFSIZE is not user-adjustable for this arch"
     56       1.1  fredette #endif
     57       1.3  fredette #define MSGBUFOFF	0x0
     58       1.3  fredette #define MSGBUFSIZE	((NBPG * 4) - MSGBUFOFF)
     59       1.1  fredette 
     60       1.1  fredette /* This is needed by ps (actually USPACE). */
     61       1.1  fredette #define	UPAGES		(16384 / NBPG)		/* pages of u-area */
     62       1.1  fredette 
     63       1.1  fredette #if defined(_KERNEL) || defined(_STANDALONE)
     64       1.1  fredette 
     65       1.3  fredette #define	KERNBASE	0x00006000	/* start of kernel virtual */
     66       1.1  fredette #define	KERN_END	0x00E00000	/* end of kernel virtual */
     67       1.1  fredette 
     68       1.9   tsutsui #define	MAXBSIZE	0x4000		/* max FS block size */
     69       1.5   mycroft #define	MAXPHYS		0xe000
     70       1.1  fredette 
     71       1.1  fredette /*
     72      1.12     joerg  * XXX fredette - we force a small cluster size to help me debug
     73      1.12     joerg  * this on my low-memory machine.  These should go away at some point.
     74       1.1  fredette  */
     75       1.1  fredette #define MCLSHIFT	10
     76       1.2  fredette 
     77       1.2  fredette /*
     78       1.2  fredette  * XXX fredette - we must define this, otw UBC consumes 8MB of kernel VM.
     79       1.2  fredette  * For now, we make it absurdly small, perhaps it can grow later.
     80       1.2  fredette  */
     81       1.2  fredette #define	UBC_NWINS	32
     82       1.1  fredette 
     83      1.10        ad #define	MAXEXEC		1
     84      1.10        ad 
     85       1.1  fredette #endif	/* _KERNEL */
     86       1.1  fredette 
     87       1.1  fredette #include <m68k/param.h>
     88       1.1  fredette 
     89       1.1  fredette /*
     90       1.1  fredette  * Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
     91       1.1  fredette  * logical pages.
     92       1.1  fredette  */
     93  1.13.8.1       mrg #define	NKMEMPAGES_MIN_DEFAULT	((8 * 1024 * 1024) >> PAGE_SHIFT)
     94  1.13.8.1       mrg #define	NKMEMPAGES_MAX_DEFAULT	((32 * 1024 * 1024) >> PAGE_SHIFT)
     95       1.1  fredette 
     96       1.1  fredette #if defined(_KERNEL) && !defined(_LOCORE)
     97       1.1  fredette 
     98       1.7       chs #include <machine/intr.h>
     99       1.1  fredette 
    100       1.6       chs extern void _delay(unsigned);
    101       1.1  fredette #define delay(us)	_delay((us)<<8)
    102       1.1  fredette #define	DELAY(n)	delay(n)
    103       1.1  fredette 
    104       1.1  fredette #endif	/* _KERNEL && !_LOCORE */
    105       1.1  fredette #endif	/* !_MACHINE_PARAM_H_ */
    106