2 .\" Copyright (c) 2001, 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 NO-INVOLUNTARY-POWER-CYCLES 9P "Mar 22, 2001"
8 no-involuntary-power-cycles \- device property to prevent involuntary power
13 A device that might be damaged by power cycles should export the boolean (zero
14 length) property \fBno-involuntary-power-cycles\fR to notify the system that
15 all power cycles for the device must be under the control of the device driver.
18 The presence of this property prevents power from being removed from a device
19 or any ancestor of the device while the device driver is detached, unless the
20 device was voluntarily powered off as a result of the device driver calling
21 \fBpm_lower_power\fR(9F).
24 The presence of \fBno-involuntary-power-cycles\fR also forces attachment of the
25 device driver during a CPR suspend operation and prevents the suspend from
26 taking place, unless the device driver returns \fBDDI_SUCCESS\fR when its
27 \fBdetach\fR(9E) entry point is called with \fBDDI_SUSPEND\fR.
30 The presence of \fBno-involuntary-power-cycles\fR does not prevent the system
31 from being powered off due to a \fBhalt\fR(1M) or \fBuadmin\fR(1M) invocation,
32 except for CPR suspend.
35 This property can be exported by a device that is not power manageable, in
36 which case power is not removed from the device or from any of its ancestors,
37 even when the driver for the device and the drivers for its ancestors are
41 \fBExample 1 \fRUse of Property in Driver's Configuration File
44 The following is an example of a \fBno-involuntary-power-cycles\fR entry in a
45 driver's \fB\&.conf\fR file:
50 no-involuntary-power-cycles=1;
56 \fBExample 2 \fRUse of Property in \fBattach()\fR Function
59 The following is an example of how the preceding \fB\&.conf\fR file entry would
60 be implemented in the \fBattach\fR(9E) function of a driver:
65 xxattach(dev_info_t *dip, ddi_attach_cmd_t cmd)
68 if (ddi_prop_create(DDI_DEV_T_NONE, dip, DDI_PROP_CANSLEEP,
69 "no-involuntary-power-cycles", NULL, 0) != DDI_PROP_SUCCESS)
79 See \fBattributes\fR(5) for descriptions of the following attributes:
87 ATTRIBUTE TYPE ATTRIBUTE VALUE
89 Interface stability Committed
95 \fBattributes\fR(5), \fBpm\fR(7D), \fBattach\fR(9E), \fBdetach\fR(9E),
96 \fBddi_prop_create\fR(9F)
99 \fIWriting Device Drivers\fR