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

📄 flash.cod

📁 平台PXA270, Mobile6.0 这是270的mobile6.0的bootloader
💻 COD
字号:
; Listing generated by Microsoft (R) Optimizing Compiler Version 13.10.4345 

	TTL	E:\WM604\PLATFORM\SEUICBSP\SRC\BOOTLOADER\EBOOT\.\flash.c
	CODE32

  00000			 AREA	 |.drectve|, DRECTVE
	DCB	"-defaultlib:coredll.lib "
	DCB	"-defaultlib:corelibc.lib "


  00000			 AREA	 |.rdata|, DATA, READONLY
|EdbgVendorIds| DCW 0x0
	DCW	0x0
	DCD	0x4033
	DCB	0x1
	DCB	"AD", 0x0
	DCW	0x1050
	DCW	0x940
	DCD	0x4005
	DCB	0x1
	DCB	"LS", 0x0
	DCW	0x1050
	DCW	0x940
	DCD	0x2078
	DCB	0x1
	DCB	"LS", 0x0
	DCW	0x10ec
	DCW	0x8029
	DCD	0xc0f0
	DCB	0x1
	DCB	"KS", 0x0
	DCW	0x10ec
	DCW	0x8129
	DCD	0x0
	DCB	0x4
	DCB	"RT", 0x0
	DCW	0x10ec
	DCW	0x8139
	DCD	0x900b
	DCB	0x4
	DCB	"RT", 0x0
	DCW	0x10ec
	DCW	0x8139
	DCD	0xd0c9
	DCB	0x4
	DCB	"RT", 0x0
	DCW	0x10ec
	DCW	0x8139
	DCD	0xe04c
	DCB	0x4
	DCB	"RT", 0x0
	DCW	0x1186
	DCW	0x1300
	DCD	0x50ba
	DCB	0x4
	DCB	"DL", 0x0
	DCW	0x100b
	DCW	0x20
	DCD	0xa0cc
	DCB	0x5
	DCB	"NG", 0x0
	DCW	0x10b7
	DCW	0x9050
	DCD	0x6008
	DCB	0x6
	DCB	"3C", 0x0
	DCW	0x10b7
	DCW	0x9200
	DCD	0x476
	DCB	0x6
	DCB	"3C", 0x0
	EXPORT	|FMD_Init|
	IMPORT	|Nand_FMD_Init|
