2 % * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 % * Use is subject to license terms.
7 % * The contents of this file are subject to the terms of the
8 % * Common Development and Distribution License, Version 1.0 only
9 % * (the "License"). You may not use this file except in compliance
12 % * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13 % * or http://www.opensolaris.org/os/licensing.
14 % * See the License for the specific language governing permissions
15 % * and limitations under the License.
17 % * When distributing Covered Code, include this CDDL HEADER in each
18 % * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19 % * If applicable, add the following below this CDDL HEADER, with the
20 % * fields enclosed by brackets "[]" replaced with your own identifying
21 % * information: Portions Copyright [yyyy] [name of copyright owner]
26 %#pragma ident "%Z%%M% %I% %E% SMI"
29 % * MH shadow structure for struct mhioctkown (sys/mhd.h)
31 struct mhd_mhioctkown_t {
32 int reinstate_resv_delay;
33 int min_ownership_delay;
34 int max_ownership_delay;
41 struct mhd_mhiargs_t {
43 mhd_mhioctkown_t mh_tk;
52 %#define METACTLRMAP "/etc/lvm/md.ctlrmap"
53 %#define META_SSA200_PID "SSA200"
62 mhd_ctlrtype_t mhc_ctype; /* controller type */
63 u_int mhc_tray; /* SSA100 tray */
64 u_int mhc_bus; /* SSA100 bus */
65 u_longlong_t mhc_wwn; /* SSA100 World Wide Name */
70 % * unique drive identifier
72 typedef u_int mhd_did_flags_t;
75 %#define MHD_DID_TIME 0x0001
76 %#define MHD_DID_SERIAL 0x0002
77 %#define MHD_DID_CINFO 0x0004
78 %#define MHD_DID_DUPLICATE 0x0008
80 typedef char mhd_serial_t[40]; /* SCSI VID+PID+REV+SERIAL */
81 struct mhd_drive_id_t {
82 mhd_did_flags_t did_flags;
83 long did_time; /* vtoc timestamp (time_t) */
84 mhd_serial_t did_serial; /* SCSI serial number */
85 mhd_cinfo_t did_cinfo; /* controller info */
90 % * drive identifier list
92 struct mhd_drive_info_t {
94 mhd_drive_id_t dif_id;
96 typedef mhd_drive_info_t mhd_drive_info_list_t<>;