////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2006-2009 MStar Semiconductor, Inc.
// All rights reserved.
//
// Unless otherwise stipulated in writing, any and all information contained
// herein regardless in any format shall remain the sole proprietary of
// MStar Semiconductor Inc. and be kept in strict confidence
// ("MStar Confidential Information") by the recipient.
// Any unauthorized act including without limitation unauthorized disclosure,
// copying, use, reproduction, sale, distribution, modification, disassembling,
// reverse engineering and compiling of the contents of MStar Confidential
// Information is unlawful and strictly prohibited. MStar hereby reserves the
// rights to any and all damages, losses, costs and expenses resulting therefrom.
//
////////////////////////////////////////////////////////////////////////////////

#define SCA_TOOL_VERSION            "SN SCA V1.1.3 "

////////////////////////////////////////////////////////////////////////////////
// DRAM memory map
//
// Every Module Memory Mapping need 4 define,
// and check code in "msAPI_Memory_DumpMemoryMap"
// 1. XXX_AVAILABLE : For get avaialble memory start address
// 2. XXX_ADR       : Real Address with Alignment
// 3. XXX_GAP_CHK   : For Check Memory Gap, for avoid memory waste
// 4. XXX_LEN       : For the Memory size of this Module usage
////////////////////////////////////////////////////////////////////////////////
#define MIU_DRAM_LEN                0x0018000000
#define MIU_DRAM_LEN0               0x0010000000
#define MIU_DRAM_LEN1               0x0008000000

#define ENABLE_MIU_1                1
#define MIU_INTERVAL                0x0020000000

////////////////////////////////////////////////////////////////////////////////
//MEMORY TYPE
////////////////////////////////////////////////////////////////////////////////
#define MIU0                        (0x0000)
#define MIU1                        (0x0001)

#define TYPE_NONE                   (0x0000 << 1)

#define UNCACHE                     (0x0001 << 1)
#define REMAPPING_TO_USER_SPACE     (0x0002 << 1)
#define CACHE                       (0x0004 << 1)
#define NONCACHE_BUFFERABLE         (0x0008 << 1)


//MIU_0_START
/* E_MMAP_ID_COPROCESSOR   */
//co_buffer L0
#define E_MMAP_ID_COPROCESSOR_AVAILABLE                        0x0000000000
#define E_MMAP_ID_COPROCESSOR_ADR                              0x0000000000  //Alignment 0
#define E_MMAP_ID_COPROCESSOR_GAP_CHK                          0x0000000000
#define E_MMAP_ID_COPROCESSOR_LEN                              0x0000000000
#define E_MMAP_ID_COPROCESSOR_MEMORY_TYPE                      (MIU0 | TYPE_NONE | UNCACHE)

/* E_LX_MEM   */
//co_buffer L0
#define E_LX_MEM_AVAILABLE                                     0x0000000000
#define E_LX_MEM_ADR                                           0x0000000000  //Alignment 0x01000
#define E_LX_MEM_GAP_CHK                                       0x0000000000
#define E_LX_MEM_LEN                                           0x000BAD7000
#define E_LX_MEM_MEMORY_TYPE                                   (MIU0 | TYPE_NONE | UNCACHE)

