xref: /netbsd-src/sys/arch/alpha/include/disklabel.h (revision a47e2eb75818146a02ebb0a41df61c325b8d3935)
1*a47e2eb7Sbouyer /* $NetBSD: disklabel.h,v 1.11 2011/08/30 12:39:52 bouyer Exp $ */
285854cb4Scgd 
385854cb4Scgd /*
45d472dbaScgd  * Copyright (c) 1994, 1999 Christopher G. Demetriou
585854cb4Scgd  * All rights reserved.
685854cb4Scgd  *
785854cb4Scgd  * Redistribution and use in source and binary forms, with or without
885854cb4Scgd  * modification, are permitted provided that the following conditions
985854cb4Scgd  * are met:
1085854cb4Scgd  * 1. Redistributions of source code must retain the above copyright
1185854cb4Scgd  *    notice, this list of conditions and the following disclaimer.
1285854cb4Scgd  * 2. Redistributions in binary form must reproduce the above copyright
1385854cb4Scgd  *    notice, this list of conditions and the following disclaimer in the
1485854cb4Scgd  *    documentation and/or other materials provided with the distribution.
1585854cb4Scgd  * 3. All advertising materials mentioning features or use of this software
1685854cb4Scgd  *    must display the following acknowledgement:
175d472dbaScgd  *      This product includes software developed by Christopher G. Demetriou
185d472dbaScgd  *      for the NetBSD Project.
1985854cb4Scgd  * 4. The name of the author may not be used to endorse or promote products
2085854cb4Scgd  *    derived from this software without specific prior written permission
2185854cb4Scgd  *
2285854cb4Scgd  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2385854cb4Scgd  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2485854cb4Scgd  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2585854cb4Scgd  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2685854cb4Scgd  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2785854cb4Scgd  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2885854cb4Scgd  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2985854cb4Scgd  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3085854cb4Scgd  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3185854cb4Scgd  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3285854cb4Scgd  */
3385854cb4Scgd 
3485854cb4Scgd #ifndef _MACHINE_DISKLABEL_H_
3585854cb4Scgd #define _MACHINE_DISKLABEL_H_
3685854cb4Scgd 
37*a47e2eb7Sbouyer #define LABELUSESMBR	0			/* no MBR partitionning */
3885854cb4Scgd #define	LABELSECTOR	0			/* sector containing label */
3985854cb4Scgd #define	LABELOFFSET	64			/* offset of label in sector */
4085854cb4Scgd #define	MAXPARTITIONS	8			/* number of partitions */
4185854cb4Scgd #define	RAW_PART	2			/* raw partition: xx?c */
4285854cb4Scgd 
43a37289dbSdyoung #if HAVE_NBTOOL_CONFIG_H
44a37289dbSdyoung #include <nbinclude/sys/dkbad.h>
45a37289dbSdyoung #else
46778552d3Scgd #include <sys/dkbad.h>
47a37289dbSdyoung #endif /* HAVE_NBTOOL_CONFIG_H */
48778552d3Scgd 
4985854cb4Scgd /* Just a dummy */
5085854cb4Scgd struct cpu_disklabel {
5109dbb89bSpooka #define __HAVE_DISKLABEL_DKBAD
52778552d3Scgd 	struct dkbad bad;			/* bad-sector information */
5385854cb4Scgd };
5485854cb4Scgd 
5585854cb4Scgd #endif /* _MACHINE_DISKLABEL_H_ */
56