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