123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 |
- /**
- included by
- 1. kernel setup.c
- 2. bootrom
- **/
- #ifndef _DRV_RESERV_MMAP_H_
- #define _DRV_RESERV_MMAP_H_
- #if (CONFIG_CHIPID == 0x533)
- #include "reserve_mmap/drv_reserve_mmap_533.h"
- #elif (CONFIG_CHIPID == 0x531)
- #include "reserve_mmap/drv_reserve_mmap_531.h"
- #elif (CONFIG_CHIPID == 0x331)
- #include "reserve_mmap/drv_reserve_mmap_331.h"
- #elif (CONFIG_CHIPID == 0x131)
- #include "reserve_mmap/drv_reserve_mmap_131.h"
- #elif (CONFIG_CHIPID == 0x8506)
- #include "reserve_mmap/drv_reserve_mmap_8506.h"
- #elif (CONFIG_CHIPID == 0x6710)
- #include "reserve_mmap/drv_reserve_mmap_6710.h"
- #else
- #include "reserve_mmap/drv_reserve_mmap_default.h"
- #endif
- //DTV_MPEG tiling setting
- /*
- 0xbe02080c
- 00 3a 50 2a
- | | `-- start address
- | `-- tiling mode
- `-- end address
- ex: start address 0x05E00000 -> 0x2f (0x5E/2)
- end address 0x07C00000 -> 0x3e (0x7C+1)/2
- */
- #define Tiling_start (RMEM_MPEG_START_ADDR >> 20)/2
- #if (CONFIG_CHIPID == 0x533) && defined(CONFIG_SUPPORT_PVR) && (CONFIG_DRAMSIZE ==128)
- #define Tiling_end (((RMEM_MPEG_START_ADDR+RMEM_DTV_MPEG)>>20)-0x4)/2
- #else
- #define Tiling_end (((RMEM_MPEG_START_ADDR+RMEM_DTV_MPEG)>>20))/2
- #endif
- #define Dram_Tiling_Setting (0x00005000+Tiling_start+(Tiling_end<<16)) //(0x001e6011)
- #define Media_Tiling_end (((RMEM_MPEG_START_ADDR+RMEM_DTV_RUNAV)>>20))/2
- #define Dram_Media_Tiling_Setting (0x00005000+Tiling_start+(Media_Tiling_end<<16)) //(0x001e6011)
- #ifdef CONFIG_SUPPORT_USB_MCAST
- #define Net_Tiling_end (((RMEM_MPEG_START_ADDR+RMEM_NET_RUNAV)>>20))/2
- #define Dram_Net_Tiling_Setting (0x00005000+Tiling_start+(Net_Tiling_end<<16)) //(0x001e6011)
- #endif
- #ifndef CONFIG_DRAMSIZE
- #define CONFIG_DRAMSIZE 128
- #endif
- #ifdef CONFIG_BLT_ADD_OSD_COMPRESS_SIZE
- #define ADD_OSD_COMPRESS_SIZE CONFIG_BLT_ADD_OSD_COMPRESS_SIZE
- #else
- #define ADD_OSD_COMPRESS_SIZE 0
- #endif
- #if defined(CONFIG_SUPPORT_TTX) && defined(CONFIG_TTX_FONT_SIZE_30)
- #define RMEM_TT_FONT 0x00045000
- #elif defined(CONFIG_SUPPORT_TTX) && defined(CONFIG_TTX_FONT_SIZE_10)
- #define RMEM_TT_FONT 0x00019000
- #else
- #define RMEM_TT_FONT 0x00000000
- #endif
- #if defined(CONFIG_CC_SUPPORT)
- #define RMEM_CC_FONT 0x00053000
- #else
- #define RMEM_CC_FONT 0x00000000
- #endif
- #define RMEM_OSDLIB (RMEM_TT_FONT+RMEM_CC_FONT)
- #ifdef CONFIG_SUPPORT_PHOTO_TWO_DISPLAY_BUFFER
- #define RMEM_VIP_USB 0x00c80000
- #else
- #define RMEM_VIP_USB 0x00880000
- #endif
- #ifdef CONFIG_SUPPORT_TCON
- #define RMEM_TCON_ADDR 0x01180000
- #define RMEM_TCON 0x00180000
- #else
- #define RMEM_TCON_ADDR 0x00000000
- #define RMEM_TCON 0x00000000
- #endif
- #if defined( CONFIG_DTV_SUPPORT ) || defined(CONFIG_MEDIA_ENABLE)
- /*SOURCEID_DTV */
- #define RMEM_DTV_AUDIO RMEM_AUDIO
- #define RMEM_DTV_OSDLIB RMEM_OSDLIB
- #define RMEM_DTV_BLT RMEM_BLT+ADD_OSD_COMPRESS_SIZE
- #define RMEM_DTV_TCON RMEM_TCON
- #define RMEM_DTV_VIP RMEM_VIP
- #define RMEM_DTV_VBV RMEM_VBV
- #define RMEM_DTV_MPEG RMEM_MPEG
- #define RMEM_DTV_DEMOD RMEM_DEMOD
- #define RMEM_DTV_PVR RMEM_PVR
- #define RMEM_DTV_RUNAV RMEM_MPEG+RMEM_RUNAV
- #define RMEM_DTV_POOL RMEM_DEMOD+RMEM_PVR-RMEM_RUNAV
- #define RMEM_DTV_SUBTITLE RMEM_PVR
- #define RMEM_DTV_MIR RMEM_MIR
- #define RMEM_DTV_FREE RMEM_DTV_VIP+RMEM_DTV_VBV+RMEM_DTV_MPEG+RMEM_DTV_DEMOD+RMEM_DTV_PVR
- #else
- #define RMEM_DTV_AUDIO RMEM_AUDIO
- #define RMEM_DTV_OSDLIB RMEM_OSDLIB
- #define RMEM_DTV_BLT RMEM_BLT+ADD_OSD_COMPRESS_SIZE
- #define RMEM_DTV_TCON RMEM_TCON
- #define RMEM_DTV_VIP RMEM_VIP
- #define RMEM_DTV_FREE RMEM_DTV_VIP
- #endif
- #if defined( CONFIG_ATV_SUPPORT ) || defined( CONFIG_AV_SUPPORT )
- /*SOURCEID_ATV */
- #define RMEM_ATV_AUDIO RMEM_AUDIO
- #define RMEM_ATV_OSDLIB RMEM_OSDLIB
- #define RMEM_ATV_BLT RMEM_BLT+ADD_OSD_COMPRESS_SIZE
- #define RMEM_ATV_TCON RMEM_TCON
- #define RMEM_ATV_CVD2 0x00362000
- #define RMEM_ATV_SUBTITLE RMEM_PVR
- #define RMEM_ATV_FREE RMEM_DTV_FREE-RMEM_ATV_CVD2-RMEM_ATV_SUBTITLE
- #define RMEM_ATV_VIP ADDR_RMEM_ATV_RMRTEST - ADDR_RMEM_ATV_VIP
- #define RMEM_ATV_RMRTEST (ADDR_RMEM_ATV_VIP+RMEM_ATV_FREE) - ADDR_RMEM_ATV_RMRTEST
- #define RMEM_ATV_MIR RMEM_MIR
- #endif
- #if defined( CONFIG_HDMI_SUPPORT ) || defined( CONFIG_PC_SUPPORT )
- /*SOURCEID_HDMI */
- #define RMEM_HDMI_AUDIO RMEM_AUDIO
- #define RMEM_HDMI_OSDLIB RMEM_OSDLIB
- #define RMEM_HDMI_BLT RMEM_BLT+ADD_OSD_COMPRESS_SIZE
- #define RMEM_HDMI_TCON RMEM_TCON
- #define RMEM_HDMI_VIP RMEM_DTV_FREE
- #define RMEM_HDMI_MIR RMEM_MIR
- #endif
- #ifdef CONFIG_MEDIA_ENABLE
- /*SOURCEID_USB */
- #define RMEM_USB_AUDIO RMEM_AUDIO
- #define RMEM_USB_OSDLIB RMEM_OSDLIB
- #define RMEM_USB_BLT RMEM_BLT+ADD_OSD_COMPRESS_SIZE
- #define RMEM_USB_TCON RMEM_TCON
- #define RMEM_USB_POOL RMEM_POOL
- #define RMEM_USB_DIO RMEM_DIO
- #define RMEM_USB_VIP RMEM_VIP_USB
- #define RMEM_USB_JPEG RMEM_DTV_FREE-RMEM_USB_VIP-RMEM_USB_DIO-RMEM_USB_POOL
- #define RMEM_USB_MIR RMEM_MIR
- #endif
- #ifdef CONFIG_COMPONENT_SUPPORT
- /*SOURCEID_COMPONENT */
- #define RMEM_COMP_AUDIO RMEM_AUDIO
- #define RMEM_COMP_OSDLIB RMEM_OSDLIB
- #define RMEM_COMP_TCON RMEM_TCON
- #define RMEM_COMP_BLT RMEM_BLT+ADD_OSD_COMPRESS_SIZE
- #define RMEM_COMP_SUBTITLE RMEM_PVR
- #define RMEM_COMP_VIP RMEM_DTV_FREE-RMEM_COMP_SUBTITLE
- #define RMEM_COMP_MIR RMEM_MIR
- #endif
- #ifdef CONFIG_SUPPORT_USB_MCAST
- /*SOURCEID_NET */
- #define RMEM_NET_AUDIO RMEM_AUDIO
- #define RMEM_NET_OSDLIB RMEM_OSDLIB
- #define RMEM_NET_BLT RMEM_BLT+ADD_OSD_COMPRESS_SIZE
- #define RMEM_NET_TCON RMEM_TCON
- #define RMEM_NET_VIP RMEM_VIP
- #define RMEM_NET_VBV RMEM_VBV
- #define RMEM_NET_RUNAV RMEM_MPEG-RMEM_NETRUNAV
- #define RMEM_NET_POOL RMEM_NETRUNAV
- #define RMEM_NET_MIR RMEM_MIR
- #endif
- /* auto count address, you don't have to change these */
- #if defined( CONFIG_DTV_SUPPORT ) || defined( CONFIG_MEDIA_ENABLE )
- /*SOURCEID_DTV */
- #define ADDR_RMEM_DTV_TCON RMEM_TCON_ADDR
- #define ADDR_RMEM_DTV_AUDIO RMEM_START_ADDR
- #define ADDR_RMEM_DTV_OSDLIB (ADDR_RMEM_DTV_AUDIO + RMEM_DTV_AUDIO)
- #define ADDR_RMEM_DTV_BLT (ADDR_RMEM_DTV_OSDLIB + RMEM_DTV_OSDLIB)
- #define ADDR_RMEM_DTV_VIP (ADDR_RMEM_DTV_BLT + RMEM_DTV_BLT)
- #define ADDR_RMEM_DTV_VBV (ADDR_RMEM_DTV_VIP + RMEM_DTV_VIP)
- #define ADDR_RMEM_DTV_MPEG (ADDR_RMEM_DTV_VBV + RMEM_DTV_VBV)
- #define ADDR_RMEM_DTV_RUNAV (ADDR_RMEM_DTV_VBV + RMEM_DTV_VBV)
- #define ADDR_RMEM_DTV_DEMOD (ADDR_RMEM_DTV_MPEG + RMEM_DTV_MPEG)
- #define ADDR_RMEM_DTV_POOL (ADDR_RMEM_DTV_MPEG + RMEM_DTV_RUNAV)
- #define ADDR_RMEM_DTV_PVR (ADDR_RMEM_DTV_DEMOD + RMEM_DTV_DEMOD)
- #define ADDR_RMEM_DTV_SUBTITLE (ADDR_RMEM_DTV_DEMOD + RMEM_DTV_DEMOD)
- #ifdef CONFIG_ENABLE_MIR
- #define ADDR_RMEM_DTV_MIR (ADDR_RMEM_DTV_PVR + RMEM_DTV_PVR)
- #endif
- #endif
- #if defined( CONFIG_ATV_SUPPORT ) || defined( CONFIG_AV_SUPPORT )
- /*SOURCEID_ATV */
- #define ADDR_RMEM_ATV_TCON RMEM_TCON_ADDR
- #define ADDR_RMEM_ATV_AUDIO RMEM_START_ADDR
- #define ADDR_RMEM_ATV_OSDLIB (ADDR_RMEM_ATV_AUDIO + RMEM_ATV_AUDIO)
- #define ADDR_RMEM_ATV_BLT (ADDR_RMEM_ATV_OSDLIB + RMEM_ATV_OSDLIB)
- #define ADDR_RMEM_ATV_CVD2 (ADDR_RMEM_ATV_BLT + RMEM_ATV_BLT)
- #define ADDR_RMEM_ATV_SUBTITLE (ADDR_RMEM_ATV_CVD2 + RMEM_ATV_CVD2)
- #define ADDR_RMEM_ATV_VIP (ADDR_RMEM_ATV_SUBTITLE + RMEM_ATV_SUBTITLE)
- #define ADDR_RMEM_ATV_RMRTEST ((ADDR_RMEM_ATV_VIP+RMEM_ATV_FREE-RMEM_RMRTEST)&0xFFF00000)
- #ifdef CONFIG_ENABLE_MIR
- #define ADDR_RMEM_ATV_MIR (ADDR_RMEM_ATV_RMRTEST + RMEM_ATV_RMRTEST)
- #endif
- #endif
- #if defined( CONFIG_HDMI_SUPPORT ) || defined( CONFIG_PC_SUPPORT )
- /*SOURCEID_HDMI */
- #define ADDR_RMEM_HDMI_TCON RMEM_TCON_ADDR
- #define ADDR_RMEM_HDMI_AUDIO RMEM_START_ADDR
- #define ADDR_RMEM_HDMI_OSDLIB (ADDR_RMEM_HDMI_AUDIO + RMEM_HDMI_AUDIO)
- #define ADDR_RMEM_HDMI_BLT (ADDR_RMEM_HDMI_OSDLIB + RMEM_HDMI_OSDLIB)
- #define ADDR_RMEM_HDMI_VIP (ADDR_RMEM_HDMI_BLT + RMEM_HDMI_BLT)
- #ifdef CONFIG_ENABLE_MIR
- #define ADDR_RMEM_HDMI_MIR (ADDR_RMEM_HDMI_VIP + RMEM_HDMI_VIP)
- #endif
- #endif
- #ifdef CONFIG_MEDIA_ENABLE
- /*SOURCEID_USB */
- #define ADDR_RMEM_USB_TCON RMEM_TCON_ADDR
- #define ADDR_RMEM_USB_AUDIO RMEM_START_ADDR
- #define ADDR_RMEM_USB_OSDLIB (ADDR_RMEM_USB_AUDIO + RMEM_USB_AUDIO)
- #define ADDR_RMEM_USB_BLT (ADDR_RMEM_USB_OSDLIB + RMEM_USB_OSDLIB)
- #define ADDR_RMEM_USB_POOL (ADDR_RMEM_USB_BLT + RMEM_USB_BLT)
- #define ADDR_RMEM_USB_DIO (ADDR_RMEM_USB_POOL + RMEM_USB_POOL)
- #define ADDR_RMEM_USB_VIP (ADDR_RMEM_USB_DIO + RMEM_USB_DIO)
- #define ADDR_RMEM_USB_JPEG (ADDR_RMEM_USB_VIP + RMEM_USB_VIP)
- #ifdef CONFIG_ENABLE_MIR
- #define ADDR_RMEM_USB_MIR (ADDR_RMEM_USB_JPEG + RMEM_USB_JPEG)
- #endif
- #endif
- #ifdef CONFIG_COMPONENT_SUPPORT
- /*SOURCEID_COMPONENT */
- #define ADDR_RMEM_COMP_TCON RMEM_TCON_ADDR
- #define ADDR_RMEM_COMP_AUDIO RMEM_START_ADDR
- #define ADDR_RMEM_COMP_OSDLIB (ADDR_RMEM_COMP_AUDIO + RMEM_COMP_AUDIO)
- #define ADDR_RMEM_COMP_BLT (ADDR_RMEM_COMP_OSDLIB + RMEM_COMP_OSDLIB)
- #define ADDR_RMEM_COMP_SUBTITLE (ADDR_RMEM_COMP_BLT + RMEM_COMP_BLT)
- #define ADDR_RMEM_COMP_VIP (ADDR_RMEM_COMP_SUBTITLE+ RMEM_COMP_SUBTITLE)
- #ifdef CONFIG_ENABLE_MIR
- #define ADDR_RMEM_COMP_MIR (ADDR_RMEM_COMP_VIP + RMEM_COMP_VIP)
- #endif
- #endif
- #ifdef CONFIG_SUPPORT_USB_MCAST
- /*SOURCEID_NET */
- #define ADDR_RMEM_NET_TCON RMEM_TCON_ADDR
- #define ADDR_RMEM_NET_AUDIO RMEM_START_ADDR
- #define ADDR_RMEM_NET_OSDLIB (ADDR_RMEM_NET_AUDIO + RMEM_NET_AUDIO)
- #define ADDR_RMEM_NET_BLT (ADDR_RMEM_NET_OSDLIB + RMEM_NET_OSDLIB)
- #define ADDR_RMEM_NET_VIP (ADDR_RMEM_NET_BLT + RMEM_NET_BLT)
- #define ADDR_RMEM_NET_VBV (ADDR_RMEM_NET_VIP + RMEM_NET_VIP)
- #define ADDR_RMEM_NET_RUNAV (ADDR_RMEM_NET_VBV + RMEM_NET_VBV)
- #define ADDR_RMEM_NET_POOL (ADDR_RMEM_NET_RUNAV + RMEM_NET_RUNAV)
- #ifdef CONFIG_ENABLE_MIR
- #define ADDR_RMEM_NET_MIR (ADDR_RMEM_NET_POOL + RMEM_NET_POOL)
- #endif
- #endif
- #endif // _DRV_RESERV_MMAP_H_
|