xref: /netbsd/sys/arch/algor/include/disklabel.h (revision 509fd41b)
1*509fd41bSbouyer /*	$NetBSD: disklabel.h,v 1.5 2011/08/30 12:39:52 bouyer Exp $	*/
216b9c606Sthorpej 
316b9c606Sthorpej /*
416b9c606Sthorpej  * Copyright (c) 1994 Christopher G. Demetriou
516b9c606Sthorpej  * All rights reserved.
616b9c606Sthorpej  *
716b9c606Sthorpej  * Redistribution and use in source and binary forms, with or without
816b9c606Sthorpej  * modification, are permitted provided that the following conditions
916b9c606Sthorpej  * are met:
1016b9c606Sthorpej  * 1. Redistributions of source code must retain the above copyright
1116b9c606Sthorpej  *    notice, this list of conditions and the following disclaimer.
1216b9c606Sthorpej  * 2. Redistributions in binary form must reproduce the above copyright
1316b9c606Sthorpej  *    notice, this list of conditions and the following disclaimer in the
1416b9c606Sthorpej  *    documentation and/or other materials provided with the distribution.
1516b9c606Sthorpej  * 3. All advertising materials mentioning features or use of this software
1616b9c606Sthorpej  *    must display the following acknowledgement:
1716b9c606Sthorpej  *      This product includes software developed by Christopher G. Demetriou.
1816b9c606Sthorpej  * 4. The name of the author may not be used to endorse or promote products
1916b9c606Sthorpej  *    derived from this software without specific prior written permission
2016b9c606Sthorpej  *
2116b9c606Sthorpej  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2216b9c606Sthorpej  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2316b9c606Sthorpej  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2416b9c606Sthorpej  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2516b9c606Sthorpej  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2616b9c606Sthorpej  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2716b9c606Sthorpej  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2816b9c606Sthorpej  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2916b9c606Sthorpej  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3016b9c606Sthorpej  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3116b9c606Sthorpej  */
3216b9c606Sthorpej 
3316b9c606Sthorpej #ifndef _ALGOR_DISKLABEL_H_
3416b9c606Sthorpej #define _ALGOR_DISKLABEL_H_
3516b9c606Sthorpej 
36*509fd41bSbouyer #define LABELUSESMBR	0			/* no MBR partitionning */
3716b9c606Sthorpej #define	LABELSECTOR	0			/* sector containing label */
3816b9c606Sthorpej #define	LABELOFFSET	64			/* offset of label in sector */
3916b9c606Sthorpej #define	MAXPARTITIONS	8			/* number of partitions */
4016b9c606Sthorpej #define	RAW_PART	2			/* raw partition: xx?c */
4116b9c606Sthorpej 
42a37289dbSdyoung #if HAVE_NBTOOL_CONFIG_H
43a37289dbSdyoung #include <nbinclude/sys/dkbad.h>
44a37289dbSdyoung #else
4516b9c606Sthorpej #include <sys/dkbad.h>
46a37289dbSdyoung #endif /* HAVE_NBTOOL_CONFIG_H */
4716b9c606Sthorpej 
4816b9c606Sthorpej /* Just a dummy */
4916b9c606Sthorpej struct cpu_disklabel {
5009dbb89bSpooka #define __HAVE_DISKLABEL_DKBAD
5116b9c606Sthorpej 	struct dkbad bad;			/* must have one element. */
5216b9c606Sthorpej };
5316b9c606Sthorpej 
5416b9c606Sthorpej #endif	/* !_ALGOR_DISKLABEL_H_ */
55