param.h revision 1.10.6.2 1 1.10.6.2 tls /* $NetBSD: param.h,v 1.10.6.2 2014/08/20 00:03:18 tls Exp $ */
2 1.10.6.2 tls
3 1.10.6.2 tls /*
4 1.10.6.2 tls * Copyright (c) 1992, 1993
5 1.10.6.2 tls * The Regents of the University of California. All rights reserved.
6 1.10.6.2 tls *
7 1.10.6.2 tls * This code is derived from software contributed to Berkeley by
8 1.10.6.2 tls * the Systems Programming Group of the University of Utah Computer
9 1.10.6.2 tls * Science Department and Ralph Campbell.
10 1.10.6.2 tls *
11 1.10.6.2 tls * Redistribution and use in source and binary forms, with or without
12 1.10.6.2 tls * modification, are permitted provided that the following conditions
13 1.10.6.2 tls * are met:
14 1.10.6.2 tls * 1. Redistributions of source code must retain the above copyright
15 1.10.6.2 tls * notice, this list of conditions and the following disclaimer.
16 1.10.6.2 tls * 2. Redistributions in binary form must reproduce the above copyright
17 1.10.6.2 tls * notice, this list of conditions and the following disclaimer in the
18 1.10.6.2 tls * documentation and/or other materials provided with the distribution.
19 1.10.6.2 tls * 3. Neither the name of the University nor the names of its contributors
20 1.10.6.2 tls * may be used to endorse or promote products derived from this software
21 1.10.6.2 tls * without specific prior written permission.
22 1.10.6.2 tls *
23 1.10.6.2 tls * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 1.10.6.2 tls * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 1.10.6.2 tls * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 1.10.6.2 tls * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 1.10.6.2 tls * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 1.10.6.2 tls * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 1.10.6.2 tls * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 1.10.6.2 tls * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 1.10.6.2 tls * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 1.10.6.2 tls * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 1.10.6.2 tls * SUCH DAMAGE.
34 1.10.6.2 tls */
35 1.10.6.2 tls /*
36 1.10.6.2 tls * Copyright (c) 1988 University of Utah.
37 1.10.6.2 tls *
38 1.10.6.2 tls * This code is derived from software contributed to Berkeley by
39 1.10.6.2 tls * the Systems Programming Group of the University of Utah Computer
40 1.10.6.2 tls * Science Department and Ralph Campbell.
41 1.10.6.2 tls *
42 1.10.6.2 tls * Redistribution and use in source and binary forms, with or without
43 1.10.6.2 tls * modification, are permitted provided that the following conditions
44 1.10.6.2 tls * are met:
45 1.10.6.2 tls * 1. Redistributions of source code must retain the above copyright
46 1.10.6.2 tls * notice, this list of conditions and the following disclaimer.
47 1.10.6.2 tls * 2. Redistributions in binary form must reproduce the above copyright
48 1.10.6.2 tls * notice, this list of conditions and the following disclaimer in the
49 1.10.6.2 tls * documentation and/or other materials provided with the distribution.
50 1.10.6.2 tls * 3. All advertising materials mentioning features or use of this software
51 1.10.6.2 tls * must display the following acknowledgement:
52 1.10.6.2 tls * This product includes software developed by the University of
53 1.10.6.2 tls * California, Berkeley and its contributors.
54 1.10.6.2 tls * 4. Neither the name of the University nor the names of its contributors
55 1.10.6.2 tls * may be used to endorse or promote products derived from this software
56 1.10.6.2 tls * without specific prior written permission.
57 1.10.6.2 tls *
58 1.10.6.2 tls * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
59 1.10.6.2 tls * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
60 1.10.6.2 tls * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
61 1.10.6.2 tls * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
62 1.10.6.2 tls * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
63 1.10.6.2 tls * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
64 1.10.6.2 tls * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
65 1.10.6.2 tls * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
66 1.10.6.2 tls * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
67 1.10.6.2 tls * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
68 1.10.6.2 tls * SUCH DAMAGE.
69 1.10.6.2 tls */
70 1.10.6.2 tls
71 1.10.6.2 tls #ifndef _PLAYSTATION2_PARAM_H_
72 1.10.6.2 tls #define _PLAYSTATION2_PARAM_H_
73 1.10.6.2 tls
74 1.10.6.2 tls #define _MACHINE playstation2
75 1.10.6.2 tls #define MACHINE "playstation2"
76 1.10.6.2 tls
77 1.10.6.2 tls #include <mips/mips_param.h>
78 1.10.6.2 tls
79 1.10.6.2 tls #define DEV_BSIZE 512
80 1.10.6.2 tls #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
81 1.10.6.2 tls #define BLKDEV_IOSIZE 2048
82 1.10.6.2 tls #define MAXPHYS (64 * 1024) /* Maximum raw I/O transfer size */
83 1.10.6.2 tls
84 1.10.6.2 tls /*
85 1.10.6.2 tls * Constants related to network buffer management.
86 1.10.6.2 tls * MCLBYTES must be no larger than NBPG (the software page size), and,
87 1.10.6.2 tls * on machines that exchange pages of input or output buffers with mbuf
88 1.10.6.2 tls * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
89 1.10.6.2 tls * of the hardware page size.
90 1.10.6.2 tls */
91 1.10.6.2 tls #define MSIZE 256 /* size of an mbuf */
92 1.10.6.2 tls
93 1.10.6.2 tls #ifndef MCLSHIFT
94 1.10.6.2 tls #define MCLSHIFT 11 /* convert bytes to m_buf clusters */
95 1.10.6.2 tls /* 2K cluster can hold Ether frame */
96 1.10.6.2 tls #endif /* MCLSHIFT */
97 1.10.6.2 tls
98 1.10.6.2 tls #define MCLBYTES (1 << MCLSHIFT) /* size of a m_buf cluster */
99 1.10.6.2 tls
100 1.10.6.2 tls #ifndef NMBCLUSTERS
101 1.10.6.2 tls #if defined(_KERNEL_OPT)
102 1.10.6.2 tls #include "opt_gateway.h"
103 1.10.6.2 tls #endif
104 1.10.6.2 tls
105 1.10.6.2 tls #ifdef GATEWAY
106 1.10.6.2 tls #define NMBCLUSTERS 2048 /* Map size, max cluster allocation */
107 1.10.6.2 tls #else
108 1.10.6.2 tls #define NMBCLUSTERS 1024 /* Map size, max cluster allocation */
109 1.10.6.2 tls #endif
110 1.10.6.2 tls #endif
111 1.10.6.2 tls
112 1.10.6.2 tls #ifdef _KERNEL
113 1.10.6.2 tls #ifndef _LOCORE
114 1.10.6.2 tls
115 1.10.6.2 tls extern void delay(unsigned);
116 1.10.6.2 tls #define DELAY(n) delay(n)
117 1.10.6.2 tls
118 1.10.6.2 tls /* provide spl*() */
119 1.10.6.2 tls #include <machine/intr.h>
120 1.10.6.2 tls
121 1.10.6.2 tls #endif /* _LOCORE */
122 1.10.6.2 tls #endif /* _KERNEL */
123 1.10.6.2 tls
124 1.10.6.2 tls #endif /* !_PLAYSTATION2_PARAM_H_ */
125