1 /* @(#)dsklabel.h	1.6 06/09/13 Copyright 1997 J. Schilling */
2 /*
3  * 	Definitions for disk labels
4  *
5  *	Copyright (c) 1997 J. Schilling
6  */
7 /*
8  * The contents of this file are subject to the terms of the
9  * Common Development and Distribution License, Version 1.0 only
10  * (the "License").  You may not use this file except in compliance
11  * with the License.
12  *
13  * See the file CDDL.Schily.txt in this distribution for details.
14  * A copy of the CDDL is also available via the Internet at
15  * http://www.opensource.org/licenses/cddl1.txt
16  *
17  * When distributing Covered Code, include this CDDL HEADER in each
18  * file and include the License file CDDL.Schily.txt from this distribution.
19  */
20 
21 #ifndef	_DSKLABEL_H
22 #define	_DSKLABEL_H
23 
24 #ifndef _SCHILY_UTYPES_H
25 #include <schily/utypes.h>
26 #endif
27 
28 #if	(defined(HAVE_SYS_DKIO_H) && defined(HAVE_SYS_DKLABEL_H)) || \
29 	(defined(HAVE_SUN_DKIO_H) && defined(HAVE_SUN_DKLABEL_H))
30 #define	HAVE_DKIO
31 #endif
32 
33 #if (defined(sparc) || defined(mc68000)) && defined(sun)
34 #else
35 /*
36  * Quick hack to disable DKIO on Solais x86
37  */
38 #undef	HAVE_DKIO
39 #endif
40 
41 #ifdef	HAVE_DKIO
42 
43 #	ifdef	HAVE_SYS_DKIO_H
44 #		include <sys/dkio.h>
45 #	endif
46 #	ifdef	HAVE_SYS_DKLABEL_H
47 #		include <sys/dklabel.h>
48 #	endif
49 #	ifdef	HAVE_SUN_DKIO_H
50 #		include <sun/dkio.h>
51 #	endif
52 #	ifdef	HAVE_SUN_DKLABEL_H
53 #		include <sun/dklabel.h>
54 #	endif
55 
56 #else
57 #	include "sun_dkio.h"
58 #	include "sun_dklabel.h"
59 #	undef	DKIOCGCONF
60 #	define	DKIOCGCONF	12345678
61 #	undef	DKIOCGAPART
62 #	define	DKIOCGAPART	12345679
63 #	undef	DKIOCSAPART
64 #	define	DKIOCSAPART	12345670
65 #	undef	DKIOCSGEOM
66 #	define	DKIOCSGEOM	12345671
67 #	undef	DKIOCINFO
68 #	define	DKIOCINFO	12345672
69 #endif
70 
71 #endif	/* _DSKLABEL_H */
72