]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/arm/plat-omap/dsp/dsp_mbcmd.h
ARM: OMAP: DSPGW: DSP Gateway driver 3.3.1
[linux-2.6-omap-h63xx.git] / arch / arm / plat-omap / dsp / dsp_mbcmd.h
1 /*
2  * This file is part of OMAP DSP driver (DSP Gateway version 3.3.1)
3  *
4  * Copyright (C) 2002-2006 Nokia Corporation. All rights reserved.
5  *
6  * Contact: Toshihiro Kobayashi <toshihiro.kobayashi@nokia.com>
7  *
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. 
11  *
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.
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
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA
21  *
22  */
23
24 /*
25  * DSP mailbox protocol definitions
26  */
27 #define MBPROT_REVISION 0x0019
28
29 #define TCTL_TINIT              0x0000
30 #define TCTL_TEN                0x0001
31 #define TCTL_TDIS               0x0002
32 #define TCTL_TCLR               0x0003
33 #define TCTL_TCLR_FORCE         0x0004
34
35 #define RUNLEVEL_USER           0x01
36 #define RUNLEVEL_SUPER          0x0e
37 #define RUNLEVEL_RECOVERY       0x10
38
39 #define PM_DISABLE              0x00
40 #define PM_ENABLE               0x01
41
42 #define KFUNC_FBCTL             0x00
43 #define KFUNC_AUDIO_PWR         0x01
44
45 #define FBCTL_UPD               0x0000
46 #define FBCTL_ENABLE            0x0002
47 #define FBCTL_DISABLE           0x0003
48
49 #define AUDIO_PWR_UP            0x0000
50 #define AUDIO_PWR_DOWN1         0x0001
51 #define AUDIO_PWR_DOWN2         0x0002
52
53 #define TDEL_SAFE               0x0000
54 #define TDEL_KILL               0x0001
55
56 #define DSPCFG_REQ              0x00
57 #define DSPCFG_SYSADRH          0x28
58 #define DSPCFG_SYSADRL          0x29
59 #define DSPCFG_PROTREV          0x70
60 #define DSPCFG_ABORT            0x78
61 #define DSPCFG_LAST             0x80
62
63 #define REGRW_MEMR              0x00
64 #define REGRW_MEMW              0x01
65 #define REGRW_IOR               0x02
66 #define REGRW_IOW               0x03
67 #define REGRW_DATA              0x04
68
69 #define VARID_ICRMASK           0x00
70 #define VARID_LOADINFO          0x01
71
72 #define TTYP_ARCV               0x0001
73 #define TTYP_ASND               0x0002
74 #define TTYP_BKMD               0x0004
75 #define TTYP_BKDM               0x0008
76 #define TTYP_PVMD               0x0010
77 #define TTYP_PVDM               0x0020
78
79 #define EID_BADTID              0x10
80 #define EID_BADTCN              0x11
81 #define EID_BADBID              0x20
82 #define EID_BADCNT              0x21
83 #define EID_NOTLOCKED           0x22
84 #define EID_STVBUF              0x23
85 #define EID_BADADR              0x24
86 #define EID_BADTCTL             0x30
87 #define EID_BADPARAM            0x50
88 #define EID_FATAL               0x58
89 #define EID_NOMEM               0xc0
90 #define EID_NORES               0xc1
91 #define EID_IPBFULL             0xc2
92 #define EID_WDT                 0xd0
93 #define EID_TASKNOTRDY          0xe0
94 #define EID_TASKBSY             0xe1
95 #define EID_TASKERR             0xef
96 #define EID_BADCFGTYP           0xf0
97 #define EID_DEBUG               0xf8
98 #define EID_BADSEQ              0xfe
99 #define EID_BADCMD              0xff
100
101 #define TNM_LEN                 16
102
103 #define TID_FREE                0xff
104 #define TID_ANON                0xfe
105
106 #define BID_NULL                0xffff
107 #define BID_PVT                 0xfffe