⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 merge79.h

📁 MTK1389L的源代码
💻 H
字号:
/***************    MTK CONFIDENTIAL & COPYRIGHTED     ****************/
/***************                                       ****************/
/***************  $Modtime:: 07/04/28 2:14p    $       ****************/
/***************  $Revision:: 9                $       ****************/
/***************                                       ****************/
/*************** Description : MT1379 code merge       ****************/
/***************               utility                 ****************/
/***************                                       ****************/
/***************     Company : MediaTek Inc.           ****************/
/***************  Programmer : Joseph Lin              ****************/
/**********************************************************************/
#ifndef _INC_MERGE
#define _INC_MERGE

#define DRAMB_CACH_BASE_ADDRESS             0x00000000L
#define DRAMA_CACH_BASE_ADDRESS             0x01000000L
#define FLASH_CACH_BASE_ADDRESS             0x02000000L

#define DRAMA_NONCACH_BASE_ADDRESS          0x03000000L
#define DRAMB_NONCACH_BASE_ADDRESS          0x04000000L
#define FLASH_NONCACH_BASE_ADDRESS          0x05000000L
#define IO_BASE_ADDRESS                     0x06000000L
#define CODE_INFO_START_ADDRESS             0x200

 #if (DRAM_SZ == DRAM_2M)
  #define DRAM_PARTITION_ADDR                 0x1F0000L
  #define TOC_BUF_ADDR                        0x1EF000L
  #define SECTOR_BUF_COUNT    33      
#elif (DRAM_SZ == DRAM_4M) 
  #ifdef RISC_ICE_MODE
    #define DRAM_PARTITION_ADDR               0x380000L
    #define TOC_BUF_ADDR                      0x37C400L
    #define SECTOR_BUF_COUNT    50    
  #else    
    #if (defined(EMD_SUPPORT) || defined(SUPPORT_EMD))              
      /* must be overlay */
      #define DRAM_PARTITION_ADDR               0x39e800L
      #define TOC_BUF_ADDR                      0x39ac00L     
      #define SECTOR_BUF_COUNT    33   
    #else //EMD_SUPPORT
      #if defined(MT1389_REV_D) || defined(MT1389_REV_E)
        #define RESERVED_FOR_DSP  10
      #else
        #define RESERVED_FOR_DSP  0
      #endif
      #if (defined(OVERLAY) || defined(RISC_OVERLAY))    
        /* need further revising */
        #define DRAM_PARTITION_ADDR               0x39e800L
        #define TOC_BUF_ADDR                      0x39ac00L     
        #define SECTOR_BUF_COUNT    (50 - RESERVED_FOR_DSP)
      #else //OVERLAY
        #define DRAM_PARTITION_ADDR               0x38f800L
        #define TOC_BUF_ADDR                      0x38bc00L     
        #define SECTOR_BUF_COUNT    (50 - RESERVED_FOR_DSP)
      #endif //OVERLAY
    #endif //EMD_SUPPORT
    
  #endif
#elif (DRAM_SZ == DRAM_8M) 
  #ifdef RISC_ICE_MODE
  #define DRAM_PARTITION_ADDR                 0x730000L
  #define TOC_BUF_ADDR                        0x72C400L 
  #else
  #define DRAM_PARTITION_ADDR                 0x770000L
  #define TOC_BUF_ADDR                        0x76C400L
  #endif

  #if defined(MT1389_REV_L)
    #if (defined(EMD_SUPPORT) || defined(SUPPORT_EMD))
      #if (defined(OVERLAY) || defined(RISC_OVERLAY))    
          #define SECTOR_BUF_COUNT    44 
      #else
          #define SECTOR_BUF_COUNT    45
      #endif
    #else      
      #define SECTOR_BUF_COUNT    73
    #endif  
  #else
    #if (defined(MT1389_REV_D) ||defined(MT1389_REV_E) ||defined(MT1389_REV_K))
      #define SECTOR_BUF_COUNT    73  
    #endif  
  #endif

  
  #if 0 // keep for reference only
  #if (defined(EMD_SUPPORT) || defined(SUPPORT_EMD))
    // Alan Cheng modified for 8M overlay case
    #if (defined(OVERLAY) || defined(RISC_OVERLAY))    
	  #define SECTOR_BUF_COUNT    50
    #else
	  #define SECTOR_BUF_COUNT    45
    #endif
  #elif (defined(MT1389_REV_D) ||  defined(MT1389_REV_E))
    #define SECTOR_BUF_COUNT    73
  #else
	#define SECTOR_BUF_COUNT    83
  #endif
  #endif //0
  
#elif (DRAM_SZ == DRAM_16M) 
  #define DRAM_PARTITION_ADDR                 0xF40000L
  #define TOC_BUF_ADDR                        0xF3C400L 
  #define SECTOR_BUF_COUNT    79  
#endif

#define TOC_BUF_SIZE                          0x800
#define SHAREMEM_SIZE                         0x2000
#define CDTXT_BUF_SIZE                        0x1000

#define SHAREMEM_ADDR                         (TOC_BUF_ADDR + TOC_BUF_SIZE)
#define CDTXT_BUF_ADDR                        (SHAREMEM_ADDR + SHAREMEM_SIZE)

#endif  // _INC_MERGE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -