Mercurial > archived > louis > epitech > mq > rathaxes
diff rathaxes_samples_e1000_use_the_dma_abstraction_in_socket.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_use_the_dma_abstraction_in_socket.patch Thu Jul 25 16:45:13 2013 -0700 +++ b/rathaxes_samples_e1000_use_the_dma_abstraction_in_socket.patch Fri Jul 26 16:44:08 2013 -0700 @@ -1,5 +1,5 @@ # HG changeset patch -# Parent 3cea76c8dbc4e341f3ff42e42532bdbd3f06fcac +# Parent 0645a1612cc02ac70c718cabeaaa726cb2ecfdfd Replace Linux specific code in Socket by DMA calls diff --git a/rathaxes/samples/e1000/socket.blt b/rathaxes/samples/e1000/socket.blt @@ -16,7 +16,7 @@ map { - k_sk_buff: ((struct sk_buff *)${self}); -+ k_sk_buff: (struct sk_buff *)(${self}); ++ k_sk_buff: ((struct sk_buff *)(${self})); } } @@ -195,7 +195,7 @@ + // same time ${DMA:AbstractDMAHandle} couldn't be used because that + // would yield to a struct type which you can't assign directly; + // but maybe doing the ->data in that case would be acceptable). -+ dma_handle: (dma_addr_t)((${self})->dma_handle); ++ dma_handle: (*((dma_addr_t *)&(${self})->dma_handle)); } } }