/* E_EMAC_MEM   */
//co_buffer L0
#define E_EMAC_MEM_AVAILABLE                                   0x000BAD7000
#define E_EMAC_MEM_ADR                                         0x000BAD7000  //Alignment 0x00010
#define E_EMAC_MEM_GAP_CHK                                     0x0000000000
#define E_EMAC_MEM_LEN                                         0x0000028000
#define E_EMAC_MEM_MEMORY_TYPE                                 (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_MAD_R2   */
//co_buffer L0
#define E_MMAP_ID_MAD_R2_AVAILABLE                             0x000BAFF000
#define E_MMAP_ID_MAD_R2_ADR                                   0x000BAFF000  //Alignment 0
#define E_MMAP_ID_MAD_R2_GAP_CHK                               0x0000000000
#define E_MMAP_ID_MAD_R2_LEN                                   0x0000000000
#define E_MMAP_ID_MAD_R2_MEMORY_TYPE                           (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_MAD_SE   */
//co_buffer L0
#define E_MMAP_ID_MAD_SE_AVAILABLE                             0x000BAFF000
#define E_MMAP_ID_MAD_SE_ADR                                   0x000BAFF000  //Alignment 0x01000
#define E_MMAP_ID_MAD_SE_GAP_CHK                               0x0000000000
#define E_MMAP_ID_MAD_SE_LEN                                   0x00000C0000
#define E_MMAP_ID_MAD_SE_MEMORY_TYPE                           (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_MAD_DEC   */
//co_buffer L0
#define E_MMAP_ID_MAD_DEC_AVAILABLE                            0x000BBBF000
#define E_MMAP_ID_MAD_DEC_ADR                                  0x000BBBF000  //Alignment 0x01000
#define E_MMAP_ID_MAD_DEC_GAP_CHK                              0x0000000000
#define E_MMAP_ID_MAD_DEC_LEN                                  0x0000230000
#define E_MMAP_ID_MAD_DEC_MEMORY_TYPE                          (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_XC_MLOAD   */
//co_buffer L0
#define E_MMAP_ID_XC_MLOAD_AVAILABLE                           0x000BDEF000
#define E_MMAP_ID_XC_MLOAD_ADR                                 0x000BDEF000  //Alignment 0x00010
#define E_MMAP_ID_XC_MLOAD_GAP_CHK                             0x0000000000
#define E_MMAP_ID_XC_MLOAD_LEN                                 0x0000001000
#define E_MMAP_ID_XC_MLOAD_MEMORY_TYPE                         (MIU0 | TYPE_NONE | UNCACHE)

/* E_MST_GEVQ   */
//co_buffer L0
#define E_MST_GEVQ_AVAILABLE                                   0x000BDF0000
#define E_MST_GEVQ_ADR                                         0x000BDF0000  //Alignment 0x00008
#define E_MST_GEVQ_GAP_CHK                                     0x0000000000
#define E_MST_GEVQ_LEN                                         0x0000020000
#define E_MST_GEVQ_MEMORY_TYPE                                 (MIU0 | TYPE_NONE | UNCACHE)

/* E_MST_GOP_REGDMA   */
//co_buffer L0
#define E_MST_GOP_REGDMA_AVAILABLE                             0x000BE10000
#define E_MST_GOP_REGDMA_ADR                                   0x000BE10000  //Alignment 0x00008
#define E_MST_GOP_REGDMA_GAP_CHK                               0x0000000000
#define E_MST_GOP_REGDMA_LEN                                   0x0000001000
#define E_MST_GOP_REGDMA_MEMORY_TYPE                           (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_PM51_VAR_MEM   */
//co_buffer L0
#define E_MMAP_ID_PM51_VAR_MEM_AVAILABLE                       0x000BE11000
#define E_MMAP_ID_PM51_VAR_MEM_ADR                             0x000BE11000  //Alignment 0x00010
#define E_MMAP_ID_PM51_VAR_MEM_GAP_CHK                         0x0000000000
#define E_MMAP_ID_PM51_VAR_MEM_LEN                             0x0000001000
#define E_MMAP_ID_PM51_VAR_MEM_MEMORY_TYPE                     (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_VDEC_CPU   */
//co_buffer L0
#define E_MMAP_ID_VDEC_CPU_AVAILABLE                           0x000BE12000
#define E_MMAP_ID_VDEC_CPU_ADR                                 0x000BE12000  //Alignment 0x00010
#define E_MMAP_ID_VDEC_CPU_GAP_CHK                             0x0000000000
#define E_MMAP_ID_VDEC_CPU_LEN                                 0x0000100000
#define E_MMAP_ID_VDEC_CPU_MEMORY_TYPE                         (MIU0 | TYPE_NONE | TYPE_NONE)

