md.h revision 1.1
11.1Sthorpej/* $NetBSD: md.h,v 1.1 2024/01/06 07:38:13 thorpej Exp $ */ 21.1Sthorpej 31.1Sthorpej/* 41.1Sthorpej * Copyright 1997 Piermont Information Systems Inc. 51.1Sthorpej * All rights reserved. 61.1Sthorpej * 71.1Sthorpej * Based on code written by Philip A. Nelson for Piermont Information 81.1Sthorpej * Systems Inc. 91.1Sthorpej * 101.1Sthorpej * Redistribution and use in source and binary forms, with or without 111.1Sthorpej * modification, are permitted provided that the following conditions 121.1Sthorpej * are met: 131.1Sthorpej * 1. Redistributions of source code must retain the above copyright 141.1Sthorpej * notice, this list of conditions and the following disclaimer. 151.1Sthorpej * 2. Redistributions in binary form must reproduce the above copyright 161.1Sthorpej * notice, this list of conditions and the following disclaimer in the 171.1Sthorpej * documentation and/or other materials provided with the distribution. 181.1Sthorpej * 3. The name of Piermont Information Systems Inc. may not be used to endorse 191.1Sthorpej * or promote products derived from this software without specific prior 201.1Sthorpej * written permission. 211.1Sthorpej * 221.1Sthorpej * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' 231.1Sthorpej * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 241.1Sthorpej * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 251.1Sthorpej * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE 261.1Sthorpej * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 271.1Sthorpej * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 281.1Sthorpej * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 291.1Sthorpej * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 301.1Sthorpej * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 311.1Sthorpej * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 321.1Sthorpej * THE POSSIBILITY OF SUCH DAMAGE. 331.1Sthorpej * 341.1Sthorpej */ 351.1Sthorpej 361.1Sthorpej/* md.h -- Machine specific definitions for the virt68k */ 371.1Sthorpej 381.1Sthorpej 391.1Sthorpej#include <machine/cpu.h> 401.1Sthorpej#include <sys/types.h> 411.1Sthorpej#include <sys/stat.h> 421.1Sthorpej#include <fcntl.h> 431.1Sthorpej#include <unistd.h> 441.1Sthorpej 451.1Sthorpej 461.1Sthorpej/* constants and defines */ 471.1Sthorpej 481.1Sthorpej/* 491.1Sthorpej * Symbolic names for disk partitions. 501.1Sthorpej */ 511.1Sthorpej#define PART_ROOT PART_A 521.1Sthorpej#define PART_SWAP PART_B 531.1Sthorpej#define PART_RAW PART_C 541.1Sthorpej#define PART_USR PART_D /* Can be after PART_FIRST_FREE */ 551.1Sthorpej#define PART_FIRST_FREE PART_E 561.1Sthorpej 571.1Sthorpej#define DEFROOTSIZE 40 /* Default root size */ 581.1Sthorpej#define DEFSWAPSIZE 32 /* Default swap size */ 591.1Sthorpej#define DEFVARSIZE 32 /* Default /var size, if created */ 601.1Sthorpej#define DEFUSRSIZE 700 /* Default /usr size, if /home */ 611.1Sthorpej#define XNEEDMB 250 /* Extra megs for full X installation */ 621.1Sthorpej#define DEBNEEDMB 800 /* Extra megs for debug sets */ 631.1Sthorpej 641.1Sthorpej/* 651.1Sthorpej * Default filesets to fetch and install during installation 661.1Sthorpej * or upgrade. The standard sets are: 671.1Sthorpej * base etc comp games man misc rescue tests text xbase xcomp xetc xfont xserver 681.1Sthorpej */ 691.1Sthorpej#define SET_KERNEL_1_NAME "kern-GENERIC" 701.1Sthorpej#define MD_SETS_VALID SET_KERNEL, SET_SYSTEM, SET_X11_NOSERVERS 711.1Sthorpej 721.1Sthorpej/* 731.1Sthorpej * Machine-specific command to write a new label to a disk. 741.1Sthorpej * For example, i386 uses "/sbin/disklabel -w -r", just like i386 751.1Sthorpej * miniroot scripts, though this may leave a bogus incore label. 761.1Sthorpej * Sun ports should probably use DISKLABEL_CMD "/sbin/disklabel -w" 771.1Sthorpej * to get incore to ondisk inode translation for the Sun proms. 781.1Sthorpej * If not defined, we assume the port does not support disklabels and 791.1Sthorpej * hand-edited disklabel will NOT be written by MI code. 801.1Sthorpej * 811.1Sthorpej * On virt68k, do what the miniroot install scripts did. 821.1Sthorpej */ 831.1Sthorpej#define DISKLABEL_CMD "disklabel -w -r" 84