aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igbvf/netdev.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2009-06-18 19:49:17 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-19 19:46:06 -0400
commit8e20ce94ce378334dea83a83ab26253b851100a2 (patch)
treef75e2d51b4b54842833b20a9cc9cfc569cbfe7a6 /drivers/net/igbvf/netdev.c
parenta90b037583d5f1ae3e54e9c687c79df82d1d34a4 (diff)
convert some DMA_nnBIT_MASK() callers
We're about to make DMA_nnBIT_MASK() emit `deprecated' warnings. Convert the remaining stragglers which are visible to the x86_64 build. Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Cc: James Bottomley <James.Bottomley@HansenPartnership.com> Cc: Eric Moore <Eric.Moore@lsil.com> Cc: Takashi Iwai <tiwai@suse.de> Cc: "David S. Miller" <davem@davemloft.net> Cc: Alexander Duyck <alexander.h.duyck@intel.com> Cc: Yi Zou <yi.zou@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net/igbvf/netdev.c')
-rw-r--r--drivers/net/igbvf/netdev.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c
index 22aadb7884fa..2bc9d63027db 100644
--- a/drivers/net/igbvf/netdev.c
+++ b/drivers/net/igbvf/netdev.c
@@ -1281,7 +1281,7 @@ static void igbvf_configure_tx(struct igbvf_adapter *adapter)
1281 /* Setup the HW Tx Head and Tail descriptor pointers */ 1281 /* Setup the HW Tx Head and Tail descriptor pointers */
1282 ew32(TDLEN(0), tx_ring->count * sizeof(union e1000_adv_tx_desc)); 1282 ew32(TDLEN(0), tx_ring->count * sizeof(union e1000_adv_tx_desc));
1283 tdba = tx_ring->dma; 1283 tdba = tx_ring->dma;
1284 ew32(TDBAL(0), (tdba & DMA_32BIT_MASK)); 1284 ew32(TDBAL(0), (tdba & DMA_BIT_MASK(32)));
1285 ew32(TDBAH(0), (tdba >> 32)); 1285 ew32(TDBAH(0), (tdba >> 32));
1286 ew32(TDH(0), 0); 1286 ew32(TDH(0), 0);
1287 ew32(TDT(0), 0); 1287 ew32(TDT(0), 0);
@@ -1367,7 +1367,7 @@ static void igbvf_configure_rx(struct igbvf_adapter *adapter)
1367 * the Base and Length of the Rx Descriptor Ring 1367 * the Base and Length of the Rx Descriptor Ring
1368 */ 1368 */
1369 rdba = rx_ring->dma; 1369 rdba = rx_ring->dma;
1370 ew32(RDBAL(0), (rdba & DMA_32BIT_MASK)); 1370 ew32(RDBAL(0), (rdba & DMA_BIT_MASK(32)));
1371 ew32(RDBAH(0), (rdba >> 32)); 1371 ew32(RDBAH(0), (rdba >> 32));
1372 ew32(RDLEN(0), rx_ring->count * sizeof(union e1000_adv_rx_desc)); 1372 ew32(RDLEN(0), rx_ring->count * sizeof(union e1000_adv_rx_desc));
1373 rx_ring->head = E1000_RDH(0); 1373 rx_ring->head = E1000_RDH(0);
@@ -2628,15 +2628,16 @@ static int __devinit igbvf_probe(struct pci_dev *pdev,
2628 return err; 2628 return err;
2629 2629
2630 pci_using_dac = 0; 2630 pci_using_dac = 0;
2631 err = pci_set_dma_mask(pdev, DMA_64BIT_MASK); 2631 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
2632 if (!err) { 2632 if (!err) {
2633 err = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK); 2633 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
2634 if (!err) 2634 if (!err)
2635 pci_using_dac = 1; 2635 pci_using_dac = 1;
2636 } else { 2636 } else {
2637 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 2637 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
2638 if (err) { 2638 if (err) {
2639 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 2639 err = pci_set_consistent_dma_mask(pdev,
2640 DMA_BIT_MASK(32));
2640 if (err) { 2641 if (err) {
2641 dev_err(&pdev->dev, "No usable DMA " 2642 dev_err(&pdev->dev, "No usable DMA "
2642 "configuration, aborting\n"); 2643 "configuration, aborting\n");