1*50f74585Smaya /* $NetBSD: md.h,v 1.3 2019/10/02 11:16:02 maya Exp $ */ 250dbef1aSdholland 350dbef1aSdholland /* 450dbef1aSdholland * Copyright 1997 Piermont Information Systems Inc. 550dbef1aSdholland * All rights reserved. 650dbef1aSdholland * 750dbef1aSdholland * Written by Philip A. Nelson for Piermont Information Systems Inc. 850dbef1aSdholland * 950dbef1aSdholland * Redistribution and use in source and binary forms, with or without 1050dbef1aSdholland * modification, are permitted provided that the following conditions 1150dbef1aSdholland * are met: 1250dbef1aSdholland * 1. Redistributions of source code must retain the above copyright 1350dbef1aSdholland * notice, this list of conditions and the following disclaimer. 1450dbef1aSdholland * 2. Redistributions in binary form must reproduce the above copyright 1550dbef1aSdholland * notice, this list of conditions and the following disclaimer in the 1650dbef1aSdholland * documentation and/or other materials provided with the distribution. 1750dbef1aSdholland * 3. The name of Piermont Information Systems Inc. may not be used to endorse 1850dbef1aSdholland * or promote products derived from this software without specific prior 1950dbef1aSdholland * written permission. 2050dbef1aSdholland * 2150dbef1aSdholland * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' 2250dbef1aSdholland * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2350dbef1aSdholland * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2450dbef1aSdholland * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE 2550dbef1aSdholland * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2650dbef1aSdholland * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2750dbef1aSdholland * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2850dbef1aSdholland * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2950dbef1aSdholland * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 3050dbef1aSdholland * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 3150dbef1aSdholland * THE POSSIBILITY OF SUCH DAMAGE. 3250dbef1aSdholland * 3350dbef1aSdholland */ 3450dbef1aSdholland 3550dbef1aSdholland /* md.h -- Machine specific definitions for the evbmips */ 3650dbef1aSdholland 3750dbef1aSdholland /* evbmips uses the mbr code. */ 3850dbef1aSdholland #include "mbr.h" 3950dbef1aSdholland 4050dbef1aSdholland /* constants and defines */ 4150dbef1aSdholland 4250dbef1aSdholland /* Megs required for a full X installation. */ 4350dbef1aSdholland #define XNEEDMB 50 4450dbef1aSdholland 457db80fabSmaya /* have support for booting from UFS2 */ 467db80fabSmaya #define HAVE_UFS2_BOOT 477db80fabSmaya 4850dbef1aSdholland /* 4950dbef1aSdholland * Default filesets to fetch and install during installation or upgrade. 50*50f74585Smaya * The standard sets are: base etc comp games man misc rescue tests text 5150dbef1aSdholland */ 5250dbef1aSdholland 5350dbef1aSdholland #if defined(ARCH_mipsel) || defined(ARCH_mipseb) 5450dbef1aSdholland #define SET_KERNEL_1_NAME "kern-ALCHEMY" 5550dbef1aSdholland #define SET_KERNEL_2_NAME "kern-AR531X" 5650dbef1aSdholland #define SET_KERNEL_3_NAME "kern-DBAU1500" 5750dbef1aSdholland #define SET_KERNEL_4_NAME "kern-DBAU1550" 5850dbef1aSdholland #define SET_KERNEL_5_NAME "kern-MALTA" 5950dbef1aSdholland #endif 6050dbef1aSdholland #if defined(ARCH_mipsel) 6150dbef1aSdholland #define SET_KERNEL_6_NAME "kern-MTX-1" 6250dbef1aSdholland #define SET_KERNEL_7_NAME "kern-OMSAL400" 6350dbef1aSdholland #endif 6450dbef1aSdholland 6550dbef1aSdholland #if defined(ARCH_mips64eb) || defined(ARCH_mips64el) 6650dbef1aSdholland #define SET_KERNEL_4_NAME "kern-MALTA32" 6750dbef1aSdholland #define SET_KERNEL_3_NAME "kern-MALTA64" 6850dbef1aSdholland #define SET_KERNEL_2_NAME "kern-XLSATX32" 6950dbef1aSdholland #define SET_KERNEL_1_NAME "kern-XLSATX64" 7050dbef1aSdholland #endif 7150dbef1aSdholland 7250dbef1aSdholland #undef evbmips 7350dbef1aSdholland #undef evbmips64 7450dbef1aSdholland 7550dbef1aSdholland #define MD_SETS_SELECTED SET_SYSTEM 7650dbef1aSdholland 7750dbef1aSdholland /* 7850dbef1aSdholland * Machine-specific command to write a new label to a disk. 7950dbef1aSdholland * For example, bebox uses "/sbin/disklabel -w -r", just like bebox 8050dbef1aSdholland * miniroot scripts, though this may leave a bogus incore label. 8150dbef1aSdholland * Sun ports should probably use DISKLABEL_CMD "/sbin/disklabel -w" 8250dbef1aSdholland * to get incore to ondisk inode translation for the Sun proms. 8350dbef1aSdholland * If not defined, we assume the port does not support disklabels and 8450dbef1aSdholland * hand-edited disklabel will NOT be written by MI code. 8550dbef1aSdholland */ 8650dbef1aSdholland #define DISKLABEL_CMD "disklabel -w -r" 87