xref: /netbsd-src/sys/arch/hppa/include/disklabel.h (revision 6d3ceb1d619615401b17c9aa3e4bc674a1cb048b)
1*6d3ceb1dSskrll /*	$NetBSD: disklabel.h,v 1.1 2014/02/24 07:23:43 skrll Exp $	*/
2*6d3ceb1dSskrll 
3*6d3ceb1dSskrll /*	$OpenBSD: disklabel.h,v 1.5 2000/07/05 22:37:22 mickey Exp $	*/
4*6d3ceb1dSskrll 
5*6d3ceb1dSskrll /*
6*6d3ceb1dSskrll  * Copyright (c) 1994 Christopher G. Demetriou
7*6d3ceb1dSskrll  * All rights reserved.
8*6d3ceb1dSskrll  *
9*6d3ceb1dSskrll  * Redistribution and use in source and binary forms, with or without
10*6d3ceb1dSskrll  * modification, are permitted provided that the following conditions
11*6d3ceb1dSskrll  * are met:
12*6d3ceb1dSskrll  * 1. Redistributions of source code must retain the above copyright
13*6d3ceb1dSskrll  *    notice, this list of conditions and the following disclaimer.
14*6d3ceb1dSskrll  * 2. Redistributions in binary form must reproduce the above copyright
15*6d3ceb1dSskrll  *    notice, this list of conditions and the following disclaimer in the
16*6d3ceb1dSskrll  *    documentation and/or other materials provided with the distribution.
17*6d3ceb1dSskrll  * 3. All advertising materials mentioning features or use of this software
18*6d3ceb1dSskrll  *    must display the following acknowledgement:
19*6d3ceb1dSskrll  *      This product includes software developed by Christopher G. Demetriou.
20*6d3ceb1dSskrll  * 4. The name of the author may not be used to endorse or promote products
21*6d3ceb1dSskrll  *    derived from this software without specific prior written permission
22*6d3ceb1dSskrll  *
23*6d3ceb1dSskrll  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24*6d3ceb1dSskrll  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25*6d3ceb1dSskrll  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26*6d3ceb1dSskrll  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27*6d3ceb1dSskrll  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28*6d3ceb1dSskrll  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29*6d3ceb1dSskrll  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30*6d3ceb1dSskrll  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31*6d3ceb1dSskrll  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32*6d3ceb1dSskrll  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33*6d3ceb1dSskrll  */
34*6d3ceb1dSskrll 
35*6d3ceb1dSskrll #ifndef _MACHINE_DISKLABEL_H_
36*6d3ceb1dSskrll #define _MACHINE_DISKLABEL_H_
37*6d3ceb1dSskrll 
38*6d3ceb1dSskrll #define LABELUSESMBR		0		/* no MBR partitionning */
39*6d3ceb1dSskrll #define	LABELSECTOR		1		/* sector containing label */
40*6d3ceb1dSskrll #define	LABELOFFSET		0		/* offset of label in sector */
41*6d3ceb1dSskrll 
42*6d3ceb1dSskrll #define	MAXPARTITIONS		16		/* number of partitions */
43*6d3ceb1dSskrll #define	RAW_PART		2		/* raw partition: xx?c */
44*6d3ceb1dSskrll 
45*6d3ceb1dSskrll #if HAVE_NBTOOL_CONFIG_H
46*6d3ceb1dSskrll #include <nbinclude/sys/bootblock.h>
47*6d3ceb1dSskrll #else
48*6d3ceb1dSskrll #include <sys/bootblock.h>
49*6d3ceb1dSskrll #endif /* HAVE_NBTOOL_CONFIG_H */
50*6d3ceb1dSskrll 
51*6d3ceb1dSskrll #if HAVE_NBTOOL_CONFIG_H
52*6d3ceb1dSskrll #include <nbinclude/sys/dkbad.h>
53*6d3ceb1dSskrll #else
54*6d3ceb1dSskrll #include <sys/dkbad.h>
55*6d3ceb1dSskrll #endif /* HAVE_NBTOOL_CONFIG_H */
56*6d3ceb1dSskrll struct cpu_disklabel {
57*6d3ceb1dSskrll 	struct hppa_lifvol lifvol;
58*6d3ceb1dSskrll 	struct hppa_lifdir lifdir[HPPA_LIF_NUMDIR];
59*6d3ceb1dSskrll #define __HAVE_DISKLABEL_DKBAD
60*6d3ceb1dSskrll 	struct dkbad bad;			/* To make wd(4) happy */
61*6d3ceb1dSskrll };
62*6d3ceb1dSskrll 
63*6d3ceb1dSskrll #endif /* _MACHINE_DISKLABEL_H_ */
64