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