diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2009-02-16 02:59:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-16 02:59:44 -0500 |
commit | cbd347adfee2ba52a8ef85f92a46933d5840cc39 (patch) | |
tree | 6fe593287cc6486e78201da9419255530046fac1 /drivers/net/igb/igb_main.c | |
parent | bc1cbd3493c7a6b44fa6a1e6040ae3d9640d47c4 (diff) |
igb: remove unused defines
This patch removes all of the unused defines from the .h files contained in
igb. For some defines there was a use and so I plugged them into the correct
locations.
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_main.c')
-rw-r--r-- | drivers/net/igb/igb_main.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index 18bc5700faf5..23209bd4f401 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
@@ -1305,7 +1305,7 @@ static int __devinit igb_probe(struct pci_dev *pdev, | |||
1305 | hw->fc.original_type = e1000_fc_default; | 1305 | hw->fc.original_type = e1000_fc_default; |
1306 | hw->fc.type = e1000_fc_default; | 1306 | hw->fc.type = e1000_fc_default; |
1307 | 1307 | ||
1308 | adapter->itr_setting = 3; | 1308 | adapter->itr_setting = IGB_DEFAULT_ITR; |
1309 | adapter->itr = IGB_START_ITR; | 1309 | adapter->itr = IGB_START_ITR; |
1310 | 1310 | ||
1311 | igb_validate_mdi_setting(hw); | 1311 | igb_validate_mdi_setting(hw); |
@@ -1366,7 +1366,7 @@ static int __devinit igb_probe(struct pci_dev *pdev, | |||
1366 | dev_info(&pdev->dev, "DCA enabled\n"); | 1366 | dev_info(&pdev->dev, "DCA enabled\n"); |
1367 | /* Always use CB2 mode, difference is masked | 1367 | /* Always use CB2 mode, difference is masked |
1368 | * in the CB driver. */ | 1368 | * in the CB driver. */ |
1369 | wr32(E1000_DCA_CTRL, 2); | 1369 | wr32(E1000_DCA_CTRL, E1000_DCA_CTRL_DCA_MODE_CB2); |
1370 | igb_setup_dca(adapter); | 1370 | igb_setup_dca(adapter); |
1371 | } | 1371 | } |
1372 | #endif | 1372 | #endif |
@@ -1498,7 +1498,7 @@ static void __devexit igb_remove(struct pci_dev *pdev) | |||
1498 | dev_info(&pdev->dev, "DCA disabled\n"); | 1498 | dev_info(&pdev->dev, "DCA disabled\n"); |
1499 | dca_remove_requester(&pdev->dev); | 1499 | dca_remove_requester(&pdev->dev); |
1500 | adapter->flags &= ~IGB_FLAG_DCA_ENABLED; | 1500 | adapter->flags &= ~IGB_FLAG_DCA_ENABLED; |
1501 | wr32(E1000_DCA_CTRL, 1); | 1501 | wr32(E1000_DCA_CTRL, E1000_DCA_CTRL_DCA_MODE_DISABLE); |
1502 | } | 1502 | } |
1503 | #endif | 1503 | #endif |
1504 | 1504 | ||
@@ -3058,8 +3058,6 @@ static int igb_maybe_stop_tx(struct net_device *netdev, | |||
3058 | return __igb_maybe_stop_tx(netdev, tx_ring, size); | 3058 | return __igb_maybe_stop_tx(netdev, tx_ring, size); |
3059 | } | 3059 | } |
3060 | 3060 | ||
3061 | #define TXD_USE_COUNT(S) (((S) >> (IGB_MAX_TXD_PWR)) + 1) | ||
3062 | |||
3063 | static int igb_xmit_frame_ring_adv(struct sk_buff *skb, | 3061 | static int igb_xmit_frame_ring_adv(struct sk_buff *skb, |
3064 | struct net_device *netdev, | 3062 | struct net_device *netdev, |
3065 | struct igb_ring *tx_ring) | 3063 | struct igb_ring *tx_ring) |
@@ -3586,7 +3584,7 @@ static int __igb_notify_dca(struct device *dev, void *data) | |||
3586 | break; | 3584 | break; |
3587 | /* Always use CB2 mode, difference is masked | 3585 | /* Always use CB2 mode, difference is masked |
3588 | * in the CB driver. */ | 3586 | * in the CB driver. */ |
3589 | wr32(E1000_DCA_CTRL, 2); | 3587 | wr32(E1000_DCA_CTRL, E1000_DCA_CTRL_DCA_MODE_CB2); |
3590 | if (dca_add_requester(dev) == 0) { | 3588 | if (dca_add_requester(dev) == 0) { |
3591 | adapter->flags |= IGB_FLAG_DCA_ENABLED; | 3589 | adapter->flags |= IGB_FLAG_DCA_ENABLED; |
3592 | dev_info(&adapter->pdev->dev, "DCA enabled\n"); | 3590 | dev_info(&adapter->pdev->dev, "DCA enabled\n"); |
@@ -3601,7 +3599,7 @@ static int __igb_notify_dca(struct device *dev, void *data) | |||
3601 | dca_remove_requester(dev); | 3599 | dca_remove_requester(dev); |
3602 | dev_info(&adapter->pdev->dev, "DCA disabled\n"); | 3600 | dev_info(&adapter->pdev->dev, "DCA disabled\n"); |
3603 | adapter->flags &= ~IGB_FLAG_DCA_ENABLED; | 3601 | adapter->flags &= ~IGB_FLAG_DCA_ENABLED; |
3604 | wr32(E1000_DCA_CTRL, 1); | 3602 | wr32(E1000_DCA_CTRL, E1000_DCA_CTRL_DCA_MODE_DISABLE); |
3605 | } | 3603 | } |
3606 | break; | 3604 | break; |
3607 | } | 3605 | } |