1 1.62 simonb /* $NetBSD: param.h,v 1.62 2021/05/31 14:38:56 simonb 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.62 simonb #ifdef _KERNEL_OPT 44 1.62 simonb #include "opt_param.h" 45 1.62 simonb #endif 46 1.62 simonb 47 1.1 glass /* 48 1.48 gwr * Machine dependent constants for both the 49 1.48 gwr * Sun3 and Sun3X series. 50 1.1 glass */ 51 1.34 cgd #define _MACHINE sun3 52 1.33 cgd #define MACHINE "sun3" 53 1.11 glass 54 1.1 glass #define PGSHIFT 13 /* LOG2(NBPG) */ 55 1.15 gwr 56 1.58 tsutsui #define MAXBSIZE 0x8000 /* max FS block size */ 57 1.58 tsutsui #define MAXPHYS 0xe000 /* XXX: sun3 DMA can't handle 64KB? */ 58 1.58 tsutsui 59 1.49 gwr #ifdef MSGBUFSIZE 60 1.49 gwr #error "MSGBUFSIZE is not user-adjustable for this arch" 61 1.49 gwr #endif 62 1.52 chs #define MSGBUFOFF 0 63 1.52 chs #define MSGBUFSIZE (NBPG) 64 1.43 veego 65 1.48 gwr /* This is needed by ps (actually USPACE). */ 66 1.43 veego #define UPAGES 2 /* pages of u-area */ 67 1.1 glass 68 1.48 gwr #ifdef _SUN3_ 69 1.58 tsutsui #include <machine/param3.h> 70 1.48 gwr #endif /* SUN3 */ 71 1.48 gwr #ifdef _SUN3X_ 72 1.58 tsutsui #include <machine/param3x.h> 73 1.48 gwr #endif /* SUN3X */ 74 1.58 tsutsui 75 1.58 tsutsui /* default for rump etc. */ 76 1.58 tsutsui #if !defined(_SUN3_) && !defined(_SUN3X_) 77 1.58 tsutsui #include <machine/param3.h> 78 1.58 tsutsui #endif 79 1.45 leo 80 1.41 veego #include <m68k/param.h> 81 1.1 glass 82 1.48 gwr #if defined(_KERNEL) && !defined(_LOCORE) 83 1.48 gwr 84 1.53 chs #include <machine/intr.h> 85 1.1 glass 86 1.58 tsutsui extern const vaddr_t kernbase; 87 1.58 tsutsui extern const vaddr_t kern_end; 88 1.58 tsutsui 89 1.56 chs extern void _delay(unsigned); 90 1.32 gwr #define delay(us) _delay((us)<<8) 91 1.14 gwr #define DELAY(n) delay(n) 92 1.48 gwr 93 1.32 gwr #endif /* _KERNEL && !_LOCORE */ 94 1.41 veego #endif /* !_MACHINE_PARAM_H_ */ 95