1*5a2fc3a5Stsutsui /* $NetBSD: md.h,v 1.8 2022/06/17 14:08:54 tsutsui Exp $ */ 250dbef1aSdholland 350dbef1aSdholland /* 450dbef1aSdholland * Copyright 1997 Piermont Information Systems Inc. 550dbef1aSdholland * All rights reserved. 650dbef1aSdholland * 750dbef1aSdholland * Based on code written by Philip A. Nelson for Piermont Information 850dbef1aSdholland * Systems Inc. 950dbef1aSdholland * 1050dbef1aSdholland * Redistribution and use in source and binary forms, with or without 1150dbef1aSdholland * modification, are permitted provided that the following conditions 1250dbef1aSdholland * are met: 1350dbef1aSdholland * 1. Redistributions of source code must retain the above copyright 1450dbef1aSdholland * notice, this list of conditions and the following disclaimer. 1550dbef1aSdholland * 2. Redistributions in binary form must reproduce the above copyright 1650dbef1aSdholland * notice, this list of conditions and the following disclaimer in the 1750dbef1aSdholland * documentation and/or other materials provided with the distribution. 1850dbef1aSdholland * 3. The name of Piermont Information Systems Inc. may not be used to endorse 1950dbef1aSdholland * or promote products derived from this software without specific prior 2050dbef1aSdholland * written permission. 2150dbef1aSdholland * 2250dbef1aSdholland * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' 2350dbef1aSdholland * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2450dbef1aSdholland * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2550dbef1aSdholland * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE 2650dbef1aSdholland * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2750dbef1aSdholland * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2850dbef1aSdholland * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2950dbef1aSdholland * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 3050dbef1aSdholland * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 3150dbef1aSdholland * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 3250dbef1aSdholland * THE POSSIBILITY OF SUCH DAMAGE. 3350dbef1aSdholland * 3450dbef1aSdholland */ 3550dbef1aSdholland 3650dbef1aSdholland /* md.h -- Machine specific definitions for the sparc */ 3750dbef1aSdholland 3850dbef1aSdholland /* 3950dbef1aSdholland * Symbolic names for disk partitions. 4050dbef1aSdholland */ 4150dbef1aSdholland #define PART_ROOT PART_A 4250dbef1aSdholland #define PART_SWAP PART_B 4350dbef1aSdholland #define PART_RAW PART_C 4450dbef1aSdholland #define PART_USR PART_G /* Can be after PART_FIRST_FREE */ 4550dbef1aSdholland #define PART_FIRST_FREE PART_D 4650dbef1aSdholland 4750dbef1aSdholland #define DEFROOTSIZE 64 /* Default root size */ 48*5a2fc3a5Stsutsui #define DEFSWAPSIZE (-1) /* Default swap size */ 4950dbef1aSdholland #define DEFVARSIZE 32 /* Default /var size, if created */ 507a2eea57Smartin #define DEFUSRSIZE 1200 /* Default /usr size, if /home */ 517a2eea57Smartin #define XNEEDMB 300 /* Extra megs for full X installation */ 527a2eea57Smartin #define DEBNEEDMB 1200 /* Extra megs for debug sets */ 5350dbef1aSdholland 54c063bddaSmartin /* sunlabels force track alignment (true = no further processing) */ 55c063bddaSmartin #define MD_DISKLABEL_SET_ALIGN_PRE(align, track) \ 56c063bddaSmartin (align) = (track), true 57c063bddaSmartin 5850dbef1aSdholland /* use UFS2 by default for ffs */ 5950dbef1aSdholland #define DEFAULT_UFS2 6050dbef1aSdholland 6150dbef1aSdholland /* have support for booting from UFS2 */ 6250dbef1aSdholland #define HAVE_UFS2_BOOT 6350dbef1aSdholland 644103857bSmartin /* have support for booting from GPT disks */ 654f0c4b95Smartin /* #define HAVE_GPT_BOOT */ /* not yet */ 664103857bSmartin 6750dbef1aSdholland /* allow using tmpfs for /tmp instead of mfs */ 6850dbef1aSdholland #define HAVE_TMPFS 6950dbef1aSdholland 7050dbef1aSdholland /* 7150dbef1aSdholland * Default filesets to fetch and install during installation 7250dbef1aSdholland * or upgrade. 7350dbef1aSdholland */ 7450dbef1aSdholland #define SET_KERNEL_1_NAME "kern-GENERIC" 7550dbef1aSdholland #define SET_KERNEL_2_NAME "kern-GENERIC.UP" 7650dbef1aSdholland 7750dbef1aSdholland /* 7850dbef1aSdholland * Machine-specific command to write a new label to a disk. 7950dbef1aSdholland * If not defined, we assume the port does not support disklabels and 8050dbef1aSdholland * the hand-edited disklabel will NOT be written by MI code. 8150dbef1aSdholland */ 8250dbef1aSdholland #define DISKLABEL_CMD "disklabel -w -r" 83