Mercurial > archived > louis > epitech > mq > rathaxes
diff rathaxes_samples_e1000_add_alloc_sequences_in_socket.patch @ 113:b22983cb9e3a
WIP, thanks joa for some fixes on the compiler
author | Louis Opter <louis@lse.epita.fr> |
---|---|
date | Sat, 20 Jul 2013 20:45:39 -0700 |
parents | b072f682823d |
children | d84bc9a46771 |
line wrap: on
line diff
--- a/rathaxes_samples_e1000_add_alloc_sequences_in_socket.patch Fri Jul 19 19:12:10 2013 -0700 +++ b/rathaxes_samples_e1000_add_alloc_sequences_in_socket.patch Sat Jul 20 20:45:39 2013 -0700 @@ -1,21 +1,20 @@ # HG changeset patch -# Parent 0082bea09b4bed6ed6215afb7a14d43a948cecd8 +# Parent 9f743313820393d900d65aa6f2532c7d820de04b Add alloc_rx and alloc_tx in the Socket abstraction This will help to hide platform dependent code from e1000::set_up_device. - diff --git a/rathaxes/samples/e1000/socket.rti b/rathaxes/samples/e1000/socket.rti --- a/rathaxes/samples/e1000/socket.rti +++ b/rathaxes/samples/e1000/socket.rti @@ -1,4 +1,4 @@ --interface Socket : LKM, Device -+interface Socket : LKM, Device, Ethernet, Builtin +-interface Socket : LKM, Device, DMA ++interface Socket : LKM, Device, DMA, Ethernet, Builtin { /* The SKBuff type from the kernel */ provided type AbstractSKBuff -@@ -10,14 +10,24 @@ +@@ -10,15 +10,25 @@ provided type SKBuff { @@ -47,5 +46,6 @@ + provided sequence alloc_tx(Ethernet::Device, Builtin::number) + { + chunk ::CALL(); - } - } + + attribute Socket::AbstractSKBuff.ref k_sk_buff; + attribute DMA::AbstractDMAHandle.scalar k_dma_handle;