diff options
Diffstat (limited to 'drivers/net/gianfar.h')
-rw-r--r-- | drivers/net/gianfar.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index 1bdb50c7936e..1ebf7ac27a3d 100644 --- a/drivers/net/gianfar.h +++ b/drivers/net/gianfar.h | |||
@@ -196,6 +196,12 @@ extern const char gfar_driver_version[]; | |||
196 | #define DEFAULT_TXIC mk_ic_value(DEFAULT_TXCOUNT, DEFAULT_TXTIME) | 196 | #define DEFAULT_TXIC mk_ic_value(DEFAULT_TXCOUNT, DEFAULT_TXTIME) |
197 | #define DEFAULT_RXIC mk_ic_value(DEFAULT_RXCOUNT, DEFAULT_RXTIME) | 197 | #define DEFAULT_RXIC mk_ic_value(DEFAULT_RXCOUNT, DEFAULT_RXTIME) |
198 | 198 | ||
199 | #define skip_bd(bdp, stride, base, ring_size) ({ \ | ||
200 | typeof(bdp) new_bd = (bdp) + (stride); \ | ||
201 | (new_bd >= (base) + (ring_size)) ? (new_bd - (ring_size)) : new_bd; }) | ||
202 | |||
203 | #define next_bd(bdp, base, ring_size) skip_bd(bdp, 1, base, ring_size) | ||
204 | |||
199 | #define RCTRL_PAL_MASK 0x001f0000 | 205 | #define RCTRL_PAL_MASK 0x001f0000 |
200 | #define RCTRL_VLEX 0x00002000 | 206 | #define RCTRL_VLEX 0x00002000 |
201 | #define RCTRL_FILREN 0x00001000 | 207 | #define RCTRL_FILREN 0x00001000 |