xref: /titanic_41/usr/src/cmd/mdb/common/modules/md/mdinclude.h (revision e4d060fb4c00d44cd578713eb9a921f594b733b8)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_MDINCLUDE_H
28 #define	_MDINCLUDE_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 #include <mdb/mdb_modapi.h>
37 
38 #include <sys/types.h>
39 #include <sys/kmem.h>
40 #include <sys/mutex.h>
41 #include <sys/condvar.h>
42 
43 #include <sys/lvm/md_crc.h>
44 #include <sys/lvm/md_basic.h>
45 #include <sys/lvm/md_names.h>
46 #include <sys/lvm/mdvar.h>
47 #include <sys/lvm/md_mdiox.h>
48 
49 #include <sys/lvm/md_mirror.h>
50 #include <sys/lvm/md_raid.h>
51 #include <sys/lvm/md_sp.h>
52 #include <sys/lvm/md_stripe.h>
53 #include <sys/lvm/md_trans.h>
54 #include <sys/lvm/md_hotspares.h>
55 
56 /* these are defined in snarf.c and md.c */
57 extern md_set_t	mdset[MD_MAXSETS];
58 extern set_t	md_nsets;
59 extern unit_t	md_nunits;
60 extern int	md_verbose;
61 extern mddb_set_t	set_dbs[MD_MAXSETS];
62 
63 extern int	snarf_sets(void);
64 extern int	findset(char *);
65 
66 #ifdef	__cplusplus
67 }
68 #endif
69 
70 #endif	/* _MDINCLUDE_H */
71