Mercurial > archived > louis > epitech > mq > rathaxes
comparison e1000_add_register_unset.patch @ 78:501bf9cf65dc
wip on e1000 add some fixes for the generation and check that it works on tip
author | Louis Opter <louis@lse.epitech.net> |
---|---|
date | Sun, 04 Mar 2012 18:55:20 +0100 |
parents | ff90ee2fe1c4 |
children |
comparison
equal
deleted
inserted
replaced
77:892b3bc7e43b | 78:501bf9cf65dc |
---|---|
1 # HG changeset patch | 1 # HG changeset patch |
2 # Parent cd5050576637389b1ec0086faafc035596de237c | 2 # Parent eb6bb1687169662741a6bd57191b750b3bcbb6b7 |
3 rathaxes: add the e1000::register_unset32() function | 3 rathaxes: add the e1000::register_unset32() function |
4 | 4 |
5 diff --git a/rathaxes/samples/e1000/e1000.blt b/rathaxes/samples/e1000/e1000.blt | 5 diff --git a/rathaxes/samples/e1000/e1000.blt b/rathaxes/samples/e1000/e1000.blt |
6 --- a/rathaxes/samples/e1000/e1000.blt | 6 --- a/rathaxes/samples/e1000/e1000.blt |
7 +++ b/rathaxes/samples/e1000/e1000.blt | 7 +++ b/rathaxes/samples/e1000/e1000.blt |
22 + { | 22 + { |
23 + iowrite32(rtx_e1000_register_read32(ctx, reg_offset) & ~value, ctx->ioaddr + reg_offset); | 23 + iowrite32(rtx_e1000_register_read32(ctx, reg_offset) & ~value, ctx->ioaddr + reg_offset); |
24 + } | 24 + } |
25 + } | 25 + } |
26 + | 26 + |
27 + chunk ::CALL | 27 + chunk ::CALL() |
28 + { | 28 + { |
29 + rtx_e1000_register_unset32(${ctx}, ${reg_offset}, ${value}); | 29 + rtx_e1000_register_unset32(${ctx}, ${reg_offset}, ${value}); |
30 + } | 30 + } |
31 + } | 31 + } |
32 + | 32 + |
34 { | 34 { |
35 chunk LKM::includes() | 35 chunk LKM::includes() |
36 diff --git a/rathaxes/samples/e1000/e1000.rti b/rathaxes/samples/e1000/e1000.rti | 36 diff --git a/rathaxes/samples/e1000/e1000.rti b/rathaxes/samples/e1000/e1000.rti |
37 --- a/rathaxes/samples/e1000/e1000.rti | 37 --- a/rathaxes/samples/e1000/e1000.rti |
38 +++ b/rathaxes/samples/e1000/e1000.rti | 38 +++ b/rathaxes/samples/e1000/e1000.rti |
39 @@ -82,4 +82,11 @@ | 39 @@ -80,4 +80,11 @@ |
40 provided chunk LKM::code; | 40 provided chunk LKM::code(); |
41 provided chunk ::CALL; | 41 provided chunk ::CALL(); |
42 } | 42 } |
43 + | 43 + |
44 + provided sequence e1000::register_unset32(e1000::Context, e1000::Register, ::number) | 44 + provided sequence e1000::register_unset32(e1000::Context, e1000::Register, ::number) |
45 + { | 45 + { |
46 + provided chunk LKM::prototypes; | 46 + provided chunk LKM::prototypes(); |
47 + provided chunk LKM::code; | 47 + provided chunk LKM::code(); |
48 + provided chunk ::CALL; | 48 + provided chunk ::CALL(); |
49 + } | 49 + } |
50 } | 50 } |