rommap_roma.h
上传用户:poi891205
上传日期:2013-07-15
资源大小:9745k
文件大小:3k
源码类别:

DVD

开发平台:

C/C++

  1. /*-----------------------------------------------------------------------------------------------------------------------------
  2. File name: rommap.h
  3. History:
  4. 2005.1.25  Creat By Terry
  5. -------------------------------------------------------------------------------------------------------------------------------
  6. 0x0000    __romstart
  7. 0x0008    __realstart
  8. 0x0018    VERSION_STRING .................................ex. "CUS-000" in cfg_customer.h
  9. 0x0020    Check Sum (in rom.bin)
  10. 0x0030    MPEG_UI_VERSION...............................ex. "206." in ver.h
  11. 0x0040    Check Sum (in romL.bin)
  12. 0x0050    MPEG_UI_VERSION...............................ex. "206." in ver.h
  13. 0x0060    intr_null
  14. 0x0070    __boot_entry
  15. 0x0080    __exception_bev0
  16. 0x0090    CFG_sdram_config :  CFG_SDRAM_OUT,CFG_SDRAM_IN,CFG_SDRAM_IN_DLY,CFG_SDRAM_PADCTRL.....ex.sdram.h
  17. 0x00A0    CFG_kernel0,  CFG_kernel1
  18. 0x00B0    CUSTOMER_ID_STRING.....................ex.  "SUNPLUS"
  19. 0x00C0    invalidate_dcache
  20. 0x0100    reserved area
  21. 0x0200    CFG_kernel2,CFG_kernel3,CFG_kernel4,CFG_kernel5
  22. 0x0220    __realstart 
  23. -------------------------
  24. Boot Load
  25. -------------------------
  26. 0x88000000  ----------------------------+
  27.             |                           |
  28.             |ROMA(256KBytes)            |
  29.             |    (0x40000)              |
  30. 0x88040000  +---------------------------+
  31.             |                           |
  32.             |ROMB(2048-256=1792KBytes)  |
  33.             |                           |
  34. 0x88200000  +---------------------------+
  35.  ----------------------------------------------------------------------------------------------------------------------------------*/   
  36.  #define ROM_SIZE                               (2048)              //16Mbits Size
  37.  #define ROMA_SIZE                              (256)
  38.  #define ROMB_SIZE                              (2048-ROMA_SIZE)   
  39.  #define ROMA_ST                                (0)
  40.  #define ROMB_ST                                (ROMA_ST + ROMA_SIZE)
  41.  
  42.  //romB check sum
  43.  #define ROMB_CHK_SUM_ST                        (ROMB_ST+1)
  44.  #define ROMB_CHK_SUM_END                       (ROM_SIZE)
  45.  
  46.  #define ROMB_START                             (ROMB_ST*1024)  //0x40000
  47.  #define ROMA_START                             (ROMA_ST*1024)  //0
  48.   
  49.  #define BOOT_OFFSET                            (ROMA_START)    //0
  50.  #define ORG_VERSION_STRING                     (0x18+BOOT_OFFSET)
  51.  #define ORG_MPEG_UI_VERSION                    (0x30+BOOT_OFFSET)
  52.  #define ORG_BOOT_ROM_CHK_SUM                   (0x50+BOOT_OFFSET)
  53.  #define ORG__boot_entry                        (0x70+BOOT_OFFSET)
  54.  #define ORG__exception_bev0                    (0x80+BOOT_OFFSET)
  55.  #define ORG_CFG_sdram_config                   (0x90+BOOT_OFFSET)
  56.  #define ORG_CFG_kernel0                        (0xa0+BOOT_OFFSET)
  57.  #define ORG_CUSTOMER_ID_STRING                 (0xb0+BOOT_OFFSET)
  58.  #define ORG_reserved_area                      (0x100+BOOT_OFFSET)
  59.  #define ORG_CFG_kernel2                        (0x200+BOOT_OFFSET)
  60.