xref: /openbsd-src/sys/arch/arm/include/disklabel.h (revision 70864f2a35d4a3aa60f79291d28ef37786c9dd98)
1*70864f2aSkrw /*	$OpenBSD: disklabel.h,v 1.15 2015/09/30 15:35:30 krw Exp $	*/
2e1e4f5b1Sdrahn 
3e1e4f5b1Sdrahn /*
4e1e4f5b1Sdrahn  * Copyright (c) 1994 Mark Brinicombe.
5e1e4f5b1Sdrahn  * Copyright (c) 1994 Brini.
6e1e4f5b1Sdrahn  * All rights reserved.
7e1e4f5b1Sdrahn  *
8e1e4f5b1Sdrahn  * This code is derived from software written for Brini by Mark Brinicombe
9e1e4f5b1Sdrahn  *
10e1e4f5b1Sdrahn  * Redistribution and use in source and binary forms, with or without
11e1e4f5b1Sdrahn  * modification, are permitted provided that the following conditions
12e1e4f5b1Sdrahn  * are met:
13e1e4f5b1Sdrahn  * 1. Redistributions of source code must retain the above copyright
14e1e4f5b1Sdrahn  *    notice, this list of conditions and the following disclaimer.
15e1e4f5b1Sdrahn  * 2. Redistributions in binary form must reproduce the above copyright
16e1e4f5b1Sdrahn  *    notice, this list of conditions and the following disclaimer in the
17e1e4f5b1Sdrahn  *    documentation and/or other materials provided with the distribution.
18e1e4f5b1Sdrahn  * 3. All advertising materials mentioning features or use of this software
19e1e4f5b1Sdrahn  *    must display the following acknowledgement:
20e1e4f5b1Sdrahn  *	This product includes software developed by Brini.
21e1e4f5b1Sdrahn  * 4. The name of the company nor the name of the author may be used to
22e1e4f5b1Sdrahn  *    endorse or promote products derived from this software without specific
23e1e4f5b1Sdrahn  *    prior written permission.
24e1e4f5b1Sdrahn  *
25e1e4f5b1Sdrahn  * THIS SOFTWARE IS PROVIDED BY BRINI ``AS IS'' AND ANY EXPRESS OR IMPLIED
26e1e4f5b1Sdrahn  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
27e1e4f5b1Sdrahn  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
28e1e4f5b1Sdrahn  * IN NO EVENT SHALL BRINI OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
29e1e4f5b1Sdrahn  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
30e1e4f5b1Sdrahn  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
31e1e4f5b1Sdrahn  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32e1e4f5b1Sdrahn  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33e1e4f5b1Sdrahn  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34e1e4f5b1Sdrahn  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35e1e4f5b1Sdrahn  * SUCH DAMAGE.
36e1e4f5b1Sdrahn  */
37e1e4f5b1Sdrahn 
38*70864f2aSkrw #ifndef _MACHINE_DISKLABEL_H_
39*70864f2aSkrw #define _MACHINE_DISKLABEL_H_
40e1e4f5b1Sdrahn 
41e1e4f5b1Sdrahn #define	LABELSECTOR	1	/* sector containing label */
42e1e4f5b1Sdrahn #define	LABELOFFSET	0	/* offset of label in sector */
43e1e4f5b1Sdrahn #define	MAXPARTITIONS	16	/* number of partitions */
44e1e4f5b1Sdrahn 
45*70864f2aSkrw #endif /* _MACHINE_DISKLABEL_H_ */
46