diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2009-10-27 11:51:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-28 04:20:26 -0400 |
commit | 80785298aa5b6f2005a34afb97457ae7a65af270 (patch) | |
tree | c236ae1f3f688b816b1fa2475fcd7ccd67261ac4 /drivers/net/igb/igb.h | |
parent | fce99e341524c204ef3dd3e7c5f77265a7e05ddd (diff) |
igb: add pci device pointer to ring structure
This patch adds a pci device pointer to the ring structure. The main use of
this pointer is for memory mapping/unmapping of the rings.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/igb.h')
-rw-r--r-- | drivers/net/igb/igb.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h index e52fee44aeac..de268620dd92 100644 --- a/drivers/net/igb/igb.h +++ b/drivers/net/igb/igb.h | |||
@@ -173,6 +173,7 @@ struct igb_q_vector { | |||
173 | struct igb_ring { | 173 | struct igb_ring { |
174 | struct igb_q_vector *q_vector; /* backlink to q_vector */ | 174 | struct igb_q_vector *q_vector; /* backlink to q_vector */ |
175 | void *desc; /* descriptor ring memory */ | 175 | void *desc; /* descriptor ring memory */ |
176 | struct pci_dev *pdev; /* pci device for dma mapping */ | ||
176 | dma_addr_t dma; /* phys address of the ring */ | 177 | dma_addr_t dma; /* phys address of the ring */ |
177 | unsigned int size; /* length of desc. ring in bytes */ | 178 | unsigned int size; /* length of desc. ring in bytes */ |
178 | unsigned int count; /* number of desc. in the ring */ | 179 | unsigned int count; /* number of desc. in the ring */ |
@@ -325,8 +326,8 @@ extern void igb_down(struct igb_adapter *); | |||
325 | extern void igb_reinit_locked(struct igb_adapter *); | 326 | extern void igb_reinit_locked(struct igb_adapter *); |
326 | extern void igb_reset(struct igb_adapter *); | 327 | extern void igb_reset(struct igb_adapter *); |
327 | extern int igb_set_spd_dplx(struct igb_adapter *, u16); | 328 | extern int igb_set_spd_dplx(struct igb_adapter *, u16); |
328 | extern int igb_setup_tx_resources(struct igb_adapter *, struct igb_ring *); | 329 | extern int igb_setup_tx_resources(struct igb_ring *); |
329 | extern int igb_setup_rx_resources(struct igb_adapter *, struct igb_ring *); | 330 | extern int igb_setup_rx_resources(struct igb_ring *); |
330 | extern void igb_free_tx_resources(struct igb_ring *); | 331 | extern void igb_free_tx_resources(struct igb_ring *); |
331 | extern void igb_free_rx_resources(struct igb_ring *); | 332 | extern void igb_free_rx_resources(struct igb_ring *); |
332 | extern void igb_update_stats(struct igb_adapter *); | 333 | extern void igb_update_stats(struct igb_adapter *); |