Home | History | Annotate | Line # | Download | only in include
param.h revision 1.59
      1  1.59    rmind /*	$NetBSD: param.h,v 1.59 2011/02/08 20:20:25 rmind Exp $	*/
      2  1.19      cgd 
      3   1.1    glass /*
      4  1.59    rmind  * Copyright (c) 1988 University of Utah.
      5  1.15      gwr  * Copyright (c) 1982, 1986, 1990, 1993
      6  1.15      gwr  *	The Regents of the University of California.  All rights reserved.
      7  1.55      agc  *
      8  1.55      agc  * This code is derived from software contributed to Berkeley by
      9  1.55      agc  * the Systems Programming Group of the University of Utah Computer
     10  1.55      agc  * Science Department.
     11  1.55      agc  *
     12  1.55      agc  * Redistribution and use in source and binary forms, with or without
     13  1.55      agc  * modification, are permitted provided that the following conditions
     14  1.55      agc  * are met:
     15  1.55      agc  * 1. Redistributions of source code must retain the above copyright
     16  1.55      agc  *    notice, this list of conditions and the following disclaimer.
     17  1.55      agc  * 2. Redistributions in binary form must reproduce the above copyright
     18  1.55      agc  *    notice, this list of conditions and the following disclaimer in the
     19  1.55      agc  *    documentation and/or other materials provided with the distribution.
     20  1.55      agc  * 3. Neither the name of the University nor the names of its contributors
     21  1.55      agc  *    may be used to endorse or promote products derived from this software
     22  1.55      agc  *    without specific prior written permission.
     23  1.55      agc  *
     24  1.55      agc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     25  1.55      agc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     26  1.55      agc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     27  1.55      agc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     28  1.55      agc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     29  1.55      agc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     30  1.55      agc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     31  1.55      agc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     32  1.55      agc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     33  1.55      agc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     34  1.55      agc  * SUCH DAMAGE.
     35  1.55      agc  *
     36  1.55      agc  *	from: Utah Hdr: machparam.h 1.16 92/12/20
     37  1.55      agc  *	from: @(#)param.h	8.1 (Berkeley) 6/10/93
     38  1.55      agc  */
     39   1.1    glass 
     40  1.41    veego #ifndef	_MACHINE_PARAM_H_
     41  1.41    veego #define	_MACHINE_PARAM_H_
     42  1.18      gwr 
     43   1.1    glass /*
     44  1.48      gwr  * Machine dependent constants for both the
     45  1.48      gwr  * Sun3 and Sun3X series.
     46   1.1    glass  */
     47  1.34      cgd #define	_MACHINE	sun3
     48  1.33      cgd #define	MACHINE		"sun3"
     49  1.11    glass 
     50   1.1    glass #define	PGSHIFT		13		/* LOG2(NBPG) */
     51  1.15      gwr 
     52  1.58  tsutsui #define	MAXBSIZE	0x8000		/* max FS block size */
     53  1.58  tsutsui #define	MAXPHYS		0xe000		/* XXX: sun3 DMA can't handle 64KB? */
     54  1.58  tsutsui 
     55  1.49      gwr #ifdef MSGBUFSIZE
     56  1.49      gwr #error "MSGBUFSIZE is not user-adjustable for this arch"
     57  1.49      gwr #endif
     58  1.52      chs #define MSGBUFOFF	0
     59  1.52      chs #define MSGBUFSIZE	(NBPG)
     60  1.43    veego 
     61  1.48      gwr /* This is needed by ps (actually USPACE). */
     62  1.43    veego #define	UPAGES		2		/* pages of u-area */
     63   1.1    glass 
     64  1.48      gwr #ifdef	_SUN3_
     65  1.58  tsutsui #include <machine/param3.h>
     66  1.48      gwr #endif	/* SUN3 */
     67  1.48      gwr #ifdef	_SUN3X_
     68  1.58  tsutsui #include <machine/param3x.h>
     69  1.48      gwr #endif	/* SUN3X */
     70  1.58  tsutsui 
     71  1.58  tsutsui /* default for rump etc. */
     72  1.58  tsutsui #if !defined(_SUN3_) && !defined(_SUN3X_)
     73  1.58  tsutsui #include <machine/param3.h>
     74  1.58  tsutsui #endif
     75  1.45      leo 
     76  1.41    veego #include <m68k/param.h>
     77   1.1    glass 
     78   1.1    glass /*
     79  1.51  thorpej  * Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
     80  1.51  thorpej  * logical pages.
     81  1.41    veego  */
     82  1.51  thorpej #define	NKMEMPAGES_MIN_DEFAULT	((3 * 1024 * 1024) >> PAGE_SHIFT)
     83  1.51  thorpej #define	NKMEMPAGES_MAX_DEFAULT	((3 * 1024 * 1024) >> PAGE_SHIFT)
     84   1.1    glass 
     85  1.48      gwr #if defined(_KERNEL) && !defined(_LOCORE)
     86  1.48      gwr 
     87  1.53      chs #include <machine/intr.h>
     88   1.1    glass 
     89  1.58  tsutsui extern const vaddr_t kernbase;
     90  1.58  tsutsui extern const vaddr_t kern_end;
     91  1.58  tsutsui 
     92  1.56      chs extern void _delay(unsigned);
     93  1.32      gwr #define delay(us)	_delay((us)<<8)
     94  1.14      gwr #define	DELAY(n)	delay(n)
     95  1.48      gwr 
     96  1.32      gwr #endif	/* _KERNEL && !_LOCORE */
     97  1.41    veego #endif	/* !_MACHINE_PARAM_H_ */
     98