Mercurial > archived > louis > epitech > mq > rathaxes
comparison e1000_fix_rdt_set.patch @ 83:27f0e70df342
Wip on the transmission, tx init done, and tx hooked from Ethernet send
author | Louis Opter <louis@lse.epitech.net> |
---|---|
date | Sun, 08 Jul 2012 10:00:25 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
82:71f76c0f235f | 83:27f0e70df342 |
---|---|
1 # HG changeset patch | |
2 # Parent bcab8e474b3aca4c4b326869a05d3ee69e1c82a5 | |
3 rathaxes: fix a stupid bug in e1000: the tail index for the rx descriptors ring was improperly set + couple of cosmetics | |
4 | |
5 diff --git a/rathaxes/samples/e1000/e1000.blt b/rathaxes/samples/e1000/e1000.blt | |
6 --- a/rathaxes/samples/e1000/e1000.blt | |
7 +++ b/rathaxes/samples/e1000/e1000.blt | |
8 @@ -49,7 +49,6 @@ | |
9 { | |
10 chunk LKM::includes() | |
11 { | |
12 - | |
13 static const ${e1000::RxRing} force_rtx_e1000_rx_ring_decl; | |
14 } | |
15 | |
16 @@ -638,7 +637,7 @@ | |
17 rtx_e1000_register_set32(hw_ctx, E1000_RAH, E1000_RAH_AV); | |
18 | |
19 { | |
20 - ${Log::info("setup_device: program receieve address done")}; | |
21 + ${Log::info("setup_device: receive address programmed")}; | |
22 } | |
23 | |
24 /* 2. Initialize the MTA */ | |
25 @@ -668,7 +667,7 @@ | |
26 } | |
27 | |
28 { | |
29 - ${Log::info("setup_device: descriptors allocated")}; | |
30 + ${Log::info("setup_device: rx descriptors allocated")}; | |
31 } | |
32 | |
33 /* | |
34 @@ -716,7 +715,7 @@ | |
35 | |
36 /* 6. Setup RDH/RDT */ | |
37 rtx_e1000_register_write32(hw_ctx, E1000_RDH, 0); | |
38 - rtx_e1000_register_write32(hw_ctx, E1000_RDT, hw_ctx->rx_ring.size - 1); | |
39 + rtx_e1000_register_write32(hw_ctx, E1000_RDT, ${config.rx_ring_size} - 1); | |
40 | |
41 /* 7. Configure the buffer size, XXX: * E1000_RCTL_BSIZE_${config.rx_buffer_len} */ | |
42 rtx_e1000_register_set32(hw_ctx, E1000_RCTL, E1000_RCTL_BSIZE_2048); |