The pminfo area is a communication area between the power manager and startup/power callout.
The pminfo area contains the following elements which are customizable in the power manager structure and are power-manager dependent:
This element | Description |
---|---|
wakeup_pending | Notifies the power callout that a wakeup condition has occurred. The power manager requires write access so it can modify this entry. |
wakeup_condition | Indicates to the power manager what has caused the wakeup i.e. whether it's a power-on reset, or an interrupt from peripherals or other devices. The value is set by the power callout. |
managed_storage | This entry is an area where the power manager
can store any data it chooses.
This storage is not persistent storage; it needs to be manually
stored and restored by the startup and power callout.
The managed_storage element is initialized by the init_pminfo() function call in startup and can be modified at startup. The value passed into init_pminfo() determines the size of the managed_storage array. |