1*31b3bdceSthorpej /* $NetBSD: md.h,v 1.1 2024/01/06 07:38:13 thorpej Exp $ */ 2*31b3bdceSthorpej 3*31b3bdceSthorpej /* 4*31b3bdceSthorpej * Copyright 1997 Piermont Information Systems Inc. 5*31b3bdceSthorpej * All rights reserved. 6*31b3bdceSthorpej * 7*31b3bdceSthorpej * Based on code written by Philip A. Nelson for Piermont Information 8*31b3bdceSthorpej * Systems Inc. 9*31b3bdceSthorpej * 10*31b3bdceSthorpej * Redistribution and use in source and binary forms, with or without 11*31b3bdceSthorpej * modification, are permitted provided that the following conditions 12*31b3bdceSthorpej * are met: 13*31b3bdceSthorpej * 1. Redistributions of source code must retain the above copyright 14*31b3bdceSthorpej * notice, this list of conditions and the following disclaimer. 15*31b3bdceSthorpej * 2. Redistributions in binary form must reproduce the above copyright 16*31b3bdceSthorpej * notice, this list of conditions and the following disclaimer in the 17*31b3bdceSthorpej * documentation and/or other materials provided with the distribution. 18*31b3bdceSthorpej * 3. The name of Piermont Information Systems Inc. may not be used to endorse 19*31b3bdceSthorpej * or promote products derived from this software without specific prior 20*31b3bdceSthorpej * written permission. 21*31b3bdceSthorpej * 22*31b3bdceSthorpej * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' 23*31b3bdceSthorpej * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24*31b3bdceSthorpej * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25*31b3bdceSthorpej * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE 26*31b3bdceSthorpej * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 27*31b3bdceSthorpej * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 28*31b3bdceSthorpej * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 29*31b3bdceSthorpej * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 30*31b3bdceSthorpej * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 31*31b3bdceSthorpej * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 32*31b3bdceSthorpej * THE POSSIBILITY OF SUCH DAMAGE. 33*31b3bdceSthorpej * 34*31b3bdceSthorpej */ 35*31b3bdceSthorpej 36*31b3bdceSthorpej /* md.h -- Machine specific definitions for the virt68k */ 37*31b3bdceSthorpej 38*31b3bdceSthorpej 39*31b3bdceSthorpej #include <machine/cpu.h> 40*31b3bdceSthorpej #include <sys/types.h> 41*31b3bdceSthorpej #include <sys/stat.h> 42*31b3bdceSthorpej #include <fcntl.h> 43*31b3bdceSthorpej #include <unistd.h> 44*31b3bdceSthorpej 45*31b3bdceSthorpej 46*31b3bdceSthorpej /* constants and defines */ 47*31b3bdceSthorpej 48*31b3bdceSthorpej /* 49*31b3bdceSthorpej * Symbolic names for disk partitions. 50*31b3bdceSthorpej */ 51*31b3bdceSthorpej #define PART_ROOT PART_A 52*31b3bdceSthorpej #define PART_SWAP PART_B 53*31b3bdceSthorpej #define PART_RAW PART_C 54*31b3bdceSthorpej #define PART_USR PART_D /* Can be after PART_FIRST_FREE */ 55*31b3bdceSthorpej #define PART_FIRST_FREE PART_E 56*31b3bdceSthorpej 57*31b3bdceSthorpej #define DEFROOTSIZE 40 /* Default root size */ 58*31b3bdceSthorpej #define DEFSWAPSIZE 32 /* Default swap size */ 59*31b3bdceSthorpej #define DEFVARSIZE 32 /* Default /var size, if created */ 60*31b3bdceSthorpej #define DEFUSRSIZE 700 /* Default /usr size, if /home */ 61*31b3bdceSthorpej #define XNEEDMB 250 /* Extra megs for full X installation */ 62*31b3bdceSthorpej #define DEBNEEDMB 800 /* Extra megs for debug sets */ 63*31b3bdceSthorpej 64*31b3bdceSthorpej /* 65*31b3bdceSthorpej * Default filesets to fetch and install during installation 66*31b3bdceSthorpej * or upgrade. The standard sets are: 67*31b3bdceSthorpej * base etc comp games man misc rescue tests text xbase xcomp xetc xfont xserver 68*31b3bdceSthorpej */ 69*31b3bdceSthorpej #define SET_KERNEL_1_NAME "kern-GENERIC" 70*31b3bdceSthorpej #define MD_SETS_VALID SET_KERNEL, SET_SYSTEM, SET_X11_NOSERVERS 71*31b3bdceSthorpej 72*31b3bdceSthorpej /* 73*31b3bdceSthorpej * Machine-specific command to write a new label to a disk. 74*31b3bdceSthorpej * For example, i386 uses "/sbin/disklabel -w -r", just like i386 75*31b3bdceSthorpej * miniroot scripts, though this may leave a bogus incore label. 76*31b3bdceSthorpej * Sun ports should probably use DISKLABEL_CMD "/sbin/disklabel -w" 77*31b3bdceSthorpej * to get incore to ondisk inode translation for the Sun proms. 78*31b3bdceSthorpej * If not defined, we assume the port does not support disklabels and 79*31b3bdceSthorpej * hand-edited disklabel will NOT be written by MI code. 80*31b3bdceSthorpej * 81*31b3bdceSthorpej * On virt68k, do what the miniroot install scripts did. 82*31b3bdceSthorpej */ 83*31b3bdceSthorpej #define DISKLABEL_CMD "disklabel -w -r" 84