xref: /netbsd/usr.sbin/sysinst/arch/emips/md.h (revision 6c042427)
1*6c042427Stsutsui /*	$NetBSD: md.h,v 1.6 2022/06/16 14:03:38 tsutsui Exp $	*/
226165e63Sdholland 
326165e63Sdholland /*
426165e63Sdholland  * Copyright 1997 Piermont Information Systems Inc.
526165e63Sdholland  * All rights reserved.
626165e63Sdholland  *
726165e63Sdholland  * Written by Philip A. Nelson for Piermont Information Systems Inc.
826165e63Sdholland  *
926165e63Sdholland  * Redistribution and use in source and binary forms, with or without
1026165e63Sdholland  * modification, are permitted provided that the following conditions
1126165e63Sdholland  * are met:
1226165e63Sdholland  * 1. Redistributions of source code must retain the above copyright
1326165e63Sdholland  *    notice, this list of conditions and the following disclaimer.
1426165e63Sdholland  * 2. Redistributions in binary form must reproduce the above copyright
1526165e63Sdholland  *    notice, this list of conditions and the following disclaimer in the
1626165e63Sdholland  *    documentation and/or other materials provided with the distribution.
1726165e63Sdholland  * 3. The name of Piermont Information Systems Inc. may not be used to endorse
1826165e63Sdholland  *    or promote products derived from this software without specific prior
1926165e63Sdholland  *    written permission.
2026165e63Sdholland  *
2126165e63Sdholland  * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS''
2226165e63Sdholland  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2326165e63Sdholland  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2426165e63Sdholland  * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE
2526165e63Sdholland  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2626165e63Sdholland  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2726165e63Sdholland  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2826165e63Sdholland  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2926165e63Sdholland  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
3026165e63Sdholland  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
3126165e63Sdholland  * THE POSSIBILITY OF SUCH DAMAGE.
3226165e63Sdholland  *
3326165e63Sdholland  */
3426165e63Sdholland 
3526165e63Sdholland /* md.h -- Machine specific definitions for the emips */
3626165e63Sdholland 
3726165e63Sdholland /* Constants and defines */
3826165e63Sdholland 
3926165e63Sdholland /*
4026165e63Sdholland  * Symbolic names for disk partitions.
4126165e63Sdholland  */
4226165e63Sdholland #define PART_ROOT	PART_A
4326165e63Sdholland #define PART_SWAP	PART_B
4426165e63Sdholland #define PART_RAW	PART_C
4526165e63Sdholland #define PART_USR	PART_D	/* Can be after PART_FIRST_FREE */
4626165e63Sdholland #define PART_FIRST_FREE	PART_E
4726165e63Sdholland 
4826165e63Sdholland #define DEFROOTSIZE	64	/* Default root size */
49*6c042427Stsutsui #define DEFSWAPSIZE	32	/* Default swap size */
5026165e63Sdholland #define DEFVARSIZE	32	/* Default /var size, if created */
51d609e7dcSmartin #define DEFUSRSIZE	800	/* Default /usr size, if /home */
52d609e7dcSmartin #define XNEEDMB		256	/* Extra megs for full X installation */
53d609e7dcSmartin #define DEBNEEDMB	900	/* Extra megs for debug sets */
5426165e63Sdholland 
5526165e63Sdholland /* have support for booting from UFS2 */
5626165e63Sdholland #define HAVE_UFS2_BOOT
5726165e63Sdholland 
5826165e63Sdholland /* have file system specific primary boot loader */
5926165e63Sdholland #define HAVE_BOOTXX_xFS
6026165e63Sdholland #define BOOTXXDIR	"/usr/mdec"
6126165e63Sdholland #define BOOTXX_FFSV1	"bootxx_ffs"
6226165e63Sdholland #define BOOTXX_FFSV2	"bootxx_ffsv2"
6326165e63Sdholland 
6426165e63Sdholland /*
6526165e63Sdholland  * Machine-specific command to write a new label to a disk.
6626165e63Sdholland  * If not defined, we assume the port does not support disklabels and
6726165e63Sdholland  * hand-edited disklabel will NOT be written by MI code.
6826165e63Sdholland  */
6926165e63Sdholland #define DISKLABEL_CMD "disklabel -w -r"
7026165e63Sdholland 
7126165e63Sdholland 
7226165e63Sdholland /*
7326165e63Sdholland  *  Default filesets to fetch and install during installation
7426165e63Sdholland  *  or upgrade. The standard sets are:
75688c0875Smaya  *      base etc comp games man misc rescue tests text xbase xcomp xetc xfont xserver
7626165e63Sdholland  */
7726165e63Sdholland #define SET_KERNEL_1_NAME	"kern-GENERIC"
7826165e63Sdholland #define MD_SETS_VALID	SET_KERNEL, SET_SYSTEM, SET_X11_NOSERVERS
7926165e63Sdholland 
8026165e63Sdholland /* default install CD device is ace1a */
8126165e63Sdholland #ifdef CD_NAMES
8226165e63Sdholland #undef CD_NAMES
8326165e63Sdholland #endif
8497ce9ae4Smartin #define CD_NAMES "ace1"
85