/* E_MMAP_ID_XC_MAIN_FB   */
//co_buffer L0
#define E_MMAP_ID_XC_MAIN_FB_AVAILABLE                         0x000BF12000
#define E_MMAP_ID_XC_MAIN_FB_ADR                               0x000BF12000  //Alignment 0x00008
#define E_MMAP_ID_XC_MAIN_FB_GAP_CHK                           0x0000000000
#define E_MMAP_ID_XC_MAIN_FB_LEN                               0x0000C00000
#define E_MMAP_ID_XC_MAIN_FB_MEMORY_TYPE                       (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_XC_2DTO3D_DD_BUF   */
//co_buffer L0
#define E_MMAP_ID_XC_2DTO3D_DD_BUF_AVAILABLE                   0x000CB12000
#define E_MMAP_ID_XC_2DTO3D_DD_BUF_ADR                         0x000CB12000  //Alignment 0
#define E_MMAP_ID_XC_2DTO3D_DD_BUF_GAP_CHK                     0x0000000000
#define E_MMAP_ID_XC_2DTO3D_DD_BUF_LEN                         0x0000100000
#define E_MMAP_ID_XC_2DTO3D_DD_BUF_MEMORY_TYPE                 (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_XC_2DTO3D_DR_BUF   */
//co_buffer L0
#define E_MMAP_ID_XC_2DTO3D_DR_BUF_AVAILABLE                   0x000CC12000
#define E_MMAP_ID_XC_2DTO3D_DR_BUF_ADR                         0x000CC12000  //Alignment 0
#define E_MMAP_ID_XC_2DTO3D_DR_BUF_GAP_CHK                     0x0000000000
#define E_MMAP_ID_XC_2DTO3D_DR_BUF_LEN                         0x0000100000
#define E_MMAP_ID_XC_2DTO3D_DR_BUF_MEMORY_TYPE                 (MIU0 | TYPE_NONE | TYPE_NONE)

/* E_MMAP_ID_DUMMY1   */
//co_buffer L0
#define E_MMAP_ID_DUMMY1_AVAILABLE                             0x000CD12000
#define E_MMAP_ID_DUMMY1_ADR                                   0x000CD12000  //Alignment 0
#define E_MMAP_ID_DUMMY1_GAP_CHK                               0x0000000000
#define E_MMAP_ID_DUMMY1_LEN                                   0x00027A1000
#define E_MMAP_ID_DUMMY1_MEMORY_TYPE                           (MIU0 | TYPE_NONE | TYPE_NONE)

