PM: Add callback functions for suspend & resume events
authorShahid Akhtar <sakhtar@ti.com>
Thu, 31 May 2012 16:08:18 +0000 (11:08 -0500)
committerSuman Anna <s-anna@ti.com>
Tue, 17 Jul 2012 11:33:55 +0000 (06:33 -0500)
commit28ccf148c45d7d4de2474f2c21b6b66b4f6c96f9
treeb0dfe0ac92ba4591f720529d0befca8a614e2692
parent213ad03874e6a3a6da49c44f561c516332aab8dd
PM: Add callback functions for suspend & resume events

Two new APIs have been added to allow users to register
callback functions for notification of the suspend and
resume power events on the slave processor. Two events
are currently supported (IpcPower_Event_SUSPEND and
IpcPower_Event_RESUME) and allow users/drivers to take
action to save and restore their context on either side
of a slave processor suspend.

The new register/unregister callback APIs are:
- Int IpcPower_registerCallback(
         Int event, IpcPower_CallbackFuncPtr cb, Ptr data);
- Int IpcPower_unregisterCallback(
         Int event, IpcPower_CallbackFuncPtr cb);

Signed-off-by: Shahid Akhtar <sakhtar@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
src/ti/pm/IpcPower.c
src/ti/pm/IpcPower.h
src/ti/pm/IpcPowerDsp.c
src/ti/pm/_IpcPower.h
src/ti/pm/package.xs