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 #pragma ident "%Z%%M% %I% %E% SMI" 28 29 #include "libdiskmgt.h" 30 31 dm_desc_type_t alias_assoc_types [] = { 32 DM_DRIVE, 33 -1 34 }; 35 36 dm_desc_type_t bus_assoc_types [] = { 37 DM_CONTROLLER, 38 DM_BUS, 39 -1 40 }; 41 42 dm_desc_type_t controller_assoc_types [] = { 43 DM_DRIVE, 44 DM_PATH, 45 DM_BUS, 46 -1 47 }; 48 49 dm_desc_type_t drive_assoc_types [] = { 50 DM_CONTROLLER, 51 DM_PATH, 52 DM_ALIAS, 53 DM_MEDIA, 54 -1 55 }; 56 57 dm_desc_type_t media_assoc_types [] = { 58 DM_DRIVE, 59 DM_PARTITION, 60 DM_SLICE, 61 -1 62 }; 63 64 dm_desc_type_t partition_assoc_types [] = { 65 DM_MEDIA, 66 DM_SLICE, 67 -1 68 }; 69 70 dm_desc_type_t path_assoc_types [] = { 71 DM_DRIVE, 72 DM_CONTROLLER, 73 -1 74 }; 75 76 dm_desc_type_t slice_assoc_types [] = { 77 DM_MEDIA, 78 DM_PARTITION, 79 -1 80 }; 81