xref: /netbsd-src/usr.sbin/sysinst/arch/evbsh3/md.h (revision 50dbef1a0984584fde2327cb17adcc37acd69659)
1*50dbef1aSdholland /*	$NetBSD: md.h,v 1.1 2014/07/26 19:30:45 dholland Exp $	*/
2*50dbef1aSdholland 
3*50dbef1aSdholland /*
4*50dbef1aSdholland  * Copyright 1997 Piermont Information Systems Inc.
5*50dbef1aSdholland  * All rights reserved.
6*50dbef1aSdholland  *
7*50dbef1aSdholland  * Based on code written by Philip A. Nelson for Piermont Information
8*50dbef1aSdholland  * Systems Inc.
9*50dbef1aSdholland  *
10*50dbef1aSdholland  * Redistribution and use in source and binary forms, with or without
11*50dbef1aSdholland  * modification, are permitted provided that the following conditions
12*50dbef1aSdholland  * are met:
13*50dbef1aSdholland  * 1. Redistributions of source code must retain the above copyright
14*50dbef1aSdholland  *    notice, this list of conditions and the following disclaimer.
15*50dbef1aSdholland  * 2. Redistributions in binary form must reproduce the above copyright
16*50dbef1aSdholland  *    notice, this list of conditions and the following disclaimer in the
17*50dbef1aSdholland  *    documentation and/or other materials provided with the distribution.
18*50dbef1aSdholland  * 3. The name of Piermont Information Systems Inc. may not be used to endorse
19*50dbef1aSdholland  *    or promote products derived from this software without specific prior
20*50dbef1aSdholland  *    written permission.
21*50dbef1aSdholland  *
22*50dbef1aSdholland  * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS''
23*50dbef1aSdholland  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24*50dbef1aSdholland  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25*50dbef1aSdholland  * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE
26*50dbef1aSdholland  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27*50dbef1aSdholland  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28*50dbef1aSdholland  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29*50dbef1aSdholland  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30*50dbef1aSdholland  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31*50dbef1aSdholland  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
32*50dbef1aSdholland  * THE POSSIBILITY OF SUCH DAMAGE.
33*50dbef1aSdholland  *
34*50dbef1aSdholland  */
35*50dbef1aSdholland 
36*50dbef1aSdholland /*
37*50dbef1aSdholland  * Symbolic names for disk partitions
38*50dbef1aSdholland  */
39*50dbef1aSdholland #include <machine/disklabel.h>
40*50dbef1aSdholland 
41*50dbef1aSdholland #define	PART_ROOT	PART_A
42*50dbef1aSdholland #define	PART_SWAP	PART_B
43*50dbef1aSdholland #define	PART_RAW	RAW_PART
44*50dbef1aSdholland #define	PART_USR	PART_D
45*50dbef1aSdholland #define	PART_FIRST_FREE	PART_D
46*50dbef1aSdholland 
47*50dbef1aSdholland #define	DEFROOTSIZE	200	/* Default root size */
48*50dbef1aSdholland #define	XNEEDMB		100	/* Extra megs for full X installation */
49*50dbef1aSdholland 
50*50dbef1aSdholland #define	SET_KERNEL_1_NAME	"kern-T_SH7706LAN"
51*50dbef1aSdholland 
52*50dbef1aSdholland /*
53*50dbef1aSdholland  * Machine-specific command to write a new label to a disk.
54*50dbef1aSdholland  * If not defined, we assume the port does not support disklabels and
55*50dbef1aSdholland  * the hand-edited disklabel will NOT be written by MI code.
56*50dbef1aSdholland  * ews4800mips stores disklabel and EWS-UX compatible PDINFO+VTOC.
57*50dbef1aSdholland  * Don't use -r option.
58*50dbef1aSdholland  */
59*50dbef1aSdholland #define	DISKLABEL_CMD	"disklabel -w -r"
60