mirror of
https://github.com/Doczom/SDHCI_driver_for_Kolibrios.git
synced 2025-09-21 02:50:10 +02:00
37 lines
670 B
PHP
37 lines
670 B
PHP
;; Copyright (C) 2022-2024, Mikhail Frolov aka Doczom
|
|
;; SDHC ADMA function
|
|
|
|
|
|
; for ADMA2
|
|
; edi = virtual addr, edx = block count
|
|
; block size = 512
|
|
; OUT: edi = phys addr table
|
|
proc create_adma2_table
|
|
|
|
ret
|
|
endp
|
|
|
|
proc destruct_adma2_table
|
|
|
|
ret
|
|
endp
|
|
|
|
|
|
; SDMA
|
|
; send command
|
|
; wait command_complate
|
|
;@@:
|
|
; wait DMA int or Transfer compalte
|
|
; if Transfer complate goto .end
|
|
; set new addr ; ïåðåäà÷à ïðîäîëæàåòñÿ ïðè çàìåíå ýòîãî àäðåñà
|
|
; goto @f
|
|
;.end:
|
|
|
|
; ADMA
|
|
; creat descrption table
|
|
; send command
|
|
; wait command_complate
|
|
; wait transfer complate or ADMA_Error
|
|
; destruct description table
|
|
|
|
; no DMA |