1254721Semaste/*	$NetBSD: md.h,v 1.3 2022/06/16 14:03:39 tsutsui Exp $	*/
2254721Semaste
3254721Semaste/*
4254721Semaste * Copyright 1997 Piermont Information Systems Inc.
5254721Semaste * All rights reserved.
6254721Semaste *
7254721Semaste * Written by Philip A. Nelson for Piermont Information Systems Inc.
8254721Semaste *
9254721Semaste * Redistribution and use in source and binary forms, with or without
10254721Semaste * modification, are permitted provided that the following conditions
11254721Semaste * are met:
12254721Semaste * 1. Redistributions of source code must retain the above copyright
13263363Semaste *    notice, this list of conditions and the following disclaimer.
14263363Semaste * 2. Redistributions in binary form must reproduce the above copyright
15254721Semaste *    notice, this list of conditions and the following disclaimer in the
16254721Semaste *    documentation and/or other materials provided with the distribution.
17254721Semaste * 3. All advertising materials mentioning features or use of this software
18254721Semaste *    must display the following acknowledgement:
19254721Semaste *      This product includes software developed for the NetBSD Project by
20254721Semaste *      Piermont Information Systems Inc.
21254721Semaste * 4. The name of Piermont Information Systems Inc. may not be used to endorse
22254721Semaste *    or promote products derived from this software without specific prior
23254721Semaste *    written permission.
24254721Semaste *
25254721Semaste * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS''
26254721Semaste * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27254721Semaste * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28254721Semaste * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE
29254721Semaste * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30254721Semaste * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31254721Semaste * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32254721Semaste * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33254721Semaste * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34254721Semaste * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35254721Semaste * THE POSSIBILITY OF SUCH DAMAGE.
36254721Semaste *
37254721Semaste */
38254721Semaste
39254721Semaste/* md.h -- Machine specific definitions for the playstation2 */
40254721Semaste
41254721Semaste
42254721Semaste#include <machine/cpu.h>
43254721Semaste#include <sys/types.h>
44254721Semaste#include <sys/stat.h>
45254721Semaste#include <fcntl.h>
46269024Semaste#include <unistd.h>
47254721Semaste
48254721Semaste#include "mbr.h"
49254721Semaste
50254721Semaste#define	PART_ROOT	PART_A
51254721Semaste#define	PART_SWAP	PART_B
52254721Semaste#define	PART_RAW	PART_C
53254721Semaste#define	PART_USR	PART_D
54254721Semaste#define	PART_FIRST_FREE	PART_D
55254721Semaste
56254721Semaste#define	DEFROOTSIZE	32	/* Default root size */
57254721Semaste#define	DEFSWAPSIZE	64	/* Default swap size */
58254721Semaste#define	DEFVARSIZE	0	/* Default /var size, if created */
59254721Semaste#define	DEFUSRSIZE	0	/* Default /usr size, if created */
60254721Semaste#define	XNEEDMB		0	/* Extra megs for full X installation(not yet)*/
61254721Semaste
62254721Semaste/*
63254721Semaste *  Default filesets to fetch and install during installation
64254721Semaste *  or upgrade. The standard sets are:
65254721Semaste *      base, etc, comp, games, man, misc, rescue, tests, text
66254721Semaste */
67254721Semaste#define SET_KERNEL_1_NAME	"kern-GENERIC"
68254721Semaste#define MD_SETS_VALID	SET_KERNEL, SET_SYSTEM
69254721Semaste
70254721Semaste/*
71254721Semaste * Machine-specific command to write a new label to a disk.
72254721Semaste */
73254721Semaste#define	DISKLABEL_CMD "disklabel -w -r"
74254721Semaste