Print this page
NEX-3705 Need to update libses with LID/USN code from sesctld
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/lib/scsi/plugins/ses/libses/common/libses.h
+++ new/usr/src/lib/scsi/plugins/ses/libses/common/libses.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
|
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21
22 22 /*
23 23 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
24 + * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
24 25 */
25 26
26 27 #ifndef _FRAMEWORK_LIBSES_H
27 28 #define _FRAMEWORK_LIBSES_H
28 29
29 30 #ifdef __cplusplus
30 31 extern "C" {
31 32 #endif
32 33
33 34 /*
34 35 * These are properties attached to the root target node of the enclosure, and
35 36 * represent the SCSI inquiry data.
36 37 */
37 38 #define SCSI_PROP_VENDOR "scsi-inquiry-vendor"
38 39 #define SCSI_PROP_PRODUCT "scsi-inquiry-product"
39 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"
40 43
41 44 /*
42 45 * This property provides a human-readable name for the element type. This is
43 46 * constant, and not derived from the enclosure data.
44 47 */
45 48 #define LIBSES_PROP_ELEMENT_TYPE_NAME "libses-element-type-name"
46 49
47 50 /*
48 51 * The following properties can be added to any node. There is no provision in
49 52 * the specification for these properties, but they can be derived from vendor
50 53 * specific data for some enclosures.
51 54 */
52 55 #define LIBSES_PROP_PART "libses-part-number"
53 56 #define LIBSES_PROP_SERIAL "libses-serial-number"
54 57 #define LIBSES_PROP_FRU "libses-is-fru"
55 58 #define LIBSES_PROP_PHYS_PARENT "libses-physical-parent-element-index"
56 59
57 60 /*
58 61 * The chassis serial number is a pseudo property that doesn't exist in SES
59 62 * spec. A single physical chassis may present several logically different SES
60 63 * targets that are connected to the same or different elements. These targets
61 64 * can extract the chassis serial number in a vendor-specific way so that
62 65 * consumers know these SES targets refer to the same device. This defaults to
63 66 * to the logical-id, and is always present.
64 67 */
65 68 #define LIBSES_EN_PROP_CSN "libses-chassis-serial"
66 69
67 70 /*
68 71 * This boolean property identifies a chassis as internal, where the connected
69 72 * elements are part of a single system chassis and not an external enclosure.
70 73 * This is used on platforms with a disk backplane that exports a SES target.
71 74 */
72 75 #define LIBSES_EN_PROP_INTERNAL "libses-internal"
73 76
74 77 /*
75 78 * This property identifies the subchassis id for those systems that
76 79 * support the concept of a subchassis.
77 80 */
78 81 #define LIBSES_EN_PROP_SUBCHASSIS_ID "libses-subchassis-id"
79 82
80 83 /*
81 84 * Maximum allowed firmware upload chunk size. Obtained in a vendor- or
82 85 * platform-specific manner but generic in nature.
83 86 */
84 87 #define LIBSES_EN_PROP_FIRMWARE_CHUNK_SIZE "libses-firmware-chunksize"
85 88
86 89 #ifdef __cplusplus
87 90 }
88 91 #endif
89 92
90 93 #endif /* _FRAMEWORK_LIBSES_H */
|
↓ open down ↓ |
41 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX