2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
28 #include <IOKit/pwr_mgt/IOPM.h>
30 /*! @header IOPMpowerState.h
31 @abstract Defines the struct IOPMPowerState that power managed drivers should use to describe their power states.
34 /*! @struct IOPMPowerState
35 @abstract Describes a device's power state.
36 @discussion To take part in system power management, drivers should define an array of 2 or more power states and pass it to kernel power management through IOService::registerPowerDriver.
37 @field version Defines version number of this struct. Just use the value "1" when defining an IOPMPowerState.
38 @field capabilityFlags Describes the capability of the device in this state.
39 @field outputPowerCharacter Describes the power provided in this state.
40 @field inputPowerRequirement Describes the input power required in this state.
41 @field staticPower Describes average consumption in milliwatts. Unused; drivers may specify 0.
42 @field stateOrder Valid in version kIOPMPowerStateVersion2 or greater of this structure. Defines ordering of power states independently of the power state ordinal.
43 @field powerToAttain Describes dditional power to attain this state from next lower state (in milliWatts). Unused; drivers may specify 0.
44 @field timeToAttain Describes time required to enter this state from next lower state (in microseconds). Unused; drivers may specify 0.
45 @field settleUpTime Describes settle time required after entering this state from next lower state (microseconds). Unused; drivers may specify 0.
46 @field timeToLower Describes time required to enter next lower state from this one (microseconds). Unused; drivers may specify 0.
47 @field settleDownTime Settle time required after entering next lower state from this state (microseconds). Unused; drivers may specify 0.
48 @field powerDomainBudget Describes power in milliWatts a domain in this state can deliver to its children. Unused; drivers may specify 0.
54 unsigned long version
;
55 IOPMPowerFlags capabilityFlags
;
56 IOPMPowerFlags outputPowerCharacter
;
57 IOPMPowerFlags inputPowerRequirement
;
58 unsigned long staticPower
;
59 unsigned long stateOrder
;
60 unsigned long powerToAttain
;
61 unsigned long timeToAttain
;
62 unsigned long settleUpTime
;
63 unsigned long timeToLower
;
64 unsigned long settleDownTime
;
65 unsigned long powerDomainBudget
;
68 typedef struct IOPMPowerState IOPMPowerState
;
71 kIOPMPowerStateVersion1
= 1,
72 kIOPMPowerStateVersion2
= 2