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 modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #ifndef ASM_ARCH_DSP_COMMON_H
14 #define ASM_ARCH_DSP_COMMON_H
16 #include <linux/clk.h>
18 struct dsp_kfunc_device {
25 #define DSP_KFUNC_DEV_TYPE_COMMON 1
26 #define DSP_KFUNC_DEV_TYPE_AUDIO 2
28 struct list_head entry;
30 int (*probe)(struct dsp_kfunc_device *, int);
31 int (*remove)(struct dsp_kfunc_device *, int);
32 int (*enable)(struct dsp_kfunc_device *, int);
33 int (*disable)(struct dsp_kfunc_device *, int);
36 extern int dsp_kfunc_device_register(struct dsp_kfunc_device *);
38 struct dsp_platform_data {
39 struct list_head kdev_list;
44 int enabled; /* stored peripheral status */
46 struct omap_mbox *mbox;
48 struct list_head *kdev_list;
52 #ifdef CONFIG_ARCH_OMAP1
53 extern void omap_dsp_request_mpui(void);
54 extern void omap_dsp_release_mpui(void);
55 extern int omap_dsp_request_mem(void);
56 extern int omap_dsp_release_mem(void);
57 #elif defined(CONFIG_ARCH_OMAP2)
58 static inline int omap_dsp_request_mem(void)
62 #define omap_dsp_release_mem() do {} while (0)
65 #endif /* ASM_ARCH_DSP_COMMON_H */