Mercurial > archived > louis > epitech > mq > rathaxes
diff rathaxes_samples_e1000_add_a_dma_abstraction.patch @ 118:ad21d8a182ad
WIP: put up (hopefully the last) some touches on the dma abstraction
author | Louis Opter <louis@lse.epita.fr> |
---|---|
date | Fri, 26 Jul 2013 16:44:08 -0700 |
parents | f3c7e9b0c5cf |
children | d84bc9a46771 |
line wrap: on
line diff
--- a/rathaxes_samples_e1000_add_a_dma_abstraction.patch Thu Jul 25 16:45:13 2013 -0700 +++ b/rathaxes_samples_e1000_add_a_dma_abstraction.patch Fri Jul 26 16:44:08 2013 -0700 @@ -52,7 +52,7 @@ + + map + { -+ k_dma_handle: (dma_addr_t)(${self}); ++ k_dma_handle: (*(dma_addr_t *)&(${self})); + } + } + @@ -66,7 +66,7 @@ + map + { + /* XXX: we should use ${DMA::AbstractDMAHandle} here: */ -+ dma_handle: (dma_addr_t)(${self}); ++ dma_handle: (*(dma_addr_t *)&(${self})); + } + } + @@ -79,7 +79,7 @@ + + map + { -+ k_dma_direction: (enum dma_data_direction)(${self}); ++ k_dma_direction: ((enum dma_data_direction)(${self})); + } + } + @@ -103,7 +103,7 @@ + { + chunk ::CALL() + { -+ ((${DMA::DMAHandle})dma_map_single(${dev.k_device}, ${buf}, ${size}, ${dir.dma_direction})); ++ dma_map_single(${dev.k_device}, ${buf}, ${size}, ${dir.dma_direction}); + } + } +