diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2009-08-28 10:03:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-29 18:43:03 -0400 |
commit | 723344820aa405ac2663ab9e36fd27833d06129b (patch) | |
tree | dad1b2b19c269ff1ba9dcd3d5bbbc8d4ac38a9ba /drivers/net/tg3.h | |
parent | 898a56f8d8170c188e47ae3acb90d2ea9a585ebe (diff) |
tg3: Move per-int rx members to per-int struct
This patch moves the rx_rcb, rx_rcb_mapping, and rx_rcb_ptr return ring
device members to a per-interrupt structure. It also adds a new return
ring consumer mailbox register member (consmbox) and converts the code
to use it rather than a preprocessor constant.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r-- | drivers/net/tg3.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index f46e6198a82..b91ac29ae16 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -2497,8 +2497,13 @@ struct tg3_napi { | |||
2497 | u32 last_tag; | 2497 | u32 last_tag; |
2498 | u32 last_irq_tag; | 2498 | u32 last_irq_tag; |
2499 | u32 int_mbox; | 2499 | u32 int_mbox; |
2500 | u32 consmbox; | ||
2501 | u32 rx_rcb_ptr; | ||
2502 | |||
2503 | struct tg3_rx_buffer_desc *rx_rcb; | ||
2500 | 2504 | ||
2501 | dma_addr_t status_mapping; | 2505 | dma_addr_t status_mapping; |
2506 | dma_addr_t rx_rcb_mapping; | ||
2502 | }; | 2507 | }; |
2503 | 2508 | ||
2504 | struct tg3 { | 2509 | struct tg3 { |
@@ -2570,7 +2575,6 @@ struct tg3 { | |||
2570 | struct tg3_napi napi[TG3_IRQ_MAX_VECS]; | 2575 | struct tg3_napi napi[TG3_IRQ_MAX_VECS]; |
2571 | void (*write32_rx_mbox) (struct tg3 *, u32, | 2576 | void (*write32_rx_mbox) (struct tg3 *, u32, |
2572 | u32); | 2577 | u32); |
2573 | u32 rx_rcb_ptr; | ||
2574 | u32 rx_pending; | 2578 | u32 rx_pending; |
2575 | u32 rx_jumbo_pending; | 2579 | u32 rx_jumbo_pending; |
2576 | u32 rx_std_max_post; | 2580 | u32 rx_std_max_post; |
@@ -2579,9 +2583,6 @@ struct tg3 { | |||
2579 | struct vlan_group *vlgrp; | 2583 | struct vlan_group *vlgrp; |
2580 | #endif | 2584 | #endif |
2581 | 2585 | ||
2582 | struct tg3_rx_buffer_desc *rx_rcb; | ||
2583 | dma_addr_t rx_rcb_mapping; | ||
2584 | |||
2585 | struct tg3_rx_prodring_set prodring[1]; | 2586 | struct tg3_rx_prodring_set prodring[1]; |
2586 | 2587 | ||
2587 | 2588 | ||