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

📄 memmap.inc

📁 Sirf/Centrality公司GPS平台AtlasIII芯片AT640的Nboot源码
💻 INC
字号:
;
; Copyright (c) 2002 Centrality Communications Inc.  All rights reserved.
;
; --------------------------------------------------------------------
; Module Name:
;	
;   memmap.inc
;	  
; Abstract:
;   This file defines memory mapping and descriptor attribute.
;

;    EXPORT	TranslationTable[DATA]

  IF :DEF: MEMORY_MAPPING_WINCE
CACHE_CB					EQU		0x1c		; cachable & bufferable
  ELSE	;	MEMORY_MAPPING_WINCE
CACHE_CB					EQU		0x10		; non-cachable & non-bufferable
  ENDIF	;	MEMORY_MAPPING_WINCE

SECTOR_DESC					EQU		0x02
CACHE_AP					EQU		0x400
CACHE_ATTR					EQU		CACHE_CB :OR: SECTOR_DESC :OR: CACHE_AP

	AREA AddressTable, CODE, READONLY

TranslationTable
  IF :DEF: MEMORY_MAPPING_WINCE

	INFO 0, "Translation Table for Windows CE mapping"
	;;; 
	;;; Memory mapping the same as that in WinCE
	;;; WinCE group members should use this map
    ;;;-------------------------------------------------------------
    ;;; Virt Addr   Phys Addr   MB
    ;;;-------------------------------------------------------------
    DCD 0x8C000000, 0xC0000000, 64  ; 64 MB SDRAM
    DCD 0x8B000000, 0x80000000, 1   ; 1  MB peripheral controll registers
    DCD 0x8A000000, 0x90000000, 1   ; 1  MB system control registers
    DCD 0x89000000, 0xa0000000, 1   ; 1  MB memory control registers
    DCD 0x88000000, 0xb0000000, 1   ; 1  MB dma control registers
    DCD 0x87000000, 0xb8000000, 1   ; 1  MB lcd space
	DCD 0x86c00000, 0xe0000000, 4   ; 4  MB Zero bank space
	DCD 0x86000000, 0xfff00000, 1	; 1  MB simulation registers
	DCD 0x85600000, 0x57f00000, 1	; 1  MB USB (io) registers
	DCD 0x85500000, 0x57d00000, 1	; 1  MB IDE (io) registers
	DCD 0x85400000, 0x57c00000, 1	; 1  MB PCMCIA (io) registers
	DCD 0x85300000, 0x57b00000, 1	; 1  MB External PCI (io) registers
	DCD 0x85200000, 0x57a00000, 1	; 1  MB PCI ROM(io) registers
	DCD 0x85100000, 0x56000000, 1	; 1	 MB SDIO register
	DCD 0x85000000, 0x58000000, 1	; 1  MB dsp memory space
	DCD 0x84300000, 0x30000000, 1   ; 1  MB PCMCIA socket 1 I/O space
	DCD 0x84200000, 0x20000000, 1   ; 1  MB PCMCIA socket 0 I/O space
    DCD 0x84000000, 0x14000000, 1   ; 1  MB ROM interface CS1 I/O space
    DCD 0x82000000, 0x18000000, 8   ; 8  MB Flash/ROM CS2
	DCD 0x81000000, 0x1c000000, 8   ; 8  MB Flash/ROM CS3
	DCD 0x80000000, 0x10000000, 8   ; 8  MB Flash/ROM CS0
;	DCD 0x40000000, 0x40000000, 32	; 128MB pci device memory space

  ELSE
	INFO 0, "Translation Table for flat mapping"

	;;; 
	;;; Flat mapping memory address
	;;; IC Group members should use this map
    ;;;-------------------------------------------------------------
    ;;; Virt Addr   Phys Addr   MB
    ;;;-------------------------------------------------------------
    DCD 0xC0000000, 0xC0000000, 64  ; 64 MB SDRAM
    DCD 0x80000000, 0x80000000, 2   ; 1  MB peripheral controll registers
	DCD 0x90000000, 0x90000000, 1   ; 1  MB system control registers
	DCD 0xa0000000, 0xa0000000, 1   ; 1  MB memory control registers
	DCD 0xb0000000, 0xb0000000, 1   ; 1  MB dma control registers
	DCD 0xb8000000, 0xb8000000, 1   ; 1  MB lcd space
	DCD 0xe0000000, 0xe0000000, 4   ; 4  MB Zero bank space
	DCD 0xfff00000, 0xfff00000, 1	; 1  MB simulation registers
	DCD 0x57f00000, 0x57f00000, 1	; 1  MB USB (io) registers
	DCD 0x57d00000, 0x57d00000, 1	; 1  MB IDE (io) registers
	DCD 0x57c00000, 0x57c00000, 1	; 1  MB PCMCIA (io) registers
	DCD 0x57b00000, 0x57b00000, 1	; 1  MB External PCI (io) registers
	DCD 0x57a00000, 0x57a00000, 1	; 1  MB PCI ROM(io) registers
	DCD 0x56000000, 0x56000000, 1	; 1	 MB SDIO register
	DCD 0x58000000, 0x58000000, 1	; 1  MB dsp memory space
	DCD 0x50000000, 0x50000000, 32	; 128MB pci device memory space
	DCD 0x24000000,	0x24000000, 4	; 4  MB MQ1188 virtual address space - PCMCIA attribute memory
	DCD 0x1C000000,	0x1C000000, 4	; 4  MB MQ1188 virtual address space - CS3
	DCD 0x30000000, 0x30000000, 1   ; 1  MB PCMCIA socket 1 I/O space
	DCD 0x20000000, 0x20000000, 1   ; 1  MB PCMCIA I/O space
	DCD 0x18000000, 0x18000000, 16  ; 16 MB Application Flash 
    DCD 0x14000000, 0x14000000, 1   ; 1  MB ROM interface CS1 I/O space
    DCD 0x10000000, 0x10000000, 32	; 32 MB Flash/ROM 

  ENDIF

    DCD 0x00000000, 0x00000000, 0   ; End of Table (MB MUST BE ZERO!)

	END

⌨️ 快捷键说明

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