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 2004 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #include "libdiskmgt.h"
28 
29 dm_desc_type_t alias_assoc_types [] = {
30 	DM_DRIVE,
31 	-1
32 };
33 
34 dm_desc_type_t bus_assoc_types [] = {
35 	DM_CONTROLLER,
36 	DM_BUS,
37 	-1
38 };
39 
40 dm_desc_type_t controller_assoc_types [] = {
41 	DM_DRIVE,
42 	DM_PATH,
43 	DM_BUS,
44 	-1
45 };
46 
47 dm_desc_type_t drive_assoc_types [] = {
48 	DM_CONTROLLER,
49 	DM_PATH,
50 	DM_ALIAS,
51 	DM_MEDIA,
52 	-1
53 };
54 
55 dm_desc_type_t media_assoc_types [] = {
56 	DM_DRIVE,
57 	DM_PARTITION,
58 	DM_SLICE,
59 	-1
60 };
61 
62 dm_desc_type_t partition_assoc_types [] = {
63 	DM_MEDIA,
64 	DM_SLICE,
65 	-1
66 };
67 
68 dm_desc_type_t path_assoc_types [] = {
69 	DM_DRIVE,
70 	DM_CONTROLLER,
71 	-1
72 };
73 
74 dm_desc_type_t slice_assoc_types [] = {
75 	DM_MEDIA,
76 	DM_PARTITION,
77 	-1
78 };
79