xref: /netbsd-src/sys/arch/newsmips/include/disklabel.h (revision a47e2eb75818146a02ebb0a41df61c325b8d3935)
1*a47e2eb7Sbouyer /*	$NetBSD: disklabel.h,v 1.2 2011/08/30 12:39:57 bouyer Exp $	*/
2117df8f7Stsubai 
3117df8f7Stsubai /*
4117df8f7Stsubai  * Copyright (c) 1994 Christopher G. Demetriou
5117df8f7Stsubai  * All rights reserved.
6117df8f7Stsubai  *
7117df8f7Stsubai  * Redistribution and use in source and binary forms, with or without
8117df8f7Stsubai  * modification, are permitted provided that the following conditions
9117df8f7Stsubai  * are met:
10117df8f7Stsubai  * 1. Redistributions of source code must retain the above copyright
11117df8f7Stsubai  *    notice, this list of conditions and the following disclaimer.
12117df8f7Stsubai  * 2. Redistributions in binary form must reproduce the above copyright
13117df8f7Stsubai  *    notice, this list of conditions and the following disclaimer in the
14117df8f7Stsubai  *    documentation and/or other materials provided with the distribution.
15117df8f7Stsubai  * 3. All advertising materials mentioning features or use of this software
16117df8f7Stsubai  *    must display the following acknowledgement:
17117df8f7Stsubai  *      This product includes software developed by Christopher G. Demetriou.
18117df8f7Stsubai  * 4. The name of the author may not be used to endorse or promote products
19117df8f7Stsubai  *    derived from this software without specific prior written permission
20117df8f7Stsubai  *
21117df8f7Stsubai  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22117df8f7Stsubai  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23117df8f7Stsubai  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24117df8f7Stsubai  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25117df8f7Stsubai  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26117df8f7Stsubai  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27117df8f7Stsubai  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28117df8f7Stsubai  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29117df8f7Stsubai  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30117df8f7Stsubai  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31117df8f7Stsubai  */
32117df8f7Stsubai 
33117df8f7Stsubai #ifndef _MACHINE_DISKLABEL_H_
34117df8f7Stsubai #define _MACHINE_DISKLABEL_H_
35117df8f7Stsubai 
36*a47e2eb7Sbouyer #define LABELUSESMBR	0			/* no MBR partitionning */
37117df8f7Stsubai #define	LABELSECTOR	0			/* sector containing label */
38117df8f7Stsubai #define	LABELOFFSET	64			/* offset of label in sector */
39117df8f7Stsubai #define	MAXPARTITIONS	8			/* number of partitions */
40117df8f7Stsubai #define	RAW_PART	2			/* raw partition: xx?c */
41117df8f7Stsubai #define NUMBOOT		2			/* bootxx + xxboot... */
42117df8f7Stsubai 
43117df8f7Stsubai /* Just a dummy */
44117df8f7Stsubai struct cpu_disklabel {
45117df8f7Stsubai 	int	cd_dummy;			/* must have one element. */
46117df8f7Stsubai };
47117df8f7Stsubai 
48117df8f7Stsubai #endif /* _MACHINE_DISKLABEL_H_ */
49