11.4Stsutsui/*	$NetBSD: md.h,v 1.4 2025/04/26 03:49:33 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. All advertising materials mentioning features or use of this software
181.1Sdholland *    must display the following acknowledgement:
191.1Sdholland *      This product includes software developed for the NetBSD Project by
201.1Sdholland *      Piermont Information Systems Inc.
211.1Sdholland * 4. The name of Piermont Information Systems Inc. may not be used to endorse
221.1Sdholland *    or promote products derived from this software without specific prior
231.1Sdholland *    written permission.
241.1Sdholland *
251.1Sdholland * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS''
261.1Sdholland * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
271.1Sdholland * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
281.1Sdholland * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE
291.1Sdholland * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
301.1Sdholland * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
311.1Sdholland * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
321.1Sdholland * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
331.1Sdholland * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
341.1Sdholland * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
351.1Sdholland * THE POSSIBILITY OF SUCH DAMAGE.
361.1Sdholland *
371.1Sdholland */
381.1Sdholland
391.1Sdholland/* md.h -- Machine specific definitions for the playstation2 */
401.1Sdholland
411.1Sdholland
421.1Sdholland#include <machine/cpu.h>
431.1Sdholland#include <sys/types.h>
441.1Sdholland#include <sys/stat.h>
451.1Sdholland#include <fcntl.h>
461.1Sdholland#include <unistd.h>
471.1Sdholland
481.1Sdholland#include "mbr.h"
491.1Sdholland
501.1Sdholland#define	DEFROOTSIZE	32	/* Default root size */
511.3Stsutsui#define	DEFSWAPSIZE	64	/* Default swap size */
521.1Sdholland#define	DEFVARSIZE	0	/* Default /var size, if created */
531.1Sdholland#define	DEFUSRSIZE	0	/* Default /usr size, if created */
541.1Sdholland#define	XNEEDMB		0	/* Extra megs for full X installation(not yet)*/
551.1Sdholland
561.1Sdholland/*
571.1Sdholland *  Default filesets to fetch and install during installation
581.1Sdholland *  or upgrade. The standard sets are:
591.2Smaya *      base, etc, comp, games, man, misc, rescue, tests, text
601.1Sdholland */
611.1Sdholland#define SET_KERNEL_1_NAME	"kern-GENERIC"
621.1Sdholland#define MD_SETS_VALID	SET_KERNEL, SET_SYSTEM
631.1Sdholland
641.1Sdholland/*
651.1Sdholland * Machine-specific command to write a new label to a disk.
661.1Sdholland */
671.1Sdholland#define	DISKLABEL_CMD "disklabel -w -r"
68