Home | History | Annotate | Line # | Download | only in include
      1  1.1  skrll /*	$NetBSD: disklabel.h,v 1.1 2014/02/24 07:23:43 skrll Exp $	*/
      2  1.1  skrll 
      3  1.1  skrll /*	$OpenBSD: disklabel.h,v 1.5 2000/07/05 22:37:22 mickey Exp $	*/
      4  1.1  skrll 
      5  1.1  skrll /*
      6  1.1  skrll  * Copyright (c) 1994 Christopher G. Demetriou
      7  1.1  skrll  * All rights reserved.
      8  1.1  skrll  *
      9  1.1  skrll  * Redistribution and use in source and binary forms, with or without
     10  1.1  skrll  * modification, are permitted provided that the following conditions
     11  1.1  skrll  * are met:
     12  1.1  skrll  * 1. Redistributions of source code must retain the above copyright
     13  1.1  skrll  *    notice, this list of conditions and the following disclaimer.
     14  1.1  skrll  * 2. Redistributions in binary form must reproduce the above copyright
     15  1.1  skrll  *    notice, this list of conditions and the following disclaimer in the
     16  1.1  skrll  *    documentation and/or other materials provided with the distribution.
     17  1.1  skrll  * 3. All advertising materials mentioning features or use of this software
     18  1.1  skrll  *    must display the following acknowledgement:
     19  1.1  skrll  *      This product includes software developed by Christopher G. Demetriou.
     20  1.1  skrll  * 4. The name of the author may not be used to endorse or promote products
     21  1.1  skrll  *    derived from this software without specific prior written permission
     22  1.1  skrll  *
     23  1.1  skrll  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     24  1.1  skrll  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     25  1.1  skrll  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     26  1.1  skrll  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     27  1.1  skrll  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     28  1.1  skrll  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     29  1.1  skrll  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     30  1.1  skrll  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     31  1.1  skrll  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     32  1.1  skrll  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     33  1.1  skrll  */
     34  1.1  skrll 
     35  1.1  skrll #ifndef _MACHINE_DISKLABEL_H_
     36  1.1  skrll #define _MACHINE_DISKLABEL_H_
     37  1.1  skrll 
     38  1.1  skrll #define LABELUSESMBR		0		/* no MBR partitionning */
     39  1.1  skrll #define	LABELSECTOR		1		/* sector containing label */
     40  1.1  skrll #define	LABELOFFSET		0		/* offset of label in sector */
     41  1.1  skrll 
     42  1.1  skrll #define	MAXPARTITIONS		16		/* number of partitions */
     43  1.1  skrll #define	RAW_PART		2		/* raw partition: xx?c */
     44  1.1  skrll 
     45  1.1  skrll #if HAVE_NBTOOL_CONFIG_H
     46  1.1  skrll #include <nbinclude/sys/bootblock.h>
     47  1.1  skrll #else
     48  1.1  skrll #include <sys/bootblock.h>
     49  1.1  skrll #endif /* HAVE_NBTOOL_CONFIG_H */
     50  1.1  skrll 
     51  1.1  skrll #if HAVE_NBTOOL_CONFIG_H
     52  1.1  skrll #include <nbinclude/sys/dkbad.h>
     53  1.1  skrll #else
     54  1.1  skrll #include <sys/dkbad.h>
     55  1.1  skrll #endif /* HAVE_NBTOOL_CONFIG_H */
     56  1.1  skrll struct cpu_disklabel {
     57  1.1  skrll 	struct hppa_lifvol lifvol;
     58  1.1  skrll 	struct hppa_lifdir lifdir[HPPA_LIF_NUMDIR];
     59  1.1  skrll #define __HAVE_DISKLABEL_DKBAD
     60  1.1  skrll 	struct dkbad bad;			/* To make wd(4) happy */
     61  1.1  skrll };
     62  1.1  skrll 
     63  1.1  skrll #endif /* _MACHINE_DISKLABEL_H_ */
     64