md.h revision 1.2
11.2Stsutsui/*	$NetBSD: md.h,v 1.2 2025/04/26 03:49:34 tsutsui 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#define DEFROOTSIZE	40	/* Default root size */
491.1Sthorpej#define DEFSWAPSIZE	32	/* Default swap size */
501.1Sthorpej#define DEFVARSIZE	32	/* Default /var size, if created */
511.1Sthorpej#define DEFUSRSIZE	700	/* Default /usr size, if /home */
521.1Sthorpej#define XNEEDMB		250	/* Extra megs for full X installation */
531.1Sthorpej#define DEBNEEDMB	800	/* Extra megs for debug sets */
541.1Sthorpej
551.1Sthorpej/*
561.1Sthorpej *  Default filesets to fetch and install during installation
571.1Sthorpej *  or upgrade. The standard sets are:
581.1Sthorpej *      base etc comp games man misc rescue tests text xbase xcomp xetc xfont xserver
591.1Sthorpej */
601.1Sthorpej#define SET_KERNEL_1_NAME	"kern-GENERIC"
611.1Sthorpej#define MD_SETS_VALID SET_KERNEL, SET_SYSTEM, SET_X11_NOSERVERS
621.1Sthorpej
631.1Sthorpej/*
641.1Sthorpej * Machine-specific command to write a new label to a disk.
651.1Sthorpej * For example, i386  uses "/sbin/disklabel -w -r", just like i386
661.1Sthorpej * miniroot scripts, though this may leave a bogus incore label.
671.1Sthorpej * Sun ports should probably use  DISKLABEL_CMD "/sbin/disklabel -w"
681.1Sthorpej * to get incore  to ondisk inode translation for the Sun proms.
691.1Sthorpej * If not defined, we assume the port does not support disklabels and
701.1Sthorpej * hand-edited disklabel will NOT be written by MI code.
711.1Sthorpej *
721.1Sthorpej * On virt68k, do what the miniroot install scripts did.
731.1Sthorpej */
741.1Sthorpej#define DISKLABEL_CMD "disklabel -w -r"
75