xref: /netbsd-src/sys/arch/news68k/include/disklabel.h (revision a47e2eb75818146a02ebb0a41df61c325b8d3935)
1*a47e2eb7Sbouyer /*	$NetBSD: disklabel.h,v 1.3 2011/08/30 12:39:57 bouyer Exp $	*/
2a1099430Stsutsui 
3a1099430Stsutsui /*
4a1099430Stsutsui  * Copyright (c) 1994 Christopher G. Demetriou
5a1099430Stsutsui  * All rights reserved.
6a1099430Stsutsui  *
7a1099430Stsutsui  * Redistribution and use in source and binary forms, with or without
8a1099430Stsutsui  * modification, are permitted provided that the following conditions
9a1099430Stsutsui  * are met:
10a1099430Stsutsui  * 1. Redistributions of source code must retain the above copyright
11a1099430Stsutsui  *    notice, this list of conditions and the following disclaimer.
12a1099430Stsutsui  * 2. Redistributions in binary form must reproduce the above copyright
13a1099430Stsutsui  *    notice, this list of conditions and the following disclaimer in the
14a1099430Stsutsui  *    documentation and/or other materials provided with the distribution.
15a1099430Stsutsui  * 3. All advertising materials mentioning features or use of this software
16a1099430Stsutsui  *    must display the following acknowledgement:
17a1099430Stsutsui  *      This product includes software developed by Christopher G. Demetriou.
18a1099430Stsutsui  * 4. The name of the author may not be used to endorse or promote products
19a1099430Stsutsui  *    derived from this software without specific prior written permission
20a1099430Stsutsui  *
21a1099430Stsutsui  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22a1099430Stsutsui  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23a1099430Stsutsui  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24a1099430Stsutsui  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25a1099430Stsutsui  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26a1099430Stsutsui  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27a1099430Stsutsui  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28a1099430Stsutsui  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29a1099430Stsutsui  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30a1099430Stsutsui  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31a1099430Stsutsui  */
32a1099430Stsutsui 
335fc2d9d9Stsutsui #ifndef _NEWS68K_DISKLABEL_H_
345fc2d9d9Stsutsui #define _NEWS68K_DISKLABEL_H_
35a1099430Stsutsui 
36*a47e2eb7Sbouyer #define LABELUSESMBR	0			/* no MBR partitionning */
37a1099430Stsutsui #define	LABELSECTOR	0			/* sector containing label */
38a1099430Stsutsui #define	LABELOFFSET	64			/* offset of label in sector */
39a1099430Stsutsui #define	MAXPARTITIONS	8			/* number of partitions */
40a1099430Stsutsui #define	RAW_PART	2			/* raw partition: xx?c */
41a1099430Stsutsui #define NUMBOOT		2			/* bootxx + xxboot... */
42a1099430Stsutsui 
43a1099430Stsutsui /* Just a dummy */
44a1099430Stsutsui struct cpu_disklabel {
45a1099430Stsutsui 	int	cd_dummy;			/* must have one element. */
46a1099430Stsutsui };
47a1099430Stsutsui 
485fc2d9d9Stsutsui #endif /* _NEWS68K_DISKLABEL_H_ */
49