1*072aa173Sjdolecek /* $NetBSD: param.h,v 1.46 2019/01/07 22:00:32 jdolecek Exp $ */
2a63beafcScgd
3fe806afeSderaadt /*
49b6bd2d9Srmind * Copyright (c) 1988 University of Utah.
5377b0979Sglass * Copyright (c) 1992, 1993
6377b0979Sglass * The Regents of the University of California. All rights reserved.
7fe806afeSderaadt *
8fe806afeSderaadt * This code is derived from software contributed to Berkeley by
9fe806afeSderaadt * the Systems Programming Group of the University of Utah Computer
10fe806afeSderaadt * Science Department and Ralph Campbell.
11fe806afeSderaadt *
12fe806afeSderaadt * Redistribution and use in source and binary forms, with or without
13fe806afeSderaadt * modification, are permitted provided that the following conditions
14fe806afeSderaadt * are met:
15fe806afeSderaadt * 1. Redistributions of source code must retain the above copyright
16fe806afeSderaadt * notice, this list of conditions and the following disclaimer.
17fe806afeSderaadt * 2. Redistributions in binary form must reproduce the above copyright
18fe806afeSderaadt * notice, this list of conditions and the following disclaimer in the
19fe806afeSderaadt * 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.11 89/08/14
37aad01611Sagc *
38aad01611Sagc * @(#)param.h 8.1 (Berkeley) 6/10/93
39aad01611Sagc */
40fe806afeSderaadt
41838b5e08Sad #ifndef _PMAX_PARAM_H_
42838b5e08Sad #define _PMAX_PARAM_H_
43838b5e08Sad
44fe806afeSderaadt /*
45e14d1d47Sjonathan * Machine dependent constants for mips-based DECstations.
46fe806afeSderaadt */
471f9e0954Sjonathan
4818ec26aaScgd #define _MACHINE pmax
496b63c739Sglass #define MACHINE "pmax"
50d9e51441Stsutsui
51d9e51441Stsutsui #include <mips/mips_param.h>
52fe806afeSderaadt
53e37ce1c5Snisimura #ifdef _KERNEL
54e37ce1c5Snisimura #ifndef _LOCORE
55e37ce1c5Snisimura
5602cdf4d2Sdsl void delay(int n);
57e37ce1c5Snisimura extern int cpuspeed;
585e124f3aSmatt static __inline void __unused
DELAY(int n)59aca8f571Stsutsui DELAY(int n)
60aca8f571Stsutsui {
61aca8f571Stsutsui register int __N = cpuspeed * n;
62aca8f571Stsutsui
63aca8f571Stsutsui do {
64aca8f571Stsutsui __asm("addiu %0,%1,-1" : "=r" (__N) : "0" (__N));
65aca8f571Stsutsui } while (__N > 0);
66aca8f571Stsutsui }
67e37ce1c5Snisimura
68d8fe1186Snisimura #include <machine/intr.h>
69d8fe1186Snisimura
70e37ce1c5Snisimura #endif /* !_LOCORE */
71e37ce1c5Snisimura #endif /* _KERNEL */
72838b5e08Sad
73838b5e08Sad #endif /* !_PMAX_PARAM_H_ */
74