- When a policy-maker instructs its controlling driver to switch the state of
- the device, the driver can return an indication that the change is complete,
- or it can return an indication that it needs some time to make the change.
- In this case it will call this method in the policy-maker when it has made the
- power state change.
- @result
- IOPMNoErr is returned. */
- virtual IOReturn acknowledgeSetPowerState ( void );
-
-/*! @function powerDomainWillChangeTo
- When a power domain changes state, it notifies its children, which
- are policy-makers, by calling them at this method. It calls here
- before it makes the change, and a called policy-maker can return
- IOPMAckImplied to indicate that it is prepared for the change,
- or it can return a non-zero number to indicate that it is not prepared
- but will prepare and then call the parent at acknowledgePowerChange.
-
- To prepare for a lowering of the power domain, the policy-maker
- informs all its interested parties of any resulting change in its device,
- and when they have all acknowledged, it calls its controlling driver
- to switch the device to an appropriate power state for the imminent
- domain state. If any interested driver or the controlling driver does
- not acknowledge immediately, then the policy-maker also will not.
-
- To prepare for a raising of the power domain, the policy-maker
- informs all its interested parties of any resulting change in its device.
- If any do not acknowledge immediately, then the policy-maker also will not.
- @param newPowerStateFlags
- These flags describe the character of power in the imminent domain state.
- They are not understood by the policy-maker. It asks the controlling
- driver to translate them into a state number within the power state array.
- (The policy-maker for the domain also doesn't understand the bits; they
- come from a outputPowerCharacter field of the power state array for
- the power domain.)
- @param whichParent
- This pointer identifies the calling parent. */
- IOReturn powerDomainWillChangeTo ( IOPMPowerFlags newPowerStateFlags, IOPowerConnection * whichParent );
-
-/*! @function powerDomainDidChangeTo
- When a power domain changes state, it notifies its children, which
- are policy-makers, by calling them at this method. It calls here
- after the changed power of the power domain has settled at the
- new level. A called policy-maker can return
- IOPMAckImplied to indicate that it is prepared for the change,
- or it can return a non-zero number to indicate that it is not prepared
- but will prepare and then call the parent at acknowledgePowerChange.
-
- To prepare for a lowered power domain, the policy-maker
- informs all its interested parties of the new power state of its device.
- If any do not acknowledge immediately, then the policy-maker also will not.
-
- To prepare for a raised power domain, the policy-maker calls its controlling
- driver to switch the device to the appropriate power state for the new
- domain state. When that is accomplished, the policy-maker informs
- all its interested parties of the new power state. If any interested driver
- or the controlling driver does not acknowledge immediately, then the
- policy-maker also will not.
-
- @param newPowerStateFlags
- These flags describe the character of power in the new domain state.
- They are not understood by the policy-maker. It asks the controlling
- driver to translate them into a state number within the power state array.
- (The policy-maker for the domain also doesn't understand the bits; they
- come from a outputPowerCharacter field of the power state array for
- the power domain.)
- @param whichParent
- This pointer identifies the calling parent. */
- IOReturn powerDomainDidChangeTo ( IOPMPowerFlags newPowerStateFlags, IOPowerConnection * whichParent );