1 .\" $NetBSD: ses.4,v 1.7 2009/04/10 13:30:11 joerg Exp $
2 .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
3 .\" All rights reserved.
5 .\" This code is derived from software contributed to The NetBSD Foundation
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
17 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
18 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
21 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd SCSI Environmental Services Driver
37 .Cd ses* at scsibus? target ? lun ?
41 driver provides support for all
43 devices of the environmental services class that are attached to the system
46 Host Adapter, as well as emulated support for SAF-TE (SCSI Accessible
47 Fault Tolerant Enclosures).
48 The environmental services class generally are enclosure devices that
49 provide environmental information such as number of power supplies (and
50 state), temperature, device slots, and so on.
55 adapter must also be separately configured into the system
58 Environmental Services device can be configured.
65 They are defined in the header file
69 .Bl -tag -width SESIOC_GETENCSTAT
71 Used to find out how many
73 objects are driven by this particular device instance.
74 .It Dv SESIOC_GETOBJMAP
75 Read, from the kernel, an array of SES objects which contains
76 the object identifier, which sub-enclosure it is in, and the
79 .It Dv SESIOC_GETENCSTAT
80 Get the overall enclosure status.
81 .It Dv SESIOC_SETENCSTAT
82 Set the overall enclosure status.
83 .It Dv SESIOC_GETOBJSTAT
84 Get the status of a particular object.
85 .It Dv SESIOC_SETOBJSTAT
86 Set the status of a particular object.
88 Get the associated help text for an object (not yet implemented).
90 devices often have descriptive text for an object which can tell
91 you things like location (e.g, "left power supply").
93 Initialize the enclosure.
96 .Bl -tag -width /dev/rsdXXXXX -compact
97 .It Pa /dev/ses Ns Ar N
104 When the kernel is configured with
106 enabled, the first open to an SES device will spit out overall enclosure
107 parameters to the console.
116 driver was written for the
118 subsystem by Matthew Jacob.
119 This is the functional equivalent of a similar
120 driver available in Solaris, Release 7.