]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/arm/plat-omap/include/mach/dsp_common.h
omap: headers: Create headers necessary for compile under mach-omap1 and mach-omap2
[mirror_ubuntu-zesty-kernel.git] / arch / arm / plat-omap / include / mach / dsp_common.h
CommitLineData
9839c6b8 1/*
f4e4c324 2 * This file is part of OMAP DSP driver (DSP Gateway version 3.3.1)
9839c6b8 3 *
f4e4c324 4 * Copyright (C) 2004-2006 Nokia Corporation. All rights reserved.
9839c6b8 5 *
f4e4c324 6 * Contact: Toshihiro Kobayashi <toshihiro.kobayashi@nokia.com>
9839c6b8 7 *
f4e4c324
TL
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.
9839c6b8 11 *
f4e4c324
TL
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.
9839c6b8
TL
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
f4e4c324
TL
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA
9839c6b8 21 *
9839c6b8
TL
22 */
23
24#ifndef ASM_ARCH_DSP_COMMON_H
25#define ASM_ARCH_DSP_COMMON_H
26
eec2beac 27#if defined(CONFIG_ARCH_OMAP1) && defined(CONFIG_OMAP_MMU_FWK)
120db2cb
TL
28extern 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);
eec2beac
TL
32#else
33static inline int omap_dsp_request_mem(void)
34{
35 return 0;
36}
37#define omap_dsp_release_mem() do {} while (0)
f4e4c324 38#endif
9839c6b8
TL
39
40#endif /* ASM_ARCH_DSP_COMMON_H */