// //****************************************************************************** // MStar Software // Copyright (c) 2010 - 2012 MStar Semiconductor, Inc. All rights reserved. // All software, firmware and related documentation herein ("MStar Software") are // intellectual property of MStar Semiconductor, Inc. ("MStar") and protected by // law, including, but not limited to, copyright law and international treaties. // Any use, modification, reproduction, retransmission, or republication of all // or part of MStar Software is expressly prohibited, unless prior written // permission has been granted by MStar. // // By accessing, browsing and/or using MStar Software, you acknowledge that you // have read, understood, and agree, to be bound by below terms ("Terms") and to // comply with all applicable laws and regulations: // // 1. MStar shall retain any and all right, ownership and interest to MStar // Software and any modification/derivatives thereof. // No right, ownership, or interest to MStar Software and any // modification/derivatives thereof is transferred to you under Terms. // // 2. You understand that MStar Software might include, incorporate or be // supplied together with third party`s software and the use of MStar // Software may require additional licenses from third parties. // Therefore, you hereby agree it is your sole responsibility to separately // obtain any and all third party right and license necessary for your use of // such third party`s software. // // 3. MStar Software and any modification/derivatives thereof shall be deemed as // MStar`s confidential information and you agree to keep MStar`s // confidential information in strictest confidence and not disclose to any // third party. // // 4. MStar Software is provided on an "AS IS" basis without warranties of any // kind. Any warranties are hereby expressly disclaimed by MStar, including // without limitation, any warranties of merchantability, non-infringement of // intellectual property rights, fitness for a particular purpose, error free // and in conformity with any international standard. You agree to waive any // claim against MStar for any loss, damage, cost or expense that you may // incur related to your use of MStar Software. // In no event shall MStar be liable for any direct, indirect, incidental or // consequential damages, including without limitation, lost of profit or // revenues, lost or damage of data, and unauthorized system use. // You agree that this Section 4 shall still apply without being affected // even if MStar Software has been modified by MStar in accordance with your // request or instruction for your use, except otherwise agreed by both // parties in writing. // // 5. If requested, MStar may from time to time provide technical supports or // services in relation with MStar Software to you for your use of // MStar Software in conjunction with your or your customer`s product // ("Services"). // You understand and agree that, except otherwise agreed by both parties in // writing, Services are provided on an "AS IS" basis and the warranty // disclaimer set forth in Section 4 above shall apply. // // 6. Nothing contained herein shall be construed as by implication, estoppels // or otherwise: // (a) conferring any license or right to use MStar name, trademark, service // mark, symbol or any other identification; // (b) obligating MStar or any of its affiliates to furnish any person, // including without limitation, you and your customers, any assistance // of any kind whatsoever, or any information; or // (c) conferring any license or right under any intellectual property right. // // 7. These terms shall be governed by and construed in accordance with the laws // of Taiwan, R.O.C., excluding its conflict of law rules. // Any and all dispute arising out hereof or related hereto shall be finally // settled by arbitration referred to the Chinese Arbitration Association, // Taipei in accordance with the ROC Arbitration Law and the Arbitration // Rules of the Association by three (3) arbitrators appointed in accordance // with the said Rules. // The place of arbitration shall be in Taipei, Taiwan and the language shall // be English. // The arbitration award shall be final and binding to both parties. // //****************************************************************************** //////////////////////////////////////////////////////////////////////////////////////////////////// // // File name: regFQ.h // Description: FQ Register Definition // //////////////////////////////////////////////////////////////////////////////////////////////////// #ifndef _FQ_REG_H_ #define _FQ_REG_H_ //-------------------------------------------------------------------------------------------------- // Global Definition //-------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------- // Compliation Option //-------------------------------------------------------------------------------------------------- //------------------------------------------------------------------------------------------------- // Harware Capability //------------------------------------------------------------------------------------------------- //------------------------------------------------------------------------------------------------- // Type and Structure //------------------------------------------------------------------------------------------------- // Software #define FQ_REG_CTRL_BASE (0x60A80UL * 2UL) typedef struct _REG32_FQ { volatile MS_U16 L; volatile MS_U16 empty_L; volatile MS_U16 H; volatile MS_U16 empty_H; } REG32_FQ; typedef struct _REG16_FQ { volatile MS_U16 data; volatile MS_U16 _resv; } REG16_FQ; typedef struct _REG_FIQ { REG16_FQ Reg_fiq_config0; //0x40 #define FIQ_CFG0_SW_RSTZ 0x0001 //sw_rstz #define FIQ_CFG0_PVR_ENABLE 0x0002 //stream2miu_en #define FIQ_CFG0_RESET_WR_PTR 0x0004 //str2miu_rst_wadr #define FIQ_CFG0_FIQ2MI_DSWAP 0x0008 #define FIQ_CFG0_FIQ2MI_BITORD_BIG 0x0010 #define FIQ_CFG0_PVR_PAUSE 0x0020 #define FIQ_CFG0_LOAD_WR_PTR 0x0040 //strm2mi2_wp_ld #define FIQ_CFG0_MIU_HIGH_PRI 0x0080 #define FIQ_CFG0_FORCE_SYNC_EN 0x0100 #define FIQ_CFG0_REC_AT_SYNC_DIS 0x0200 #define FIQ_CFG0_CLR_PVR_OVERFLOW 0x0400 #define FIQ_CFG0_FIQ2MI_R_PRT_HIGHT 0x0800 #define FIQ_CFG0_BURST_LEN_MASK 0x3000 #define FIQ_CFG0_BURST_LEN_8BYTE 0x0000 #define FIQ_CFG0_BURST_LEN_4BYTE 0x1000 #define FIQ_CFG0_BURST_LEN_1BYTE 0x3000 #define FIQ_CFG0_RUSH_ENABLE 0x4000 //rush_en #define FIQ_CFG0_ADDR_MODE 0x8000 //addr_mode #define FIQ_STR2MI2_ADDR_MASK 0x0FFFFFFF REG32_FQ str2mi_head; //0x41 REG32_FQ str2mi_tail; //0x43 REG32_FQ str2mi_mid; //0x45 REG32_FQ rush_addr; //0x47 REG32_FQ cur_pkt_start_wadr_offset; //0x49 REG16_FQ Reg_fiq_config11; //0x4b #define FIQ_CFG11_FIQ_BYPASS 0x0001 //FIQ_bypass #define FIQ_CFG11_BURST_LEVEL_MASK 0x0006 #define FIQ_CFG11_BURST_LEVEL_25 0x0000 #define FIQ_CFG11_BURST_LEVEL_50 0x0002 #define FIQ_CFG11_BURST_LEVEL_75 0x0004 #define FIQ_CFG11_BURST_LEVEL_100 0x0006 #define FIQ_CFG11_SKIP_RUSH_DATA_PATH_MASK 0x13F8 #define FIQ_CFG11_SKIP_RUSH_DATA_PATH_NON 0x0000 #define FIQ_CFG11_SKIP_APES_RUSH_DATA 0x0008 //skip_apes_rush_data #define FIQ_CFG11_SKIP_APES_B_RUSH_DATA 0x0010 //skip_apes_b_rush_data #define FIQ_CFG11_SKIP_VPES_RUSH_DATA 0x0020 //skip_vpes_rush_data #define FIQ_CFG11_SKIP_SEC_RUSH_DATA 0x0040 //skip_sec_rush_data #define FIQ_CFG11_SKIP_ADP_RUSH_DATA 0x0080 //skip_adp_rush_data #define FIQ_CFG11_SKIP_PCR_RUSH_DATA 0x0100 //skip_pcr_rush_data #define FIQ_CFG11_SKIP_RASP_RUSH_DATA 0x0000 #define FIQ_CFG11_SKIP_PVR1_RUSH_DATA 0x0200 //skip_PVR1_rush_data #define FIQ_CFG11_LPCR1_WLD 0x0400 #define FIQ_CFG11_LPCR1_LOAD 0x0800 #define FIQ_CFG11_SKIP_PCR1_RUSH_DATA 0x1000 #define FIQ_CFG11_TIMESTAMP_SRC_SEL 0x2000 #define FIQ_CFG11_C27M_EN_FIQ 0x4000 #define FIQ_CFG11_SKIP_RUSH_DATA_PATH1_MASK 0x0238 #define FIQ_CFG11_SKIP_RUSH_DATA_PATH1_NON 0x0000 #define FIQ_CFG11_SKIP_APES_C_RUSH_DATA 0x0008 #define FIQ_CFG11_SKIP_APES_D_RUSH_DATA 0x0010 #define FIQ_CFG11_SKIP_V3DPES_RUSH_DATA 0x0020 #define FIQ_CFG11_SKIP_PVR2_RUSH_DATA 0x0200 #define FIQ_CFG11_SKIP_PVR3_RUSH_DATA 0x0000 REG32_FQ pkt_addr_offset; //0x4c REG16_FQ REG_FIQ0_CFG2; //0x4e REG16_FQ REG_FIQ0_CFG3; //0x4f REG16_FQ Reg_fiq_config16; //0x50 #define FIQ_CFG16_INT_ENABLE_MASK 0x00FF #define FIQ_CFG16_INT_ENABLE_RUSH_DONE 0x0001 #define FIQ_CFG16_INT_ENABLE_PVR_MEET_BUFTAIL 0x0002 #define FIQ_CFG16_INT_ENABLE_PVR_MEET_BUFMID 0x0004 #define FIQ_CFG16_INT_STATUS_MASK 0xFF00 #define FIQ_CFG16_INT_STATUS_RUSH_DONE 0x0100 REG32_FQ str2mi2_wadr_r; //0x51 REG32_FQ Fiq2mi2_radr_r; //0x53 REG16_FQ Fiq_status; //0x55 #define FIQ_STATUS_PVRFIFO_EMPTY 0x0001 #define FIQ_STATUS_PVRFIFO_FULL 0x0002 #define FIQ_STATUS_PVRFIFO_WLEVEL_MASK 0x000C #define FIQ_STATUS_PVRFIFO_EVEN_OVF 0x0010 REG32_FQ lpcr1; //0x56 REG32_FQ REG18_1F_RESERVED[4]; //0x58~0x5F }REG_FIQ; #endif // _FQ_REG_H_