; File e:\wm604\platform\seuicbsp\src\bootloader\eboot\flash.c

  00000			 AREA	 |.text| { |FMD_Init| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$FMD_Init|, PDATA, SELECTION=5, ASSOC=|.text| { |FMD_Init| } ; comdat associative
|$T40487| DCD	|$L40486|
	DCD	0x40000401
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |FMD_Init| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |FMD_Init| PROC

; 39   : {

  00000		 |$L40486|
  00000	e52de004	 str         lr, [sp, #-4]!
  00004		 |$M40484|

; 40   : 	return  Nand_FMD_Init(lpActiveReg, pRegIn, pRegOut);

  00004	eb000000	 bl          Nand_FMD_Init

; 41   : }

  00008	e49de004	 ldr         lr, [sp], #4
  0000c	e12fff1e	 bx          lr
  00010		 |$M40485|

			 ENDP  ; |FMD_Init|

	EXPORT	|FMD_Deinit|
	IMPORT	|Nand_FMD_Deinit|

  00000			 AREA	 |.text| { |FMD_Deinit| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$FMD_Deinit|, PDATA, SELECTION=5, ASSOC=|.text| { |FMD_Deinit| } ; comdat associative
|$T40497| DCD	|$L40496|
	DCD	0x40000401
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |FMD_Deinit| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |FMD_Deinit| PROC

; 43   : {

  00000		 |$L40496|
  00000	e52de004	 str         lr, [sp, #-4]!
  00004		 |$M40494|

; 44   : 	return   Nand_FMD_Deinit(pHandle);

  00004	eb000000	 bl          Nand_FMD_Deinit

; 45   : }

  00008	e49de004	 ldr         lr, [sp], #4
  0000c	e12fff1e	 bx          lr
  00010		 |$M40495|

			 ENDP  ; |FMD_Deinit|

	EXPORT	|FMD_GetInfo|
	IMPORT	|Nand_FMD_GetInfo|

  00000			 AREA	 |.text| { |FMD_GetInfo| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$FMD_GetInfo|, PDATA, SELECTION=5, ASSOC=|.text| { |FMD_GetInfo| } ; comdat associative
|$T40507| DCD	|$L40506|
	DCD	0x40000401
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |FMD_GetInfo| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |FMD_GetInfo| PROC

; 47   : {

  00000		 |$L40506|
  00000	e52de004	 str         lr, [sp, #-4]!
  00004		 |$M40504|

; 48   : 	return Nand_FMD_GetInfo( pFlashInfo);

  00004	eb000000	 bl          Nand_FMD_GetInfo

; 49   : }

  00008	e49de004	 ldr         lr, [sp], #4
  0000c	e12fff1e	 bx          lr
  00010		 |$M40505|

			 ENDP  ; |FMD_GetInfo|

	EXPORT	|FMD_GetBlockStatus|
	IMPORT	|Nand_FMD_GetBlockStatus|

  00000			 AREA	 |.text| { |FMD_GetBlockStatus| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$FMD_GetBlockStatus|, PDATA, SELECTION=5, ASSOC=|.text| { |FMD_GetBlockStatus| } ; comdat associative
|$T40517| DCD	|$L40516|
	DCD	0x40000401
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |FMD_GetBlockStatus| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |FMD_GetBlockStatus| PROC

; 51   : {

  00000		 |$L40516|
  00000	e52de004	 str         lr, [sp, #-4]!
  00004		 |$M40514|

; 52   : 	return Nand_FMD_GetBlockStatus( blockID);

  00004	eb000000	 bl          Nand_FMD_GetBlockStatus

; 53   : }

  00008	e49de004	 ldr         lr, [sp], #4
  0000c	e12fff1e	 bx          lr
  00010		 |$M40515|

			 ENDP  ; |FMD_GetBlockStatus|

	EXPORT	|FMD_SetBlockStatus|
	IMPORT	|Nand_FMD_SetBlockStatus|

  00000			 AREA	 |.text| { |FMD_SetBlockStatus| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$FMD_SetBlockStatus|, PDATA, SELECTION=5, ASSOC=|.text| { |FMD_SetBlockStatus| } ; comdat associative
|$T40528| DCD	|$L40527|
	DCD	0x40000401
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |FMD_SetBlockStatus| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |FMD_SetBlockStatus| PROC

; 55   : {

  00000		 |$L40527|
  00000	e52de004	 str         lr, [sp, #-4]!
  00004		 |$M40525|

; 56   : 	return Nand_FMD_SetBlockStatus( blockID, dwStatus);

  00004	eb000000	 bl          Nand_FMD_SetBlockStatus

; 57   : }

  00008	e49de004	 ldr         lr, [sp], #4
  0000c	e12fff1e	 bx          lr
  00010		 |$M40526|

			 ENDP  ; |FMD_SetBlockStatus|

	EXPORT	|FMD_ReadSector|
	IMPORT	|Nand_FMD_ReadSector|

  00000			 AREA	 |.text| { |FMD_ReadSector| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$FMD_ReadSector|, PDATA, SELECTION=5, ASSOC=|.text| { |FMD_ReadSector| } ; comdat associative
|$T40541| DCD	|$L40540|
	DCD	0x40000401
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |FMD_ReadSector| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |FMD_ReadSector| PROC

; 59   : {

  00000		 |$L40540|
  00000	e52de004	 str         lr, [sp, #-4]!
  00004		 |$M40538|

; 60   : 	return Nand_FMD_ReadSector(startSectorAddr, pSectorBuff, pSectorInfoBuff, dwNumSectors);

  00004	eb000000	 bl          Nand_FMD_ReadSector

; 61   : }

  00008	e49de004	 ldr         lr, [sp], #4
  0000c	e12fff1e	 bx          lr
  00010		 |$M40539|

			 ENDP  ; |FMD_ReadSector|

	EXPORT	|FMD_WriteSector|
	IMPORT	|Nand_FMD_WriteSector|

  00000			 AREA	 |.text| { |FMD_WriteSector| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$FMD_WriteSector|, PDATA, SELECTION=5, ASSOC=|.text| { |FMD_WriteSector| } ; comdat associative
|$T40554| DCD	|$L40553|
	DCD	0x40000401
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |FMD_WriteSector| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |FMD_WriteSector| PROC

; 63   : {

  00000		 |$L40553|
  00000	e52de004	 str         lr, [sp, #-4]!
  00004		 |$M40551|

; 64   : 	return Nand_FMD_WriteSector( startSectorAddr,  pSectorBuff,  pSectorInfoBuff,  dwNumSectors);

  00004	eb000000	 bl          Nand_FMD_WriteSector

; 65   : }

  00008	e49de004	 ldr         lr, [sp], #4
  0000c	e12fff1e	 bx          lr
  00010		 |$M40552|

			 ENDP  ; |FMD_WriteSector|

	EXPORT	|FMD_EraseBlock|
	IMPORT	|Nand_FMD_EraseBlock|

  00000			 AREA	 |.text| { |FMD_EraseBlock| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$FMD_EraseBlock|, PDATA, SELECTION=5, ASSOC=|.text| { |FMD_EraseBlock| } ; comdat associative
|$T40564| DCD	|$L40563|
	DCD	0x40000401
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |FMD_EraseBlock| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |FMD_EraseBlock| PROC

; 67   : {

  00000		 |$L40563|
  00000	e52de004	 str         lr, [sp, #-4]!
  00004		 |$M40561|

; 68   : 	return Nand_FMD_EraseBlock( blockID);

  00004	eb000000	 bl          Nand_FMD_EraseBlock

; 69   : }

  00008	e49de004	 ldr         lr, [sp], #4
  0000c	e12fff1e	 bx          lr
  00010		 |$M40562|

			 ENDP  ; |FMD_EraseBlock|

	EXPORT	|FMD_PowerUp|
	IMPORT	|Nand_FMD_PowerUp|

  00000			 AREA	 |.text| { |FMD_PowerUp| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$FMD_PowerUp|, PDATA, SELECTION=5, ASSOC=|.text| { |FMD_PowerUp| } ; comdat associative
|$T40571| DCD	|$L40570|
	DCD	0x40000401
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |FMD_PowerUp| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |FMD_PowerUp| PROC

; 71   : {

  00000		 |$L40570|
  00000	e52de004	 str         lr, [sp, #-4]!
  00004		 |$M40568|

; 72   : 	Nand_FMD_PowerUp();

  00004	eb000000	 bl          Nand_FMD_PowerUp

; 73   : }

  00008	e49de004	 ldr         lr, [sp], #4
  0000c	e12fff1e	 bx          lr
  00010		 |$M40569|

			 ENDP  ; |FMD_PowerUp|

	EXPORT	|FMD_PowerDown|
	IMPORT	|Nand_FMD_PowerDown|

  00000			 AREA	 |.text| { |FMD_PowerDown| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$FMD_PowerDown|, PDATA, SELECTION=5, ASSOC=|.text| { |FMD_PowerDown| } ; comdat associative
|$T40578| DCD	|$L40577|
	DCD	0x40000401
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |FMD_PowerDown| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |FMD_PowerDown| PROC

; 75   : {

  00000		 |$L40577|
  00000	e52de004	 str         lr, [sp, #-4]!
  00004		 |$M40575|

; 76   : 	Nand_FMD_PowerDown();

  00004	eb000000	 bl          Nand_FMD_PowerDown

; 77   : }

  00008	e49de004	 ldr         lr, [sp], #4
  0000c	e12fff1e	 bx          lr
  00010		 |$M40576|

			 ENDP  ; |FMD_PowerDown|

	EXPORT	|FMD_OEMIoControl|
	IMPORT	|Nand_FMD_OEMIoControl|

  00000			 AREA	 |.text| { |FMD_OEMIoControl| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$FMD_OEMIoControl|, PDATA, SELECTION=5, ASSOC=|.text| { |FMD_OEMIoControl| } ; comdat associative
|$T40591| DCD	|$L40590|
	DCD	0x40000a02
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |FMD_OEMIoControl| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |FMD_OEMIoControl| PROC

; 80   : {

  00000		 |$L40590|
  00000	e92d4010	 stmdb       sp!, {r4, lr}
  00004	e24dd008	 sub         sp, sp, #8
  00008		 |$M40588|

; 81   : 	return Nand_FMD_OEMIoControl(dwIoControlCode, pInBuf, nInBufSize, pOutBuf, nOutBufSize, pBytesReturned);

  00008	e59de014	 ldr         lr, [sp, #0x14]
  0000c	e59d4010	 ldr         r4, [sp, #0x10]
  00010	e58de004	 str         lr, [sp, #4]
  00014	e58d4000	 str         r4, [sp]
  00018	eb000000	 bl          Nand_FMD_OEMIoControl

; 82   : }

  0001c	e28dd008	 add         sp, sp, #8
  00020	e8bd4010	 ldmia       sp!, {r4, lr}
  00024	e12fff1e	 bx          lr
  00028		 |$M40589|

			 ENDP  ; |FMD_OEMIoControl|

	END

⌨️ 快捷键说明

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