tc1100-wmi - switch to using dev_pm_ops
[sfrench/cifs-2.6.git] / arch / arm / plat-omap / include / plat / dsp_common.h
1 /*
2  * This file is part of OMAP DSP driver (DSP Gateway version 3.3.1)
3  *
4  * Copyright (C) 2004-2006 Nokia Corporation. All rights reserved.
5  *
6  * Contact: Toshihiro Kobayashi <toshihiro.kobayashi@nokia.com>
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * version 2 as published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA
21  *
22  */
23
24 #ifndef ASM_ARCH_DSP_COMMON_H
25 #define ASM_ARCH_DSP_COMMON_H
26
27 #if defined(CONFIG_ARCH_OMAP1) && defined(CONFIG_OMAP_MMU_FWK)
28 extern void omap_dsp_request_mpui(void);
29 extern void omap_dsp_release_mpui(void);
30 extern int omap_dsp_request_mem(void);
31 extern int omap_dsp_release_mem(void);
32 #else
33 static inline int omap_dsp_request_mem(void)
34 {
35         return 0;
36 }
37 #define omap_dsp_release_mem()  do {} while (0)
38 #endif
39
40 #endif /* ASM_ARCH_DSP_COMMON_H */