diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-10-12 02:00:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-13 02:54:03 -0400 |
commit | 32c513bca062f6c04b902d09c716fea205671e23 (patch) | |
tree | 1e0bc56d3d0b3c5b8c544c6a355ebbe3b33ae78a /drivers/net/gianfar.h | |
parent | 826aa4a05669a46e435f65db901186e42bb43d8d (diff) |
gianfar: Move tbase/rbase initialization to gfar_init_mac()
For hibernation we want to call gfar_init_mac() without need to
free/allocate_skb_resources sequence, so save the DMA address into a
private struct, and move tbase/rbase initialization to gfar_init_mac().
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/gianfar.h')
-rw-r--r-- | drivers/net/gianfar.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index 2cd94338b5d3..05732faa2f90 100644 --- a/drivers/net/gianfar.h +++ b/drivers/net/gianfar.h | |||
@@ -726,6 +726,7 @@ struct gfar_private { | |||
726 | unsigned long txic; | 726 | unsigned long txic; |
727 | 727 | ||
728 | /* Buffer descriptor pointers */ | 728 | /* Buffer descriptor pointers */ |
729 | dma_addr_t tx_bd_dma_base; | ||
729 | struct txbd8 *tx_bd_base; /* First tx buffer descriptor */ | 730 | struct txbd8 *tx_bd_base; /* First tx buffer descriptor */ |
730 | struct txbd8 *cur_tx; /* Next free ring entry */ | 731 | struct txbd8 *cur_tx; /* Next free ring entry */ |
731 | struct txbd8 *dirty_tx; /* First buffer in line | 732 | struct txbd8 *dirty_tx; /* First buffer in line |