Mercurial > archived > louis > epitech > mq > rathaxes
comparison 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 |
comparison
equal
deleted
inserted
replaced
112:bfe10def90e3 | 113:b22983cb9e3a |
---|---|
1 # HG changeset patch | 1 # HG changeset patch |
2 # Parent 0082bea09b4bed6ed6215afb7a14d43a948cecd8 | 2 # Parent 9f743313820393d900d65aa6f2532c7d820de04b |
3 Add alloc_rx and alloc_tx in the Socket abstraction | 3 Add alloc_rx and alloc_tx in the Socket abstraction |
4 | 4 |
5 This will help to hide platform dependent code from | 5 This will help to hide platform dependent code from |
6 e1000::set_up_device. | 6 e1000::set_up_device. |
7 | 7 |
8 | |
9 diff --git a/rathaxes/samples/e1000/socket.rti b/rathaxes/samples/e1000/socket.rti | 8 diff --git a/rathaxes/samples/e1000/socket.rti b/rathaxes/samples/e1000/socket.rti |
10 --- a/rathaxes/samples/e1000/socket.rti | 9 --- a/rathaxes/samples/e1000/socket.rti |
11 +++ b/rathaxes/samples/e1000/socket.rti | 10 +++ b/rathaxes/samples/e1000/socket.rti |
12 @@ -1,4 +1,4 @@ | 11 @@ -1,4 +1,4 @@ |
13 -interface Socket : LKM, Device | 12 -interface Socket : LKM, Device, DMA |
14 +interface Socket : LKM, Device, Ethernet, Builtin | 13 +interface Socket : LKM, Device, DMA, Ethernet, Builtin |
15 { | 14 { |
16 /* The SKBuff type from the kernel */ | 15 /* The SKBuff type from the kernel */ |
17 provided type AbstractSKBuff | 16 provided type AbstractSKBuff |
18 @@ -10,14 +10,24 @@ | 17 @@ -10,15 +10,25 @@ |
19 | 18 |
20 provided type SKBuff | 19 provided type SKBuff |
21 { | 20 { |
22 - chunk LKM::prototypes(); | 21 - chunk LKM::prototypes(); |
23 - chunk LKM::code(); | 22 - chunk LKM::code(); |
45 + } | 44 + } |
46 + | 45 + |
47 + provided sequence alloc_tx(Ethernet::Device, Builtin::number) | 46 + provided sequence alloc_tx(Ethernet::Device, Builtin::number) |
48 + { | 47 + { |
49 + chunk ::CALL(); | 48 + chunk ::CALL(); |
50 } | 49 |
51 } | 50 attribute Socket::AbstractSKBuff.ref k_sk_buff; |
51 attribute DMA::AbstractDMAHandle.scalar k_dma_handle; |