2 * This file is part of OMAP DSP driver (DSP Gateway version 3.3.1)
4 * Copyright (C) 2002-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
27 #define DSPCTL_IOCTL_RESET 1
28 #define DSPCTL_IOCTL_RUN 2
29 #define DSPCTL_IOCTL_SETRSTVECT 3
30 #ifdef CONFIG_ARCH_OMAP1
31 #define DSPCTL_IOCTL_CPU_IDLE 4
32 #define DSPCTL_IOCTL_MPUI_WORDSWAP_ON 5
33 #define DSPCTL_IOCTL_MPUI_WORDSWAP_OFF 6
34 #define DSPCTL_IOCTL_MPUI_BYTESWAP_ON 7
35 #define DSPCTL_IOCTL_MPUI_BYTESWAP_OFF 8
36 #define DSPCTL_IOCTL_GBL_IDLE 9
37 #endif /* CONFIG_ARCH_OMAP1 */
38 #define DSPCTL_IOCTL_DSPCFG 10
39 #define DSPCTL_IOCTL_DSPUNCFG 11
40 #define DSPCTL_IOCTL_TASKCNT 12
41 #define DSPCTL_IOCTL_POLL 13
42 #define DSPCTL_IOCTL_REGMEMR 40
43 #define DSPCTL_IOCTL_REGMEMW 41
44 #define DSPCTL_IOCTL_REGIOR 42
45 #define DSPCTL_IOCTL_REGIOW 43
46 #define DSPCTL_IOCTL_GETVAR 44
47 #define DSPCTL_IOCTL_SETVAR 45
48 #define DSPCTL_IOCTL_RUNLEVEL 50
49 #define DSPCTL_IOCTL_SUSPEND 51
50 #define DSPCTL_IOCTL_RESUME 52
51 #ifdef CONFIG_OMAP_DSP_FBEXPORT
52 #define DSPCTL_IOCTL_FBEN 53
53 #define DSPCTL_IOCTL_FBDIS 54
54 #endif /* CONFIG_OMAP_DSP_FBEXPORT */
55 #define DSPCTL_IOCTL_MBSEND 99
57 struct omap_dsp_mailbox_cmd {
62 struct omap_dsp_reginfo {
67 struct omap_dsp_varinfo {
74 * (ioctls below should be >= 0x10000)
76 #define TASK_IOCTL_BFLSH 0x10000
77 #define TASK_IOCTL_SETBSZ 0x10001
78 #define TASK_IOCTL_LOCK 0x10002
79 #define TASK_IOCTL_UNLOCK 0x10003
80 #define TASK_IOCTL_GETNAME 0x10004
85 #define MEM_IOCTL_EXMAP 1
86 #define MEM_IOCTL_EXUNMAP 2
87 #define MEM_IOCTL_EXMAP_FLUSH 3
88 #define MEM_IOCTL_FBEXPORT 5
89 #ifdef CONFIG_ARCH_OMAP1
90 #define MEM_IOCTL_MMUITACK 7
92 #define MEM_IOCTL_MMUINIT 9
93 #define MEM_IOCTL_KMEM_RESERVE 11
94 #define MEM_IOCTL_KMEM_RELEASE 12
96 struct omap_dsp_mapinfo {
102 * for /dev/dspctl/twch
104 #define TWCH_IOCTL_MKDEV 1
105 #define TWCH_IOCTL_RMDEV 2
106 #define TWCH_IOCTL_TADD 11
107 #define TWCH_IOCTL_TDEL 12
108 #define TWCH_IOCTL_TKILL 13
110 struct omap_dsp_taddinfo {
115 #define TADD_ABORTADR 0xffffffff