xref: /netbsd-src/sys/arch/hp300/include/param.h (revision 4c23b30cffa2bcedf326605ccefd57d974350337)
1*4c23b30cSpara /*	$NetBSD: param.h,v 1.53 2012/02/10 17:35:49 para Exp $	*/
2132b4143Scgd 
36dedb515Scgd /*
49b6bd2d9Srmind  * Copyright (c) 1988 University of Utah.
50c3f5c03Smycroft  * Copyright (c) 1982, 1986, 1990, 1993
60c3f5c03Smycroft  *	The Regents of the University of California.  All rights reserved.
76dedb515Scgd  *
86dedb515Scgd  * This code is derived from software contributed to Berkeley by
96dedb515Scgd  * the Systems Programming Group of the University of Utah Computer
106dedb515Scgd  * Science Department.
116dedb515Scgd  *
126dedb515Scgd  * Redistribution and use in source and binary forms, with or without
136dedb515Scgd  * modification, are permitted provided that the following conditions
146dedb515Scgd  * are met:
156dedb515Scgd  * 1. Redistributions of source code must retain the above copyright
166dedb515Scgd  *    notice, this list of conditions and the following disclaimer.
176dedb515Scgd  * 2. Redistributions in binary form must reproduce the above copyright
186dedb515Scgd  *    notice, this list of conditions and the following disclaimer in the
196dedb515Scgd  *    documentation and/or other materials provided with the distribution.
20aad01611Sagc  * 3. Neither the name of the University nor the names of its contributors
21aad01611Sagc  *    may be used to endorse or promote products derived from this software
22aad01611Sagc  *    without specific prior written permission.
23aad01611Sagc  *
24aad01611Sagc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25aad01611Sagc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26aad01611Sagc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27aad01611Sagc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28aad01611Sagc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29aad01611Sagc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30aad01611Sagc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31aad01611Sagc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32aad01611Sagc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33aad01611Sagc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34aad01611Sagc  * SUCH DAMAGE.
35aad01611Sagc  *
36aad01611Sagc  * from: Utah $Hdr: machparam.h 1.16 92/12/20$
37aad01611Sagc  *
38aad01611Sagc  *	@(#)param.h	8.1 (Berkeley) 6/10/93
39aad01611Sagc  */
406dedb515Scgd 
4147e5fb6eStsutsui #ifndef	_HP300_PARAM_H_
4247e5fb6eStsutsui #define	_HP300_PARAM_H_
43931d90fcSveego 
446dedb515Scgd /*
456dedb515Scgd  * Machine dependent constants for HP9000 series 300.
466dedb515Scgd  */
4718ec26aaScgd #define	_MACHINE	hp300
486dedb515Scgd #define	MACHINE		"hp300"
496dedb515Scgd 
506dedb515Scgd #define	PGSHIFT		12		/* LOG2(NBPG) */
51931d90fcSveego #define	KERNBASE	0x00000000	/* start of kernel virtual */
52931d90fcSveego 
531c599835Sveego #define	UPAGES		2		/* pages of u-area */
541c599835Sveego 
55be611a44Sveego #include <m68k/param.h>
56be611a44Sveego 
571c599835Sveego #define	NPTEPG		(NBPG/(sizeof (pt_entry_t)))
581c599835Sveego 
596dedb515Scgd /*
60dded044fSthorpej  * Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
61dded044fSthorpej  * logical pages.
626dedb515Scgd  */
63*4c23b30cSpara #define	NKMEMPAGES_MIN_DEFAULT	((8 * 1024 * 1024) >> PAGE_SHIFT)
64*4c23b30cSpara #define	NKMEMPAGES_MAX_DEFAULT	((128 * 1024 * 1024) >> PAGE_SHIFT)
656dedb515Scgd 
6650341359Sthorpej #if defined(_KERNEL) && !defined(_LOCORE)
672f5e95ecStsutsui #include <machine/intr.h>
682f5e95ecStsutsui 
6950341359Sthorpej #define	delay(us)	_delay((us) << 8)
7050341359Sthorpej #define DELAY(us)	delay(us)
714c6e3358Sscottr 
72e3e985a0Sthorpej void	_delay(u_int);
7350341359Sthorpej #endif /* _KERNEL && !_LOCORE */
746dedb515Scgd 
7547e5fb6eStsutsui #endif	/* !_HP300_PARAM_H_ */
76