blob: da97736f3efae3105dffcbaae511ef618d725f62 [file] [log] [blame]
Tony Lindgren9839c6b2005-09-07 17:20:27 +01001/*
Tony Lindgrenf4e4c322006-12-07 13:57:38 -08002 * This file is part of OMAP DSP driver (DSP Gateway version 3.3.1)
Tony Lindgren9839c6b2005-09-07 17:20:27 +01003 *
Tony Lindgrenf4e4c322006-12-07 13:57:38 -08004 * Copyright (C) 2004-2006 Nokia Corporation. All rights reserved.
Tony Lindgren9839c6b2005-09-07 17:20:27 +01005 *
Tony Lindgrenf4e4c322006-12-07 13:57:38 -08006 * Contact: Toshihiro Kobayashi <toshihiro.kobayashi@nokia.com>
Tony Lindgren9839c6b2005-09-07 17:20:27 +01007 *
Tony Lindgrenf4e4c322006-12-07 13:57:38 -08008 * 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.
Tony Lindgren9839c6b2005-09-07 17:20:27 +010011 *
Tony Lindgrenf4e4c322006-12-07 13:57:38 -080012 * 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.
Tony Lindgren9839c6b2005-09-07 17:20:27 +010016 *
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
Tony Lindgrenf4e4c322006-12-07 13:57:38 -080019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA
Tony Lindgren9839c6b2005-09-07 17:20:27 +010021 *
Tony Lindgren9839c6b2005-09-07 17:20:27 +010022 */
23
24#ifndef ASM_ARCH_DSP_COMMON_H
25#define ASM_ARCH_DSP_COMMON_H
26
Tony Lindgreneec2bea2008-03-17 13:01:07 +010027#if defined(CONFIG_ARCH_OMAP1) && defined(CONFIG_OMAP_MMU_FWK)
Tony Lindgren120db2c2006-04-02 17:46:27 +010028extern void omap_dsp_request_mpui(void);
29extern void omap_dsp_release_mpui(void);
30extern int omap_dsp_request_mem(void);
31extern int omap_dsp_release_mem(void);
Tony Lindgreneec2bea2008-03-17 13:01:07 +010032#else
33static inline int omap_dsp_request_mem(void)
34{
35 return 0;
36}
37#define omap_dsp_release_mem() do {} while (0)
Tony Lindgrenf4e4c322006-12-07 13:57:38 -080038#endif
Tony Lindgren9839c6b2005-09-07 17:20:27 +010039
40#endif /* ASM_ARCH_DSP_COMMON_H */