/* E_MMAP_ID_VDEC_FRAMEBUFFER   */
//co_buffer L1
#define E_MMAP_ID_VDEC_FRAMEBUFFER_AVAILABLE                   0x000CD12000
#define E_MMAP_ID_VDEC_FRAMEBUFFER_ADR                         0x000CD12000  //Alignment 0x00200
#define E_MMAP_ID_VDEC_FRAMEBUFFER_GAP_CHK                     0x0000000000
#define E_MMAP_ID_VDEC_FRAMEBUFFER_LEN                         0x000176F000
#define E_MMAP_ID_VDEC_FRAMEBUFFER_MEMORY_TYPE                 (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_VDEC_BITSTREAM   */
//co_buffer L1
#define E_MMAP_ID_VDEC_BITSTREAM_AVAILABLE                     0x000E481000
#define E_MMAP_ID_VDEC_BITSTREAM_ADR                           0x000E481000  //Alignment 0x00008
#define E_MMAP_ID_VDEC_BITSTREAM_GAP_CHK                       0x0000000000
#define E_MMAP_ID_VDEC_BITSTREAM_LEN                           0x0000400000
#define E_MMAP_ID_VDEC_BITSTREAM_MEMORY_TYPE                   (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_DMX_SECBUF   */
//co_buffer L1
#define E_MMAP_ID_DMX_SECBUF_AVAILABLE                         0x000E881000
#define E_MMAP_ID_DMX_SECBUF_ADR                               0x000E881000  //Alignment 0x00008
#define E_MMAP_ID_DMX_SECBUF_GAP_CHK                           0x0000000000
#define E_MMAP_ID_DMX_SECBUF_LEN                               0x0000070000
#define E_MMAP_ID_DMX_SECBUF_MEMORY_TYPE                       (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_DMX_VQUEUE   */
//co_buffer L1
#define E_MMAP_ID_DMX_VQUEUE_AVAILABLE                         0x000E8F1000
#define E_MMAP_ID_DMX_VQUEUE_ADR                               0x000E8F1000  //Alignment 0x01000
#define E_MMAP_ID_DMX_VQUEUE_GAP_CHK                           0x0000000000
#define E_MMAP_ID_DMX_VQUEUE_LEN                               0x0000002000
#define E_MMAP_ID_DMX_VQUEUE_MEMORY_TYPE                       (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_CC   */
//co_buffer L1
#define E_MMAP_ID_CC_AVAILABLE                                 0x000E8F3000
#define E_MMAP_ID_CC_ADR                                       0x000E8F3000  //Alignment 0x01000
#define E_MMAP_ID_CC_GAP_CHK                                   0x0000000000
#define E_MMAP_ID_CC_LEN                                       0x0000040000
#define E_MMAP_ID_CC_MEMORY_TYPE                               (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_EVENTDB_SDRAM   */
//co_buffer L1
#define E_MMAP_ID_EVENTDB_SDRAM_AVAILABLE                      0x000E933000
#define E_MMAP_ID_EVENTDB_SDRAM_ADR                            0x000E933000  //Alignment 0x01000
#define E_MMAP_ID_EVENTDB_SDRAM_GAP_CHK                        0x0000000000
#define E_MMAP_ID_EVENTDB_SDRAM_LEN                            0x0000400000
#define E_MMAP_ID_EVENTDB_SDRAM_MEMORY_TYPE                    (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_EPGEXTDB_SDRAM   */
//co_buffer L1
#define E_MMAP_ID_EPGEXTDB_SDRAM_AVAILABLE                     0x000ED33000
#define E_MMAP_ID_EPGEXTDB_SDRAM_ADR                           0x000ED33000  //Alignment 0x01000
#define E_MMAP_ID_EPGEXTDB_SDRAM_GAP_CHK                       0x0000000000
#define E_MMAP_ID_EPGEXTDB_SDRAM_LEN                           0x0000400000
#define E_MMAP_ID_EPGEXTDB_SDRAM_MEMORY_TYPE                   (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_PVR_BUFFER   */
//co_buffer L1
#define E_MMAP_ID_PVR_BUFFER_AVAILABLE                         0x000F133000
#define E_MMAP_ID_PVR_BUFFER_ADR                               0x000F133000  //Alignment 0x01000
#define E_MMAP_ID_PVR_BUFFER_GAP_CHK                           0x0000000000
#define E_MMAP_ID_PVR_BUFFER_LEN                               0x0000080000
#define E_MMAP_ID_PVR_BUFFER_MEMORY_TYPE                       (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_VDPLAYER   */
//co_buffer L2
#define E_MMAP_ID_VDPLAYER_AVAILABLE                           0x000CD12000
#define E_MMAP_ID_VDPLAYER_ADR                                 0x000CD12000  //Alignment 0x01000
#define E_MMAP_ID_VDPLAYER_GAP_CHK                             0x0000000000
#define E_MMAP_ID_VDPLAYER_LEN                                 0x00027A1000
#define E_MMAP_ID_VDPLAYER_MEMORY_TYPE                         (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_VDEC_FRAMEBUFFER_SD   */
//co_buffer L3
#define E_MMAP_ID_VDEC_FRAMEBUFFER_SD_AVAILABLE                0x000CD12000
#define E_MMAP_ID_VDEC_FRAMEBUFFER_SD_ADR                      0x000CD12000  //Alignment 0x01000
#define E_MMAP_ID_VDEC_FRAMEBUFFER_SD_GAP_CHK                  0x0000000000
#define E_MMAP_ID_VDEC_FRAMEBUFFER_SD_LEN                      0x000176F000
#define E_MMAP_ID_VDEC_FRAMEBUFFER_SD_MEMORY_TYPE              (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_VDPLAYER_BITSTREAM   */
//co_buffer L3
#define E_MMAP_ID_VDPLAYER_BITSTREAM_AVAILABLE                 0x000E481000
#define E_MMAP_ID_VDPLAYER_BITSTREAM_ADR                       0x000E481000  //Alignment 0x01000
#define E_MMAP_ID_VDPLAYER_BITSTREAM_GAP_CHK                   0x0000000000
#define E_MMAP_ID_VDPLAYER_BITSTREAM_LEN                       0x0000400000
#define E_MMAP_ID_VDPLAYER_BITSTREAM_MEMORY_TYPE               (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_DMX_DUMMY1   */
//co_buffer L3
#define E_MMAP_ID_DMX_DUMMY1_AVAILABLE                         0x000E881000
#define E_MMAP_ID_DMX_DUMMY1_ADR                               0x000E881000  //Alignment 0x00010
#define E_MMAP_ID_DMX_DUMMY1_GAP_CHK                           0x0000000000
#define E_MMAP_ID_DMX_DUMMY1_LEN                               0x0000072000
#define E_MMAP_ID_DMX_DUMMY1_MEMORY_TYPE                       (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_VDPLAYER_DATA   */
//co_buffer L3
#define E_MMAP_ID_VDPLAYER_DATA_AVAILABLE                      0x000E8F3000
#define E_MMAP_ID_VDPLAYER_DATA_ADR                            0x000E8F3000  //Alignment 0x01000
#define E_MMAP_ID_VDPLAYER_DATA_GAP_CHK                        0x0000000000
#define E_MMAP_ID_VDPLAYER_DATA_LEN                            0x0000380000
#define E_MMAP_ID_VDPLAYER_DATA_MEMORY_TYPE                    (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_VDPLAYER_SUBTITLE_BITSTREAM_BUFF   */
//co_buffer L3
#define E_MMAP_ID_VDPLAYER_SUBTITLE_BITSTREAM_BUFF_AVAILABLE   0x000EC73000
#define E_MMAP_ID_VDPLAYER_SUBTITLE_BITSTREAM_BUFF_ADR         0x000EC73000  //Alignment 0x01000
#define E_MMAP_ID_VDPLAYER_SUBTITLE_BITSTREAM_BUFF_GAP_CHK     0x0000000000
#define E_MMAP_ID_VDPLAYER_SUBTITLE_BITSTREAM_BUFF_LEN         0x0000300000
#define E_MMAP_ID_VDPLAYER_SUBTITLE_BITSTREAM_BUFF_MEMORY_TYPE (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_VDPLAYER_BITSTREAM_EXT   */
//co_buffer L3
#define E_MMAP_ID_VDPLAYER_BITSTREAM_EXT_AVAILABLE             0x000EF73000
#define E_MMAP_ID_VDPLAYER_BITSTREAM_EXT_ADR                   0x000EF73000  //Alignment 0x01000
#define E_MMAP_ID_VDPLAYER_BITSTREAM_EXT_GAP_CHK               0x0000000000
#define E_MMAP_ID_VDPLAYER_BITSTREAM_EXT_LEN                   0x0000500000
#define E_MMAP_ID_VDPLAYER_BITSTREAM_EXT_MEMORY_TYPE           (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_MM_SUBTITLE_BUFFER   */
//co_buffer L3
#define E_MMAP_ID_MM_SUBTITLE_BUFFER_AVAILABLE                 0x000F473000
#define E_MMAP_ID_MM_SUBTITLE_BUFFER_ADR                       0x000F473000  //Alignment 0x01000
#define E_MMAP_ID_MM_SUBTITLE_BUFFER_GAP_CHK                   0x0000000000
#define E_MMAP_ID_MM_SUBTITLE_BUFFER_LEN                       0x0000040000
#define E_MMAP_ID_MM_SUBTITLE_BUFFER_MEMORY_TYPE               (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_PHOTO   */
//co_buffer L4
#define E_MMAP_ID_PHOTO_AVAILABLE                              0x000CD12000
#define E_MMAP_ID_PHOTO_ADR                                    0x000CD12000  //Alignment 0x01000
#define E_MMAP_ID_PHOTO_GAP_CHK                                0x0000000000
#define E_MMAP_ID_PHOTO_LEN                                    0x0002661400
#define E_MMAP_ID_PHOTO_MEMORY_TYPE                            (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_JPD_WRITE   */
//co_buffer L5
#define E_MMAP_ID_JPD_WRITE_AVAILABLE                          0x000CD12000
#define E_MMAP_ID_JPD_WRITE_ADR                                0x000CD12000  //Alignment 0x00010
#define E_MMAP_ID_JPD_WRITE_GAP_CHK                            0x0000000000
#define E_MMAP_ID_JPD_WRITE_LEN                                0x0000FF0000
#define E_MMAP_ID_JPD_WRITE_MEMORY_TYPE                        (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_PHOTO_DISPLAY   */
//co_buffer L5
#define E_MMAP_ID_PHOTO_DISPLAY_AVAILABLE                      0x000DD02000
#define E_MMAP_ID_PHOTO_DISPLAY_ADR                            0x000DD02000  //Alignment 0x00010
#define E_MMAP_ID_PHOTO_DISPLAY_GAP_CHK                        0x0000000000
#define E_MMAP_ID_PHOTO_DISPLAY_LEN                            0x0000FF0000
#define E_MMAP_ID_PHOTO_DISPLAY_MEMORY_TYPE                    (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_PHOTO_SHAREMEM   */
//co_buffer L5
#define E_MMAP_ID_PHOTO_SHAREMEM_AVAILABLE                     0x000ECF2000
#define E_MMAP_ID_PHOTO_SHAREMEM_ADR                           0x000ECF2000  //Alignment 0x00004
#define E_MMAP_ID_PHOTO_SHAREMEM_GAP_CHK                       0x0000000000
#define E_MMAP_ID_PHOTO_SHAREMEM_LEN                           0x0000000400
#define E_MMAP_ID_PHOTO_SHAREMEM_MEMORY_TYPE                   (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_JPD_READ   */
//co_buffer L5
#define E_MMAP_ID_JPD_READ_AVAILABLE                           0x000ECF2400
#define E_MMAP_ID_JPD_READ_ADR                                 0x000ECF2400  //Alignment 0x00010
#define E_MMAP_ID_JPD_READ_GAP_CHK                             0x0000000000
#define E_MMAP_ID_JPD_READ_LEN                                 0x0000051000
#define E_MMAP_ID_JPD_READ_MEMORY_TYPE                         (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_PHOTO_INTER   */
//co_buffer L5
#define E_MMAP_ID_PHOTO_INTER_AVAILABLE                        0x000ED43400
#define E_MMAP_ID_PHOTO_INTER_ADR                              0x000ED43400  //Alignment 0x00010
#define E_MMAP_ID_PHOTO_INTER_GAP_CHK                          0x0000000000
#define E_MMAP_ID_PHOTO_INTER_LEN                              0x0000630000
#define E_MMAP_ID_PHOTO_INTER_MEMORY_TYPE                      (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_PHOTO_MPO_INTER_DUMMY   */
//co_buffer L6
#define E_MMAP_ID_PHOTO_MPO_INTER_DUMMY_AVAILABLE              0x000CD12000
#define E_MMAP_ID_PHOTO_MPO_INTER_DUMMY_ADR                    0x000CD12000  //Alignment 0x00010
#define E_MMAP_ID_PHOTO_MPO_INTER_DUMMY_GAP_CHK                0x0000000000
#define E_MMAP_ID_PHOTO_MPO_INTER_DUMMY_LEN                    0x0000BF4000
#define E_MMAP_ID_PHOTO_MPO_INTER_DUMMY_MEMORY_TYPE            (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_PHOTO_MPO_INTER   */
//co_buffer L6
#define E_MMAP_ID_PHOTO_MPO_INTER_AVAILABLE                    0x000D906000
#define E_MMAP_ID_PHOTO_MPO_INTER_ADR                          0x000D906000  //Alignment 0x00010
#define E_MMAP_ID_PHOTO_MPO_INTER_GAP_CHK                      0x0000000000
#define E_MMAP_ID_PHOTO_MPO_INTER_LEN                          0x00003FC000
#define E_MMAP_ID_PHOTO_MPO_INTER_MEMORY_TYPE                  (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_COMB_3D_BUF   */
//co_buffer L7
#define E_MMAP_ID_COMB_3D_BUF_AVAILABLE                        0x000CD12000
#define E_MMAP_ID_COMB_3D_BUF_ADR                              0x000CD12000  //Alignment 0x00010
#define E_MMAP_ID_COMB_3D_BUF_GAP_CHK                          0x0000000000
#define E_MMAP_ID_COMB_3D_BUF_LEN                              0x0000700000
#define E_MMAP_ID_COMB_3D_BUF_MEMORY_TYPE                      (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_DOWNLOAD_BUFFER   */
//co_buffer L7
#define E_MMAP_ID_DOWNLOAD_BUFFER_AVAILABLE                    0x000D412000
#define E_MMAP_ID_DOWNLOAD_BUFFER_ADR                          0x000D412000  //Alignment 0x01000
#define E_MMAP_ID_DOWNLOAD_BUFFER_GAP_CHK                      0x0000000000
#define E_MMAP_ID_DOWNLOAD_BUFFER_LEN                          0x000176E800
#define E_MMAP_ID_DOWNLOAD_BUFFER_MEMORY_TYPE                  (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_DUMMY3   */
//co_buffer L0
#define E_MMAP_ID_DUMMY3_AVAILABLE                             0x000F4B3000
#define E_MMAP_ID_DUMMY3_ADR                                   0x000F4B3000  //Alignment 0x01000
#define E_MMAP_ID_DUMMY3_GAP_CHK                               0x0000000000
#define E_MMAP_ID_DUMMY3_LEN                                   0x0000A7D000
#define E_MMAP_ID_DUMMY3_MEMORY_TYPE                           (MIU0 | TYPE_NONE | UNCACHE)

