4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
24 */
25
26 #ifndef _FRAMEWORK_LIBSES_H
27 #define _FRAMEWORK_LIBSES_H
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 /*
34 * These are properties attached to the root target node of the enclosure, and
35 * represent the SCSI inquiry data.
36 */
37 #define SCSI_PROP_VENDOR "scsi-inquiry-vendor"
38 #define SCSI_PROP_PRODUCT "scsi-inquiry-product"
39 #define SCSI_PROP_REVISION "scsi-inquiry-revision"
40
41 /*
42 * This property provides a human-readable name for the element type. This is
43 * constant, and not derived from the enclosure data.
44 */
45 #define LIBSES_PROP_ELEMENT_TYPE_NAME "libses-element-type-name"
46
47 /*
48 * The following properties can be added to any node. There is no provision in
49 * the specification for these properties, but they can be derived from vendor
50 * specific data for some enclosures.
51 */
52 #define LIBSES_PROP_PART "libses-part-number"
53 #define LIBSES_PROP_SERIAL "libses-serial-number"
54 #define LIBSES_PROP_FRU "libses-is-fru"
55 #define LIBSES_PROP_PHYS_PARENT "libses-physical-parent-element-index"
56
57 /*
58 * The chassis serial number is a pseudo property that doesn't exist in SES
59 * spec. A single physical chassis may present several logically different SES
|
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
25 */
26
27 #ifndef _FRAMEWORK_LIBSES_H
28 #define _FRAMEWORK_LIBSES_H
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 /*
35 * These are properties attached to the root target node of the enclosure, and
36 * represent the SCSI inquiry data.
37 */
38 #define SCSI_PROP_VENDOR "scsi-inquiry-vendor"
39 #define SCSI_PROP_PRODUCT "scsi-inquiry-product"
40 #define SCSI_PROP_REVISION "scsi-inquiry-revision"
41 #define SCSI_PROP_LID "scsi-inquiry-lu-naa-designator"
42 #define SCSI_PROP_USN "scsi-inquiry-unit-serial-number"
43
44 /*
45 * This property provides a human-readable name for the element type. This is
46 * constant, and not derived from the enclosure data.
47 */
48 #define LIBSES_PROP_ELEMENT_TYPE_NAME "libses-element-type-name"
49
50 /*
51 * The following properties can be added to any node. There is no provision in
52 * the specification for these properties, but they can be derived from vendor
53 * specific data for some enclosures.
54 */
55 #define LIBSES_PROP_PART "libses-part-number"
56 #define LIBSES_PROP_SERIAL "libses-serial-number"
57 #define LIBSES_PROP_FRU "libses-is-fru"
58 #define LIBSES_PROP_PHYS_PARENT "libses-physical-parent-element-index"
59
60 /*
61 * The chassis serial number is a pseudo property that doesn't exist in SES
62 * spec. A single physical chassis may present several logically different SES
|