drv_reserve_mmap_6710.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #ifndef _DRV_RESERV_MMAP_6710_H_
  2. #define _DRV_RESERV_MMAP_6710_H_
  3. #if defined( CONFIG_MEDIA_ENABLE )
  4. #define RMEM_START_ADDR RMEM_MPEG_START_ADDR-RMEM_DTV_VBV-RMEM_DTV_VIP-RMEM_BLT-ADD_OSD_COMPRESS_SIZE-RMEM_DTV_OSDLIB-RMEM_DTV_AUDIO
  5. #else
  6. #define RMEM_START_ADDR RMEM_MPEG_START_ADDR-RMEM_DTV_VIP-RMEM_BLT-ADD_OSD_COMPRESS_SIZE-RMEM_DTV_OSDLIB-RMEM_DTV_AUDIO
  7. #endif
  8. #if (CONFIG_DRAMSIZE == 64 )//6710
  9. /* please fill reserve memory size here */
  10. #if defined( CONFIG_MEDIA_ENABLE )
  11. #define RMEM_MPEG_START_ADDR 0x02200000 //Need 2MB align
  12. #define RMEM_BLT 0x00270000
  13. #define RMEM_VIP 0x003c0000
  14. #else
  15. #define RMEM_MPEG_START_ADDR 0x03c00000
  16. #define RMEM_BLT 0x00270000
  17. #define RMEM_VIP 0x01b00000//0x003c0000
  18. #endif
  19. #define RMEM_VBV 0x004a0000
  20. #define RMEM_MIR 0x00000000
  21. #define RMEM_MPEG 0x01a96000
  22. #define RMEM_DEMOD 0x00000000
  23. #define RMEM_PVR 0x00000000
  24. #define RMEM_POOL 0x00000000
  25. #define RMEM_RUNAV 0x00000000
  26. #define RMEM_DIO 0x00000000
  27. #define RMEM_RMRTEST 0x00000000
  28. #ifdef CONFIG_SUPPORT_USB_MCAST
  29. #define RMEM_NETRUNAV 0x00600000 //reduce to memory pool 6MB
  30. #endif
  31. #ifdef CONFIG_AUDIO_16_BIT_MEMORY
  32. #define RMEM_AUDIO 0x0013e000
  33. #else
  34. #define RMEM_AUDIO 0x001a4000 //0x00152000
  35. #endif
  36. #elif (CONFIG_DRAMSIZE == 128 ) //6710 128MB
  37. /* please fill reserve memory size here */
  38. #define RMEM_MPEG_START_ADDR 0x05e00000 //Need 2MB align
  39. #define RMEM_AUDIO 0x002c4000
  40. #define RMEM_BLT 0x0068f000
  41. #define RMEM_VBV 0x00800000
  42. #define RMEM_MPEG 0x01F40000
  43. #define RMEM_DEMOD 0x00000000
  44. #define RMEM_POOL 0x00000000
  45. #define RMEM_PVR 0x00000000
  46. #define RMEM_RUNAV 0x00000000
  47. #define RMEM_DIO 0x00000000
  48. #define RMEM_RMRTEST 0x00000000
  49. #define RMEM_MIR 0x00000000
  50. #ifdef CONFIG_SUPPORT_USB_MCAST
  51. #define RMEM_NETRUNAV 0x00000000
  52. #endif
  53. #if defined(CONFIG_EXTIC_LCDCONVERTER)
  54. #define RMEM_VIP 0x00cb0000 //eDP panel needs to disable frame lock and needs 3 buffers all the time.
  55. #elif defined(CONFIG_VIP_COLOR_FORMAT_Y8BIT)
  56. #define RMEM_VIP 0x00780000 //7.5MB 2015.08.19 If use Y8bit, memory can reserve 1MB.
  57. #else
  58. #define RMEM_VIP 0x00880000 //8.5MB, 2014.07.16 jengyun, Y10, C420 and Half-motion are standard procedure of VIP in DTV src, the VIP reserved is 8.5MB instead of 11.75MB. (save 3.25MB)
  59. #endif
  60. #endif //CONFIG_DRAMSIZE == 128
  61. #endif // _DRV_RESERV_MMAP_6710_H_