/* E_DFB_JPD_READ   */
//co_buffer L1
#define E_DFB_JPD_READ_AVAILABLE                               0x000F4B3000
#define E_DFB_JPD_READ_ADR                                     0x000F4B3000  //Alignment 0x01000
#define E_DFB_JPD_READ_GAP_CHK                                 0x0000000000
#define E_DFB_JPD_READ_LEN                                     0x0000051000
#define E_DFB_JPD_READ_MEMORY_TYPE                             (MIU0 | TYPE_NONE | UNCACHE)

/* E_DFB_JPD_INTERNAL   */
//co_buffer L1
#define E_DFB_JPD_INTERNAL_AVAILABLE                           0x000F504000
#define E_DFB_JPD_INTERNAL_ADR                                 0x000F504000  //Alignment 0x01000
#define E_DFB_JPD_INTERNAL_GAP_CHK                             0x0000000000
#define E_DFB_JPD_INTERNAL_LEN                                 0x0000630000
#define E_DFB_JPD_INTERNAL_MEMORY_TYPE                         (MIU0 | TYPE_NONE | UNCACHE)

/* E_DFB_JPD_WRITE   */
//co_buffer L1
#define E_DFB_JPD_WRITE_AVAILABLE                              0x000FB34000
#define E_DFB_JPD_WRITE_ADR                                    0x000FB34000  //Alignment 0x01000
#define E_DFB_JPD_WRITE_GAP_CHK                                0x0000000000
#define E_DFB_JPD_WRITE_LEN                                    0x00003FC000
#define E_DFB_JPD_WRITE_MEMORY_TYPE                            (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_HW_AES_BUF   */
//co_buffer L0
#define E_MMAP_ID_HW_AES_BUF_AVAILABLE                         0x000FF30000
#define E_MMAP_ID_HW_AES_BUF_ADR                               0x000FF30000  //Alignment 0x00010
#define E_MMAP_ID_HW_AES_BUF_GAP_CHK                           0x0000000000
#define E_MMAP_ID_HW_AES_BUF_LEN                               0x00000C0000
#define E_MMAP_ID_HW_AES_BUF_MEMORY_TYPE                       (MIU0 | TYPE_NONE | UNCACHE)

