Committer: Michael Beasley <mike@snafu.setup>
[mikesnafu-overlay.git] / include / asm-arm / arch-omap / dsp_common.h
blobda97736f3efae3105dffcbaae511ef618d725f62
1 /*
2 * This file is part of OMAP DSP driver (DSP Gateway version 3.3.1)
4 * Copyright (C) 2004-2006 Nokia Corporation. All rights reserved.
6 * Contact: Toshihiro Kobayashi <toshihiro.kobayashi@nokia.com>
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.
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.
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
24 #ifndef ASM_ARCH_DSP_COMMON_H
25 #define ASM_ARCH_DSP_COMMON_H
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)
35 return 0;
37 #define omap_dsp_release_mem() do {} while (0)
38 #endif
40 #endif /* ASM_ARCH_DSP_COMMON_H */