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 //////////////////////////////////////////////////////////////////////////////// 79 // 80 // Copyright (c) 2008-2009 MStar Semiconductor, Inc. 81 // All rights reserved. 82 // 83 // Unless otherwise stipulated in writing, any and all information contained 84 // herein regardless in any format shall remain the sole proprietary of 85 // MStar Semiconductor Inc. and be kept in strict confidence 86 // ("MStar Confidential Information") by the recipient. 87 // Any unauthorized act including without limitation unauthorized disclosure, 88 // copying, use, reproduction, sale, distribution, modification, disassembling, 89 // reverse engineering and compiling of the contents of MStar Confidential 90 // Information is unlawful and strictly prohibited. MStar hereby reserves the 91 // rights to any and all damages, losses, costs and expenses resulting therefrom. 92 // 93 //////////////////////////////////////////////////////////////////////////////// 94 95 /////////////////////////////////////////////////////////////////////////////////////////////////// 96 /// 97 /// file regVPU.h 98 /// @brief VPU Module Register Definition 99 /// @author MStar Semiconductor Inc. 100 /////////////////////////////////////////////////////////////////////////////////////////////////// 101 102 #ifndef _REG_VPU_H_ 103 #define _REG_VPU_H_ 104 105 //#include "MsCommon.h" 106 107 #ifndef BMASK 108 #define BIT(_bit_) (1 << (_bit_)) 109 #define BITS(_bits_, _val_) ((BIT(((1)?_bits_)+1)-BIT(((0)?_bits_))) & (_val_<<((0)?_bits_))) 110 #define BMASK(_bits_) (BIT(((1)?_bits_)+1)-BIT(((0)?_bits_))) 111 #endif 112 113 #ifndef READ_BYTE 114 #define READ_BYTE(_reg) (*(volatile MS_U8*)(_reg)) 115 #define READ_WORD(_reg) (*(volatile MS_U16*)(_reg)) 116 #define READ_LONG(_reg) (*(volatile MS_U32*)(_reg)) 117 #define WRITE_BYTE(_reg, _val) { (*((volatile MS_U8*)(_reg))) = (MS_U8)(_val); } 118 #define WRITE_WORD(_reg, _val) { (*((volatile MS_U16*)(_reg))) = (MS_U16)(_val); } 119 #define WRITE_LONG(_reg, _val) { (*((volatile MS_U32*)(_reg))) = (MS_U32)(_val); } 120 #endif 121 122 //------------------------------------------------------------------------------------------------- 123 // Hardware Capability 124 //------------------------------------------------------------------------------------------------- 125 126 127 //------------------------------------------------------------------------------------------------- 128 // Macro and Define 129 //------------------------------------------------------------------------------------------------- 130 131 //***************************************************************************** 132 // RIU macro 133 #define VPU_MACRO_START do { 134 #define VPU_MACRO_END } while (0) 135 #define VPU_RIU_BASE u32VPURegOSBase 136 137 #define VPU_HIGHBYTE(u16) ((MS_U8)((u16) >> 8)) 138 #define VPU_LOWBYTE(u16) ((MS_U8)(u16)) 139 #define VPU_RIU_READ_BYTE(addr) ( READ_BYTE( VPU_RIU_BASE + (addr) ) ) 140 #define VPU_RIU_READ_WORD(addr) ( READ_WORD( VPU_RIU_BASE + (addr) ) ) 141 #define VPU_RIU_WRITE_BYTE(addr, val) { WRITE_BYTE( VPU_RIU_BASE+(addr), val); } 142 #define VPU_RIU_WRITE_WORD(addr, val) { WRITE_WORD( VPU_RIU_BASE+(addr), val); } 143 144 145 #define _VPU_ReadByte( u32Reg ) VPU_RIU_READ_BYTE(((u32Reg) << 1) - ((u32Reg) & 1)) 146 147 #define _VPU_Read2Byte( u32Reg ) (VPU_RIU_READ_WORD((u32Reg)<<1)) 148 149 #define _VPU_Read4Byte( u32Reg ) ( (MS_U32)VPU_RIU_READ_WORD((u32Reg)<<1) | ((MS_U32)VPU_RIU_READ_WORD(((u32Reg)+2)<<1)<<16 ) ) 150 151 #define _VPU_ReadRegBit( u32Reg, u8Mask ) (VPU_RIU_READ_BYTE(((u32Reg)<<1) - ((u32Reg) & 1)) & (u8Mask)) 152 153 #define _VPU_ReadWordBit( u32Reg, u16Mask ) (_VPU_Read2Byte( u32Reg ) & (u16Mask)) 154 155 #define _VPU_WriteRegBit( u32Reg, bEnable, u8Mask ) \ 156 VPU_MACRO_START \ 157 VPU_RIU_WRITE_BYTE( (((u32Reg) <<1) - ((u32Reg) & 1)) , (bEnable) ? (VPU_RIU_READ_BYTE( (((u32Reg) <<1) - ((u32Reg) & 1)) ) | (u8Mask)) : \ 158 (VPU_RIU_READ_BYTE( (((u32Reg) <<1) - ((u32Reg) & 1)) ) & ~(u8Mask))); \ 159 VPU_MACRO_END 160 161 #define _VPU_WriteByte( u32Reg, u8Val ) \ 162 VPU_MACRO_START \ 163 VPU_RIU_WRITE_BYTE(((u32Reg) << 1) - ((u32Reg) & 1), u8Val); \ 164 VPU_MACRO_END 165 166 #define _VPU_Write2Byte( u32Reg, u16Val ) \ 167 VPU_MACRO_START \ 168 if ( ((u32Reg) & 0x01) ) \ 169 { \ 170 VPU_RIU_WRITE_BYTE(((u32Reg) << 1) - 1, (MS_U8)((u16Val))); \ 171 VPU_RIU_WRITE_BYTE(((u32Reg) + 1) << 1, (MS_U8)((u16Val) >> 8)); \ 172 } \ 173 else \ 174 { \ 175 VPU_RIU_WRITE_WORD( ((u32Reg)<<1) , u16Val); \ 176 } \ 177 VPU_MACRO_END 178 179 #define _VPU_Write3Byte( u32Reg, u32Val ) \ 180 if ((u32Reg) & 0x01) \ 181 { \ 182 VPU_RIU_WRITE_BYTE((u32Reg << 1) - 1, u32Val); \ 183 VPU_RIU_WRITE_WORD( (u32Reg + 1)<<1 , ((u32Val) >> 8)); \ 184 } \ 185 else \ 186 { \ 187 VPU_RIU_WRITE_WORD( (u32Reg) << 1, u32Val); \ 188 VPU_RIU_WRITE_BYTE( (u32Reg + 2) << 1 , ((u32Val) >> 16)); \ 189 } 190 191 #define _VPU_Write4Byte( u32Reg, u32Val ) \ 192 VPU_MACRO_START \ 193 if ((u32Reg) & 0x01) \ 194 { \ 195 VPU_RIU_WRITE_BYTE( ((u32Reg) << 1) - 1 , u32Val); \ 196 VPU_RIU_WRITE_WORD( ((u32Reg) + 1)<<1 , ( (u32Val) >> 8)); \ 197 VPU_RIU_WRITE_BYTE( (((u32Reg) + 3) << 1) , ((u32Val) >> 24)); \ 198 } \ 199 else \ 200 { \ 201 VPU_RIU_WRITE_WORD( (u32Reg) <<1 , u32Val); \ 202 VPU_RIU_WRITE_WORD( ((u32Reg) + 2)<<1 , ((u32Val) >> 16)); \ 203 } \ 204 VPU_MACRO_END 205 206 #define _VPU_WriteByteMask( u32Reg, u8Val, u8Msk ) \ 207 VPU_MACRO_START \ 208 VPU_RIU_WRITE_BYTE( (((u32Reg) <<1) - ((u32Reg) & 1)), (VPU_RIU_READ_BYTE((((u32Reg) <<1) - ((u32Reg) & 1))) & ~(u8Msk)) | ((u8Val) & (u8Msk))); \ 209 VPU_MACRO_END 210 211 #define _VPU_WriteWordMask( u32Reg, u16Val , u16Msk) \ 212 VPU_MACRO_START \ 213 if ( ((u32Reg) & 0x01) ) \ 214 { \ 215 if ((u16Msk)&0xff00) _VPU_WriteByteMask( ((u32Reg)+1) , (((u16Val) & 0xff00)>>8) , (((u16Msk)&0xff00)>>8) ); \ 216 _VPU_WriteByteMask( (u32Reg) , ((u16Val) & 0x00ff) , ((u16Msk)&0x00ff) ); \ 217 } \ 218 else \ 219 { \ 220 VPU_RIU_WRITE_WORD( ((u32Reg)<<1) , (((u16Val) & (u16Msk)) | (_VPU_Read2Byte( u32Reg ) & (~( u16Msk )))) ); \ 221 } \ 222 VPU_MACRO_END 223 224 225 226 //------------------------------------------------------------------------------ 227 // VPU Reg 228 //------------------------------------------------------------------------------ 229 #define EVDR2 230 #ifdef EVDR2 231 #define REG_VPU_BASE (0x63300) 232 #define REG_MBX_BASE (0x63400) 233 #define REG_MAU1_BASE (0x63400) 234 #define REG_MAU1_LV2_0_BASE (0x63700) 235 #define REG_MAU1_LV2_1_BASE (0x63800) 236 #else 237 #define REG_VPU_BASE (0x0300) 238 #define REG_MBX_BASE (0x0400) 239 #define REG_MAU1_BASE (0x0400) 240 #define REG_MAU1_LV2_0_BASE (0x63500) 241 #define REG_MAU1_LV2_1_BASE (0x63600) 242 #endif 243 244 //write back stage PC 245 #define VPU_REG_EXPC_L (REG_VPU_BASE+(0x000a<<1)) 246 #define VPU_REG_EXPC_H (REG_VPU_BASE+(0x000b<<1)) 247 248 #define VPU_REG_MIU_LAST (REG_VPU_BASE+( 0x0020<<1)) 249 #define VPU_REG_MIU_LAST_EN BIT(5) 250 251 #define VPU_REG_ICU_STATUS (REG_VPU_BASE+( 0x001f<<1)) 252 #define VPU_REG_ICU_IDLE BIT(1) 253 #define VPU_REG_ISB_IDLE BIT(8) 254 255 #define VPU_REG_DCU_DBG_SEL (REG_VPU_BASE+( 0x0028<<1)) 256 #define VPU_REG_DCU_DBG_SEL_0 BIT(2) 257 #define VPU_REG_DCU_DBG_SEL_1 BIT(3) 258 #define VPU_REG_DCU_STATUS (REG_VPU_BASE+( 0x0029<<1)) 259 #define VPU_REG_BIU_EMPTY BIT(11) 260 261 #define VPU_REG_CPU_SETTING (REG_VPU_BASE+( 0x0040<<1)) 262 #define VPU_REG_CPU_R2_EN BIT(0) 263 #define VPU_REG_CPU_SW_RSTZ BIT(1) 264 #define VPU_REG_CPU_MIU_SW_RSTZ BIT(2) 265 #define VPU_REG_CPU_RIU_SW_RSTZ BIT(3) 266 #define VPU_REG_CPU_SPI_BOOT BIT(4) 267 #define VPU_REG_CPU_SDRAM_BOOT BIT(5) 268 #define VPU_REG_CPU_R2_INTO BIT(6) 269 #define VPU_REG_CPU_DBG_ON_DCU BIT(8) 270 #define VPU_REG_CPU_DBG_ON_ICU BIT(9) 271 #define VPU_REG_CPU_DBG_CLK_SEL BIT(10) 272 #define VPU_REG_CPU_DBG_CLK_TOGGLE BIT(11) 273 274 #define VPU_REG_ICU_SDR_BASE_L (REG_VPU_BASE+(0x0041<<1)) //byte address 275 #define VPU_REG_ICU_SDR_BASE_H (REG_VPU_BASE+(0x0042<<1)) 276 #define VPU_REG_DCU_SDR_BASE_L (REG_VPU_BASE+(0x0043<<1)) //byte address 277 #define VPU_REG_DCU_SDR_BASE_H (REG_VPU_BASE+(0x0044<<1)) 278 279 #define VPU_REG_SPI_BASE (REG_VPU_BASE+(0x0048<<1)) //REG ACCESS BASE32 280 281 282 #define VPU_REG_IQMEM_BASE_L (REG_VPU_BASE+(0x0049<<1)) 283 #define VPU_REG_IQMEM_BASE_H (REG_VPU_BASE+(0x004a<<1)) 284 #define VPU_REG_IQMEM_MASK_L (REG_VPU_BASE+(0x004b<<1)) 285 #define VPU_REG_IQMEM_MASK_H (REG_VPU_BASE+(0x004c<<1)) 286 287 #define VPU_REG_DQMEM_BASE_L (REG_VPU_BASE+(0x004d<<1)) 288 #define VPU_REG_DQMEM_BASE_H (REG_VPU_BASE+(0x004e<<1)) 289 #define VPU_REG_DQMEM_MASK_L (REG_VPU_BASE+(0x004f<<1)) 290 #define VPU_REG_DQMEM_MASK_H (REG_VPU_BASE+(0x0050<<1)) 291 292 #define VPU_REG_PQMEM_BASE_L (REG_VPU_BASE+(0x0051<<1)) 293 #define VPU_REG_PQMEM_BASE_H (REG_VPU_BASE+(0x0052<<1)) 294 #define VPU_REG_PQMEM_MASK_L (REG_VPU_BASE+(0x0053<<1)) 295 #define VPU_REG_PQMEM_MASK_H (REG_VPU_BASE+(0x0054<<1)) 296 #define VPU_REG_IQMEM_SETTING (REG_VPU_BASE+(0x0064<<1)) 297 #define VPU_REG_VQMEM_BASE_L (REG_VPU_BASE+(0x0067<<1)) 298 #define VPU_REG_VQMEM_BASE_H (REG_VPU_BASE+(0x0068<<1)) 299 #define VPU_REG_VQMEM_MASK_L (REG_VPU_BASE+(0x0069<<1)) 300 #define VPU_REG_VQMEM_MASK_H (REG_VPU_BASE+(0x006a<<1)) 301 #define VPU_REG_CPU_CONFIG (REG_VPU_BASE+(0x006b<<1)) 302 #define VPU_REG_CPU_STALL_EN BIT(15) 303 304 #define VPU_REG_QMEM_OWNER (REG_VPU_BASE+(0x006c<<1)) 305 306 #define VPU_REG_IO0_BASE (REG_VPU_BASE+(0x0045<<1)) //RIU 307 #define VPU_REG_IO1_BASE (REG_VPU_BASE+(0x0055<<1)) //R2 internal UART 308 #define VPU_REG_IO2_BASE (REG_VPU_BASE+(0x0056<<1)) //R2 read SPI 309 #define VPU_REG_IO3_BASE (REG_VPU_BASE+(0x0057<<1)) //IP use 310 #define VPU_REG_CONTROL_SET (REG_VPU_BASE+(0x0058<<1)) 311 312 #define VPU_REG_R2_MI_SEL_BASE (REG_VPU_BASE+(0x0072<<1)) 313 314 #define VPU_REG_IO0_EN BIT(0) //default Enable 315 #define VPU_REG_IO1_EN BIT(1) //default Enable 316 #define VPU_REG_IO2_EN BIT(2) 317 #define VPU_REG_IO3_EN BIT(3) 318 #define VPU_REG_QMEM_SPACE_EN BIT(4) 319 #define VPU_REG_MMU_IO_EN BIT(5) 320 #define VPU_REG_WMB_FORCE_OFF BIT(6) 321 #define VPU_REG_WMB_AUTO_OFF BIT(7) 322 #define VPU_REG_PQMEM_SPACE_EN BIT(13) 323 #define VPU_REG_VQMEM_SPACE_EN BIT(14) 324 325 326 #define VPU_REG_VERSION (REG_MBX_BASE+(0x0055<<1)) 327 328 #define VPU_REG_HI_MBOX0_L (REG_MBX_BASE+(0x005b<<1)) 329 #define VPU_REG_HI_MBOX0_H (REG_MBX_BASE+(0x005c<<1)) 330 #define VPU_REG_HI_MBOX1_L (REG_MBX_BASE+(0x005d<<1)) 331 #define VPU_REG_HI_MBOX1_H (REG_MBX_BASE+(0x005e<<1)) 332 333 #define VPU_REG_HI_MBOX_SET (REG_MBX_BASE+(0x005f<<1)) 334 #define VPU_REG_HI_MBOX0_SET BIT(0) 335 #define VPU_REG_HI_MBOX1_SET BIT(1) 336 337 #define VPU_REG_RISC_MBOX_CLR (REG_MBX_BASE+(0x0067<<1)) 338 #define VPU_REG_RISC_MBOX0_CLR BIT(0) 339 #define VPU_REG_RISC_MBOX1_CLR BIT(1) 340 #define VPU_REG_RISC_ISR_CLR BIT(2) 341 #define VPU_REG_RISC_ISR_MSK BIT(6) 342 #define VPU_REG_RISC_ISR_FORCE BIT(10) 343 344 #define VPU_REG_RISC_MBOX_RDY (REG_MBX_BASE+( 0x0068<<1)) 345 #define VPU_REG_RISC_MBOX0_RDY BIT(0) 346 #define VPU_REG_RISC_MBOX1_RDY BIT(1) 347 #define VPU_REG_RISC_ISR_VALID BIT(2) 348 349 #define VPU_REG_HI_MBOX_RDY (REG_MBX_BASE+(0x0069<<1)) 350 #define VPU_REG_HI_MBOX0_RDY BIT(0) 351 #define VPU_REG_HI_MBOX1_RDY BIT(1) 352 353 #define VPU_REG_RISC_MBOX0_L (REG_MBX_BASE+(0x006b<<1)) 354 #define VPU_REG_RISC_MBOX0_H (REG_MBX_BASE+(0x006c<<1)) 355 #define VPU_REG_RISC_MBOX1_L (REG_MBX_BASE+(0x006d<<1)) 356 #define VPU_REG_RISC_MBOX1_H (REG_MBX_BASE+(0x006e<<1)) 357 358 #define MAU1_CPU_RST (REG_MAU1_BASE+(0x0002<<1)) 359 #define MAU1_REG_SW_RESET BIT(0) 360 361 #define MAU1_ARB0_DBG0 (REG_MAU1_BASE+(0x0008<<1)) 362 #define MAU1_ARB1_DBG0 (REG_MAU1_BASE+(0x000a<<1)) 363 #define MAU1_FSM_CS_MASK BMASK(13:9) 364 #define MAU1_FSM_CS_IDLE BITS(13:9, 1) 365 366 #define MAU1_MIU_SEL (REG_MAU1_BASE+(0x0001<<1)) 367 #define MAU1_LV2_0_MIU_SEL (REG_MAU1_LV2_0_BASE+(0x0001<<1)) 368 #define MAU1_LV2_1_MIU_SEL (REG_MAU1_LV2_1_BASE+(0x0001<<1)) 369 370 371 //------------------------------------------------------------------------------ 372 // ChipTop Reg 373 //------------------------------------------------------------------------------ 374 375 #define CHIPTOP_REG_BASE (0x1E00 ) 376 #define CLKGEN0_REG_BASE (0x0B00 ) 377 378 #define REG_TOP_VPU (CLKGEN0_REG_BASE+(0x0030<<1)) 379 #define TOP_CKG_VPU_MASK BMASK(4:0) 380 #define TOP_CKG_VPU_DIS BIT(0) 381 #define TOP_CKG_VPU_INV BIT(1) 382 #define TOP_CKG_VPU_CLK_MASK BMASK(4:2) 383 384 #define REG_CHIPTOP_DUMMY_CODEC (CHIPTOP_REG_BASE+(0x0015<<1)) 385 #define REG_CHIPTOP_DUMMY_CODEC_MASK BMASK(15:0) 386 #define REG_CHIPTOP_DUMMY_CODEC_ENABLE BITS(15:14,1) 387 388 //------------------------------------------------------------------------------ 389 // MIU Reg 390 //------------------------------------------------------------------------------ 391 //------------------------------------------------------------------------------ 392 // MIU Reg 393 //------------------------------------------------------------------------------ 394 #define MIU0_REG_HVD_BASE (0x1200) 395 #define MIU0_REG_HVD_BASE2 (0x61500) 396 397 #define MIU1_REG_HVD_BASE (0x0600) 398 #define MIU1_REG_HVD_BASE2 (0x62200) 399 400 #define MIU2_REG_HVD_BASE (0x62000) 401 #define MIU2_REG_HVD_BASE2 (0x62300) 402 403 #define MIU0_REG_RQ0_MASK (MIU0_REG_HVD_BASE+(( 0x0023)<<1)) 404 #define MIU0_REG_RQ1_MASK (MIU0_REG_HVD_BASE+(( 0x0033)<<1)) 405 #define MIU0_REG_RQ2_MASK (MIU0_REG_HVD_BASE+(( 0x0043)<<1)) 406 #define MIU0_REG_RQ3_MASK (MIU0_REG_HVD_BASE+(( 0x0053)<<1)) 407 #define MIU0_REG_RQ4_MASK (MIU0_REG_HVD_BASE2+(( 0x0003)<<1)) 408 #define MIU0_REG_RQ5_MASK (MIU0_REG_HVD_BASE2+(( 0x0013)<<1)) 409 410 #define MIU1_REG_RQ0_MASK (MIU1_REG_HVD_BASE+(( 0x0023)<<1)) 411 #define MIU1_REG_RQ1_MASK (MIU1_REG_HVD_BASE+(( 0x0033)<<1)) 412 #define MIU1_REG_RQ2_MASK (MIU1_REG_HVD_BASE+(( 0x0043)<<1)) 413 #define MIU1_REG_RQ3_MASK (MIU1_REG_HVD_BASE+(( 0x0053)<<1)) 414 #define MIU1_REG_RQ4_MASK (MIU1_REG_HVD_BASE2+(( 0x0003)<<1)) 415 #define MIU1_REG_RQ5_MASK (MIU1_REG_HVD_BASE2+(( 0x0013)<<1)) 416 417 #define MIU2_REG_RQ0_MASK (MIU2_REG_HVD_BASE+(( 0x0023)<<1)) 418 #define MIU2_REG_RQ1_MASK (MIU2_REG_HVD_BASE+(( 0x0033)<<1)) 419 #define MIU2_REG_RQ2_MASK (MIU2_REG_HVD_BASE+(( 0x0043)<<1)) 420 #define MIU2_REG_RQ3_MASK (MIU2_REG_HVD_BASE+(( 0x0053)<<1)) 421 #define MIU2_REG_RQ4_MASK (MIU2_REG_HVD_BASE2+(( 0x0003)<<1)) 422 #define MIU2_REG_RQ5_MASK (MIU2_REG_HVD_BASE2+(( 0x0013)<<1)) 423 424 425 #define MIU0_REG_SEL0 (MIU0_REG_HVD_BASE+(( 0x0078)<<1)) 426 #define MIU0_REG_SEL1 (MIU0_REG_HVD_BASE+(( 0x0079)<<1)) 427 #define MIU0_REG_SEL2 (MIU0_REG_HVD_BASE+(( 0x007A)<<1)) 428 #define MIU0_REG_SEL3 (MIU0_REG_HVD_BASE+(( 0x007B)<<1)) 429 #define MIU0_REG_SEL4 (MIU0_REG_HVD_BASE+(( 0x007C)<<1)) 430 #define MIU0_REG_SEL5 (MIU0_REG_HVD_BASE+(( 0x007D)<<1)) 431 432 #define MIU2_REG_SEL0 (MIU2_REG_HVD_BASE+(( 0x0078)<<1)) 433 #define MIU2_REG_SEL1 (MIU2_REG_HVD_BASE+(( 0x0079)<<1)) 434 #define MIU2_REG_SEL2 (MIU2_REG_HVD_BASE+(( 0x007A)<<1)) 435 #define MIU2_REG_SEL3 (MIU2_REG_HVD_BASE+(( 0x007B)<<1)) 436 #define MIU2_REG_SEL4 (MIU2_REG_HVD_BASE+(( 0x007C)<<1)) 437 #define MIU2_REG_SEL5 (MIU2_REG_HVD_BASE+(( 0x007D)<<1)) 438 439 440 //------------------------------------------------------------------------------------------------- 441 // Type and Structure 442 //------------------------------------------------------------------------------------------------- 443 444 445 446 447 #endif // _REG_VPU_H_ 448 449