/* E_MMAP_ID_PM51_USAGE_MEM   */
//co_buffer L0
#define E_MMAP_ID_PM51_USAGE_MEM_AVAILABLE                     0x000FFF0000
#define E_MMAP_ID_PM51_USAGE_MEM_ADR                           0x000FFF0000  //Alignment 0x10000
#define E_MMAP_ID_PM51_USAGE_MEM_GAP_CHK                       0x0000000000
#define E_MMAP_ID_PM51_USAGE_MEM_LEN                           0x0000010000
#define E_MMAP_ID_PM51_USAGE_MEM_MEMORY_TYPE                   (MIU0 | TYPE_NONE | UNCACHE)

//MIU_1_START
/* E_LX_MEM2   */
//co_buffer L0
#define E_LX_MEM2_AVAILABLE                                    0x0000000000
#define E_LX_MEM2_ADR                                          0x0000000000  //Alignment 0x01000
#define E_LX_MEM2_GAP_CHK                                      0x0000000000
#define E_LX_MEM2_LEN                                          0x0004400000
#define E_LX_MEM2_MEMORY_TYPE                                  (MIU1 | TYPE_NONE | UNCACHE)

/* E_DFB_FRAMEBUFFER   */
//co_buffer L0
#define E_DFB_FRAMEBUFFER_AVAILABLE                            0x0004400000
#define E_DFB_FRAMEBUFFER_ADR                                  0x0004400000  //Alignment 0x01000
#define E_DFB_FRAMEBUFFER_GAP_CHK                              0x0000000000
#define E_DFB_FRAMEBUFFER_LEN                                  0x0003C00000
#define E_DFB_FRAMEBUFFER_MEMORY_TYPE                          (MIU1 | TYPE_NONE | UNCACHE)

//MIU_END
#define MIU0_END_ADR                                           0x0010000000
#define MIU1_END_ADR                                           0x0008000000

#define MMAP_COUNT                                             0x0000000031

/* CHK_VALUE = 2099751757 */