2 .\" Copyright (c) 20081 Sun Microsystems. Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH SES 7D "May 27, 2008"
8 ses \- SCSI enclosure services device driver
12 \fBses\fR\fI@target\fR\fB,\fR\fIlun\fR
18 The \fBses\fR device driver is an interface to \fBSCSI\fR enclosure services
19 devices. These devices sense and monitor the physical conditions in an
20 enclosure as well as allow access to the status reporting and configuration
21 features of the enclosure (such as indicator \fBLEDs\fR on the enclosure.)
24 \fBioctl\fR(9E) calls may be issued to \fBses\fR to determine the state of the
25 enclosure and to set parameters on the enclosure services device.
28 No \fBses\fR driver properties are defined. Use the \fBses.conf\fR file to
29 configure the \fBses\fR driver.
32 \fBExample 1 \fR\fBses.conf\fR File Format
35 The following is an example of the \fBses.conf\fR file format:
41 # Copyright (c) 1996, by Sun Microsystems, Inc.
42 # All rights reserved.
45 #ident "@(#)ses.conf 1.1 97/02/10 SMI"
48 name="ses" parent="sf"
51 name="ses" parent="SUNW,pln" port=0 target=15;
52 name="ses" parent="SUNW,pln" port=1 target=15;
53 name="ses" parent="SUNW,pln" port=2 target=15;
54 name="ses" parent="SUNW,pln" port=3 target=15;
55 name="ses" parent="SUNW,pln" port=4 target=15;
56 name="ses" parent="SUNW,pln" port=5 target=15;
58 name="ses" class="scsi"
66 The SES driver currently supports the SES, SAFTE and SEN enclosure service
67 chipsets. SEN and SAFTE protocols are translated internally in the driver into
68 SES compliant data structures. This enables the SES driver to work seamlessly
69 with different protocols and eliminates the need to enhance user applications.
73 \fB\fBSESIOC_GETNOBJ\fR\fR
76 Returns an unsigned integer that represents the number of SES data structures
77 in the enclosure services chip.
83 \fB\fBSESIOC_GETOBJMAP\fR\fR
86 Returns a size array containing \fBses_object\fR elements communicated through
87 \fBSESIOC_GETNOBJ()\fR. \fBses_object\fR is defined in \fBsesio.h\fR.
93 \fB\fBSESIOC_INIT\fR\fR
96 Instructs the device to perform a self-diagnostic test. Currently SES & SEN
97 devices always return success.
103 \fB\fBSESIOC_GETENCSTAT\fR\fR
106 Returns an unsigned character that represents status enclosure as defined by
107 Table 25 in Section 7.1.2 of the SES specification \fINCITS 305-199\fR\fIx\fR.
113 \fB\fBSESIOC_GETOBJSTAT\fR\fR
116 This ioctl is passed an \fBses_objarg\fR containing the \fBobj_id\fR you want
117 to set, then fills in the remaining fields according to element status page of
118 the SES specification.
124 \fB\fBSESIOC_SETOBJSTAT\fR\fR
127 Sets options in the control field. You set control field options by filling out
128 all fields in \fBses_objarg\fR. Field definitions are presented in Section
129 7.2.2 of the SES specification.
136 \fB\fB/kernel/drv/ses.conf\fR\fR
139 Driver configuration file
145 See \fBattributes\fR(5) for descriptions of the following attributes:
153 ATTRIBUTE TYPE ATTRIBUTE VALUE
161 \fBdriver.conf\fR(4), \fBscsi\fR(4), \fBattributes\fR(5), \fBesp\fR(7D),
162 \fBisp\fR(7D), \fBioctl\fR(9E)