2005-09-07 09:20:27 -07:00
|
|
|
/*
|
2006-12-07 14:57:38 -07:00
|
|
|
* This file is part of OMAP DSP driver (DSP Gateway version 3.3.1)
|
2005-09-07 09:20:27 -07:00
|
|
|
*
|
2006-12-07 14:57:38 -07:00
|
|
|
* Copyright (C) 2004-2006 Nokia Corporation. All rights reserved.
|
2005-09-07 09:20:27 -07:00
|
|
|
*
|
2006-12-07 14:57:38 -07:00
|
|
|
* Contact: Toshihiro Kobayashi <toshihiro.kobayashi@nokia.com>
|
2005-09-07 09:20:27 -07:00
|
|
|
*
|
2006-12-07 14:57:38 -07:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* version 2 as published by the Free Software Foundation.
|
2005-09-07 09:20:27 -07:00
|
|
|
*
|
2006-12-07 14:57:38 -07:00
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
2005-09-07 09:20:27 -07:00
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2006-12-07 14:57:38 -07:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
|
* 02110-1301 USA
|
2005-09-07 09:20:27 -07:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ASM_ARCH_DSP_COMMON_H
|
|
|
|
#define ASM_ARCH_DSP_COMMON_H
|
|
|
|
|
2008-03-17 05:01:07 -07:00
|
|
|
#if defined(CONFIG_ARCH_OMAP1) && defined(CONFIG_OMAP_MMU_FWK)
|
2006-04-02 09:46:27 -07:00
|
|
|
extern void omap_dsp_request_mpui(void);
|
|
|
|
extern void omap_dsp_release_mpui(void);
|
|
|
|
extern int omap_dsp_request_mem(void);
|
|
|
|
extern int omap_dsp_release_mem(void);
|
2008-03-17 05:01:07 -07:00
|
|
|
#else
|
|
|
|
static inline int omap_dsp_request_mem(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#define omap_dsp_release_mem() do {} while (0)
|
2006-12-07 14:57:38 -07:00
|
|
|
#endif
|
2005-09-07 09:20:27 -07:00
|
|
|
|
|
|
|
#endif /* ASM_ARCH_DSP_COMMON_H */
|