4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * Definitions and types for the DSP wake/sleep routines.
8 * Copyright (C) 2005-2006 Texas Instruments, Inc.
10 * This package is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
14 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
23 extern s32 dsp_test_sleepstate;
26 extern struct mailbox_context mboxsetting;
29 * ======== wake_dsp =========
30 * Wakes up the DSP from DeepSleep
32 extern int wake_dsp(struct bridge_dev_context *dev_context,
36 * ======== sleep_dsp =========
37 * Places the DSP in DeepSleep.
39 extern int sleep_dsp(struct bridge_dev_context *dev_context,
40 u32 dw_cmd, void *pargs);
42 * ========interrupt_dsp========
43 * Sends an interrupt to DSP unconditionally.
45 extern void interrupt_dsp(struct bridge_dev_context *dev_context,
49 * ======== wake_dsp =========
50 * Wakes up the DSP from DeepSleep
52 extern int dsp_peripheral_clk_ctrl(struct bridge_dev_context
53 *dev_context, void *pargs);
55 * ======== handle_hibernation_from_dsp ========
56 * Handle Hibernation requested from DSP
58 int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context);
60 * ======== post_scale_dsp ========
61 * Handle Post Scale notification to DSP
63 int post_scale_dsp(struct bridge_dev_context *dev_context,
66 * ======== pre_scale_dsp ========
67 * Handle Pre Scale notification to DSP
69 int pre_scale_dsp(struct bridge_dev_context *dev_context,
72 * ======== handle_constraints_set ========
73 * Handle constraints request from DSP
75 int handle_constraints_set(struct bridge_dev_context *dev_context,
79 * ======== dsp_clk_wakeup_event_ctrl ========
80 * This function sets the group selction bits for while
83 void dsp_clk_wakeup_event_ctrl(u32 clock_id, bool enable);
85 #endif /* _TIOMAP_PWR_ */