1 //<MStar Software> 2 //****************************************************************************** 3 // MStar Software 4 // Copyright (c) 2010 - 2012 MStar Semiconductor, Inc. All rights reserved. 5 // All software, firmware and related documentation herein ("MStar Software") are 6 // intellectual property of MStar Semiconductor, Inc. ("MStar") and protected by 7 // law, including, but not limited to, copyright law and international treaties. 8 // Any use, modification, reproduction, retransmission, or republication of all 9 // or part of MStar Software is expressly prohibited, unless prior written 10 // permission has been granted by MStar. 11 // 12 // By accessing, browsing and/or using MStar Software, you acknowledge that you 13 // have read, understood, and agree, to be bound by below terms ("Terms") and to 14 // comply with all applicable laws and regulations: 15 // 16 // 1. MStar shall retain any and all right, ownership and interest to MStar 17 // Software and any modification/derivatives thereof. 18 // No right, ownership, or interest to MStar Software and any 19 // modification/derivatives thereof is transferred to you under Terms. 20 // 21 // 2. You understand that MStar Software might include, incorporate or be 22 // supplied together with third party`s software and the use of MStar 23 // Software may require additional licenses from third parties. 24 // Therefore, you hereby agree it is your sole responsibility to separately 25 // obtain any and all third party right and license necessary for your use of 26 // such third party`s software. 27 // 28 // 3. MStar Software and any modification/derivatives thereof shall be deemed as 29 // MStar`s confidential information and you agree to keep MStar`s 30 // confidential information in strictest confidence and not disclose to any 31 // third party. 32 // 33 // 4. MStar Software is provided on an "AS IS" basis without warranties of any 34 // kind. Any warranties are hereby expressly disclaimed by MStar, including 35 // without limitation, any warranties of merchantability, non-infringement of 36 // intellectual property rights, fitness for a particular purpose, error free 37 // and in conformity with any international standard. You agree to waive any 38 // claim against MStar for any loss, damage, cost or expense that you may 39 // incur related to your use of MStar Software. 40 // In no event shall MStar be liable for any direct, indirect, incidental or 41 // consequential damages, including without limitation, lost of profit or 42 // revenues, lost or damage of data, and unauthorized system use. 43 // You agree that this Section 4 shall still apply without being affected 44 // even if MStar Software has been modified by MStar in accordance with your 45 // request or instruction for your use, except otherwise agreed by both 46 // parties in writing. 47 // 48 // 5. If requested, MStar may from time to time provide technical supports or 49 // services in relation with MStar Software to you for your use of 50 // MStar Software in conjunction with your or your customer`s product 51 // ("Services"). 52 // You understand and agree that, except otherwise agreed by both parties in 53 // writing, Services are provided on an "AS IS" basis and the warranty 54 // disclaimer set forth in Section 4 above shall apply. 55 // 56 // 6. Nothing contained herein shall be construed as by implication, estoppels 57 // or otherwise: 58 // (a) conferring any license or right to use MStar name, trademark, service 59 // mark, symbol or any other identification; 60 // (b) obligating MStar or any of its affiliates to furnish any person, 61 // including without limitation, you and your customers, any assistance 62 // of any kind whatsoever, or any information; or 63 // (c) conferring any license or right under any intellectual property right. 64 // 65 // 7. These terms shall be governed by and construed in accordance with the laws 66 // of Taiwan, R.O.C., excluding its conflict of law rules. 67 // Any and all dispute arising out hereof or related hereto shall be finally 68 // settled by arbitration referred to the Chinese Arbitration Association, 69 // Taipei in accordance with the ROC Arbitration Law and the Arbitration 70 // Rules of the Association by three (3) arbitrators appointed in accordance 71 // with the said Rules. 72 // The place of arbitration shall be in Taipei, Taiwan and the language shall 73 // be English. 74 // The arbitration award shall be final and binding to both parties. 75 // 76 //****************************************************************************** 77 //<MStar Software> 78 #ifndef _AUDIO_MBOX_H_ 79 #define _AUDIO_MBOX_H_ 80 81 /******************************************************************** 82 * MIU unit type 83 ********************************************************************/ 84 85 #define SE_DMA_16 0 86 87 88 /* MIU Line Size */ 89 #define MIU_128 1 90 91 #if (MIU_128 == 1) 92 #define BYTES_IN_MIU_LINE 16 93 #define BYTES_IN_MIU_LINE_LOG2 4 94 #define MAD_MEMOFFSET_LOG2 12 95 #else 96 #define BYTES_IN_MIU_LINE 8 97 #define BYTES_IN_MIU_LINE_LOG2 3 98 #define MAD_MEMOFFSET_LOG2 11 99 #endif 100 101 /************************************************ 102 * mailbox type 103 ************************************************/ 104 #define MBOX_BITS_OFFSET 0 105 #define MBOX_BITS_SHIFT 0 106 #define MBOX_STEP_ONE 0x1 107 #define MBOX_MASK 0xFFFF 108 #define MBOX_HIBYTE_MASK 0x00FF00 109 #define MBOX_LOBYTE_MASK 0x0000FF 110 111 #define MBOX_BIT0 MBOX_BITS_OFFSET+0 112 #define MBOX_BIT1 MBOX_BITS_OFFSET+1 113 #define MBOX_BIT2 MBOX_BITS_OFFSET+2 114 #define MBOX_BIT3 MBOX_BITS_OFFSET+3 115 #define MBOX_BIT4 MBOX_BITS_OFFSET+4 116 #define MBOX_BIT5 MBOX_BITS_OFFSET+5 117 #define MBOX_BIT6 MBOX_BITS_OFFSET+6 118 #define MBOX_BIT7 MBOX_BITS_OFFSET+7 119 #define MBOX_BIT8 MBOX_BITS_OFFSET+8 120 #define MBOX_BIT9 MBOX_BITS_OFFSET+9 121 #define MBOX_BIT10 MBOX_BITS_OFFSET+10 122 #define MBOX_BIT11 MBOX_BITS_OFFSET+11 123 #define MBOX_BIT12 MBOX_BITS_OFFSET+12 124 #define MBOX_BIT13 MBOX_BITS_OFFSET+13 125 #define MBOX_BIT14 MBOX_BITS_OFFSET+14 126 #define MBOX_BIT15 MBOX_BITS_OFFSET+15 127 128 /************************************************ 129 * mailbox define 130 ************************************************/ 131 #define MB_2D00 0x2D00 132 #define MB_2D02 0x2D02 133 #define MB_2D04 0x2D04 134 #define MB_2D06 0x2D06 135 #define MB_2D08 0x2D08 136 #define MB_2D0A 0x2D0A 137 #define MB_2D0C 0x2D0C 138 #define MB_2D0E 0x2D0E 139 #define MB_2D10 0x2D10 140 #define MB_2D12 0x2D12 141 #define MB_2D14 0x2D14 142 #define MB_2D16 0x2D16 143 #define MB_2D18 0x2D18 144 #define MB_2D1A 0x2D1A 145 #define MB_2D1C 0x2D1C 146 #define MB_2D1E 0x2D1E 147 #define MB_2D20 0x2D20 148 #define MB_2D22 0x2D22 149 #define MB_2D24 0x2D24 150 #define MB_2D26 0x2D26 151 #define MB_2D28 0x2D28 152 #define MB_2D2A 0x2D2A 153 #define MB_2D2C 0x2D2C 154 #define MB_2D2E 0x2D2E 155 #define MB_2D30 0x2D30 156 #define MB_2D32 0x2D32 157 #define MB_2D34 0x2D34 158 #define MB_2D36 0x2D36 159 #define MB_2D38 0x2D38 160 #define MB_2D3A 0x2D3A 161 #define MB_2D3C 0x2D3C 162 #define MB_2D3E 0x2D3E 163 #define MB_2D40 0x2D40 164 #define MB_2D42 0x2D42 165 #define MB_2D44 0x2D44 166 #define MB_2D46 0x2D46 167 #define MB_2D48 0x2D48 168 #define MB_2D4A 0x2D4A 169 #define MB_2D4C 0x2D4C 170 #define MB_2D4E 0x2D4E 171 #define MB_2D50 0x2D50 172 #define MB_2D52 0x2D52 173 #define MB_2D54 0x2D54 174 #define MB_2D56 0x2D56 175 #define MB_2D58 0x2D58 176 #define MB_2D5A 0x2D5A 177 #define MB_2D5C 0x2D5C 178 #define MB_2D5E 0x2D5E 179 #define MB_2D60 0x2D60 180 #define MB_2D62 0x2D62 181 #define MB_2D64 0x2D64 182 #define MB_2D66 0x2D66 183 #define MB_2D68 0x2D68 184 #define MB_2D6A 0x2D6A 185 #define MB_2D6C 0x2D6C 186 #define MB_2D6E 0x2D6E 187 #define MB_2D70 0x2D70 188 #define MB_2D72 0x2D72 189 #define MB_2D74 0x2D74 190 #define MB_2D76 0x2D76 191 #define MB_2D78 0x2D78 192 #define MB_2D7A 0x2D7A 193 #define MB_2D7C 0x2D7C 194 #define MB_2D7E 0x2D7E 195 #define MB_2D80 0x2D80 196 #define MB_2D82 0x2D82 197 #define MB_2D84 0x2D84 198 #define MB_2D86 0x2D86 199 #define MB_2D88 0x2D88 200 #define MB_2D8A 0x2D8A 201 #define MB_2D8C 0x2D8C 202 #define MB_2D8E 0x2D8E 203 #define MB_2D90 0x2D90 204 #define MB_2D92 0x2D92 205 #define MB_2D94 0x2D94 206 #define MB_2D96 0x2D96 207 #define MB_2D98 0x2D98 208 #define MB_2D9A 0x2D9A 209 #define MB_2D9C 0x2D9C 210 #define MB_2D9E 0x2D9E 211 #define MB_2DA0 0x2DA0 212 #define MB_2DA2 0x2DA2 213 #define MB_2DA4 0x2DA4 214 #define MB_2DA6 0x2DA6 215 #define MB_2DA8 0x2DA8 216 #define MB_2DAA 0x2DAA 217 #define MB_2DAC 0x2DAC 218 #define MB_2DAE 0x2DAE 219 #define MB_2DB0 0x2DB0 220 #define MB_2DB2 0x2DB2 221 #define MB_2DB4 0x2DB4 222 #define MB_2DB6 0x2DB6 223 #define MB_2DB8 0x2DB8 224 #define MB_2DBA 0x2DBA 225 #define MB_2DBC 0x2DBC 226 #define MB_2DBE 0x2DBE 227 #define MB_2DC0 0x2DC0 228 #define MB_2DC2 0x2DC2 229 #define MB_2DC4 0x2DC4 230 #define MB_2DC6 0x2DC6 231 #define MB_2DC8 0x2DC8 232 #define MB_2DCA 0x2DCA 233 #define MB_2DCC 0x2DCC 234 #define MB_2DCE 0x2DCE 235 #define MB_2DD0 0x2DD0 236 #define MB_2DD2 0x2DD2 237 #define MB_2DD4 0x2DD4 238 #define MB_2DD6 0x2DD6 239 #define MB_2DD8 0x2DD8 240 #define MB_2DDA 0x2DDA 241 #define MB_2DDC 0x2DDC 242 #define MB_2DDE 0x2DDE 243 #define MB_2DE0 0x2DE0 244 #define MB_2DE2 0x2DE2 245 #define MB_2DE4 0x2DE4 246 #define MB_2DE6 0x2DE6 247 #define MB_2DE8 0x2DE8 248 #define MB_2DEA 0x2DEA 249 #define MB_2DEC 0x2DEC 250 #define MB_2DEE 0x2DEE 251 #define MB_2DF0 0x2DF0 252 #define MB_2DF2 0x2DF2 253 #define MB_2DF4 0x2DF4 254 #define MB_2DF6 0x2DF6 255 #define MB_2DF8 0x2DF8 256 #define MB_2DFA 0x2DFA 257 #define MB_2DFC 0x2DFC 258 #define MB_2DFE 0x2DFE 259 260 #endif //_AUDIO_MBOX_H_ 261