mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
tifm_sd: implement software scatter-gather
It was found that delays associated with issue and completion of the commands severely limit performance of the new, fast SD cards. To alleviate this issue scatter-gather emulation in software is implemented for both dma and pio transfer modes. Non-block aligned and high memory sg entries are accounted for. Signed-off-by: Alex Dubov <oakad@yahoo.com> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
This commit is contained in:
parent
5897d657b5
commit
13cdf48ef1
2 changed files with 299 additions and 149 deletions
|
@ -74,6 +74,7 @@ enum {
|
|||
#define TIFM_DMA_RESET 0x00000002 /* Meaning of this constant is unverified */
|
||||
#define TIFM_DMA_TX 0x00008000 /* Meaning of this constant is unverified */
|
||||
#define TIFM_DMA_EN 0x00000001 /* Meaning of this constant is unverified */
|
||||
#define TIFM_DMA_TSIZE 0x0000007f
|
||||
|
||||
#define TIFM_TYPE_XD 1
|
||||
#define TIFM_TYPE_MS 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue