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
25 * DSP mailbox protocol definitions
27 #define MBPROT_REVISION 0x0019
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
35 #define RUNLEVEL_USER 0x01
36 #define RUNLEVEL_SUPER 0x0e
37 #define RUNLEVEL_RECOVERY 0x10
39 #define PM_DISABLE 0x00
40 #define PM_ENABLE 0x01
42 #define KFUNC_FBCTL 0x00
43 #define KFUNC_AUDIO_PWR 0x01
45 #define FBCTL_UPD 0x0000
46 #define FBCTL_ENABLE 0x0002
47 #define FBCTL_DISABLE 0x0003
49 #define AUDIO_PWR_UP 0x0000
50 #define AUDIO_PWR_DOWN1 0x0001
51 #define AUDIO_PWR_DOWN2 0x0002
53 #define TDEL_SAFE 0x0000
54 #define TDEL_KILL 0x0001
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
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
69 #define VARID_ICRMASK 0x00
70 #define VARID_LOADINFO 0x01
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
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
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
103 #define TID_FREE 0xff
104 #define TID_ANON 0xfe
106 #define BID_NULL 0xffff
107 #define BID_PVT 0xfffe