md.h revision 1.7
11.7Stsutsui/* $NetBSD: md.h,v 1.7 2022/06/16 14:03:38 tsutsui Exp $ */ 21.1Sdholland 31.1Sdholland/* 41.1Sdholland * Copyright 1997 Piermont Information Systems Inc. 51.1Sdholland * All rights reserved. 61.1Sdholland * 71.1Sdholland * Written by Philip A. Nelson for Piermont Information Systems Inc. 81.1Sdholland * 91.1Sdholland * Redistribution and use in source and binary forms, with or without 101.1Sdholland * modification, are permitted provided that the following conditions 111.1Sdholland * are met: 121.1Sdholland * 1. Redistributions of source code must retain the above copyright 131.1Sdholland * notice, this list of conditions and the following disclaimer. 141.1Sdholland * 2. Redistributions in binary form must reproduce the above copyright 151.1Sdholland * notice, this list of conditions and the following disclaimer in the 161.1Sdholland * documentation and/or other materials provided with the distribution. 171.1Sdholland * 3. The name of Piermont Information Systems Inc. may not be used to endorse 181.1Sdholland * or promote products derived from this software without specific prior 191.1Sdholland * written permission. 201.1Sdholland * 211.1Sdholland * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' 221.1Sdholland * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 231.1Sdholland * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 241.1Sdholland * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE 251.1Sdholland * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 261.1Sdholland * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 271.1Sdholland * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 281.1Sdholland * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 291.1Sdholland * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 301.1Sdholland * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 311.1Sdholland * THE POSSIBILITY OF SUCH DAMAGE. 321.1Sdholland * 331.1Sdholland */ 341.1Sdholland 351.1Sdholland/* md.h -- Machine specific definitions for the cobalt */ 361.1Sdholland 371.1Sdholland 381.1Sdholland#include <machine/cpu.h> 391.1Sdholland#include <sys/types.h> 401.1Sdholland#include <sys/stat.h> 411.1Sdholland#include <fcntl.h> 421.1Sdholland#include <unistd.h> 431.1Sdholland 441.1Sdholland/* cobalt uses the mbr code. */ 451.1Sdholland#include "mbr.h" 461.1Sdholland 471.3Smartin/* boot partition size and type */ 481.3Smartin#define PART_BOOT (5 * 1024 * 1024) /* 5MB boot partition */ 491.3Smartin#define PART_BOOT_MIN (1 * 1024 * 1024) /* 1MB minimum */ 501.3Smartin#define PART_BOOT_TYPE FS_EX2FS 511.5Smartin#define PART_BOOT_SUBT 1 /* use "old" ext2 */ 521.6Stsutsui#define PART_BOOT_MOUNT "/ext2" 531.1Sdholland 541.1Sdholland/* default partition size */ 551.7Stsutsui#define DEFROOTSIZE 64 /* Default root size */ 561.1Sdholland#define DEFSWAPSIZE 128 /* Default swap size */ 571.1Sdholland#define DEFVARSIZE 64 /* Default /var size, if created */ 581.2Smartin#define DEFUSRSIZE 850 /* Default /usr size, if created */ 591.1Sdholland 601.1Sdholland/* Megs required for a full X installation. */ 611.2Smartin#define XNEEDMB 250 621.2Smartin 631.2Smartin#define DEBNEEDMB 900 /* Extra megs for debug sets */ 641.1Sdholland 651.1Sdholland/* have support for booting from UFS2 */ 661.1Sdholland#define HAVE_UFS2_BOOT 671.1Sdholland 681.1Sdholland 691.1Sdholland/* 701.1Sdholland * Default filesets to fetch and install during installation 711.1Sdholland * or upgrade. The standard sets are: 721.4Smaya * base etc comp games man misc rescue tests text xbase xcomp xetc xfont xserver 731.1Sdholland */ 741.1Sdholland#define SET_KERNEL_1_NAME "kern-GENERIC" 751.1Sdholland#define MD_SETS_SELECTED SET_KERNEL_1, SET_SYSTEM, SET_X11_NOSERVERS 761.1Sdholland 771.1Sdholland/* 781.1Sdholland * Machine-specific command to write a new label to a disk. 791.1Sdholland * For example, cobalt uses "/sbin/disklabel -w -r", just like i386 801.1Sdholland * miniroot scripts, though this may leave a bogus incore label. 811.1Sdholland * Sun ports should probably use DISKLABEL_CMD "/sbin/disklabel -w" 821.1Sdholland * to get incore to ondisk inode translation for the Sun proms. 831.1Sdholland * If not defined, we assume the port does not support disklabels and 841.1Sdholland * hand-edited disklabel will NOT be written by MI code. 851.1Sdholland */ 861.1Sdholland#define DISKLABEL_CMD "disklabel -w -r" 87