aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000/e1000_ethtool.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-09-19 15:27:07 -0400
committerJeff Garzik <jeff@garzik.org>2006-09-19 15:27:07 -0400
commitf8ec473387f70d103c83ffb3ab50cb2b1380d0c0 (patch)
tree8abcae6e3e7c4692519196c26dac4a82e65753b4 /drivers/net/e1000/e1000_ethtool.c
parent23b6b0e3e8306ce3d00e0c87196bfaad335b9096 (diff)
e1000, ixgb: Remove pointless wrappers
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/e1000/e1000_ethtool.c')
-rw-r--r--drivers/net/e1000/e1000_ethtool.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/e1000/e1000_ethtool.c b/drivers/net/e1000/e1000_ethtool.c
index 0759bf0dcce6..e39aa1fc4d1e 100644
--- a/drivers/net/e1000/e1000_ethtool.c
+++ b/drivers/net/e1000/e1000_ethtool.c
@@ -908,7 +908,7 @@ e1000_intr_test(struct e1000_adapter *adapter, uint64_t *data)
908 908
909 /* Disable all the interrupts */ 909 /* Disable all the interrupts */
910 E1000_WRITE_REG(&adapter->hw, IMC, 0xFFFFFFFF); 910 E1000_WRITE_REG(&adapter->hw, IMC, 0xFFFFFFFF);
911 msec_delay(10); 911 msleep(10);
912 912
913 /* Test each interrupt */ 913 /* Test each interrupt */
914 for (; i < 10; i++) { 914 for (; i < 10; i++) {
@@ -928,7 +928,7 @@ e1000_intr_test(struct e1000_adapter *adapter, uint64_t *data)
928 adapter->test_icr = 0; 928 adapter->test_icr = 0;
929 E1000_WRITE_REG(&adapter->hw, IMC, mask); 929 E1000_WRITE_REG(&adapter->hw, IMC, mask);
930 E1000_WRITE_REG(&adapter->hw, ICS, mask); 930 E1000_WRITE_REG(&adapter->hw, ICS, mask);
931 msec_delay(10); 931 msleep(10);
932 932
933 if (adapter->test_icr & mask) { 933 if (adapter->test_icr & mask) {
934 *data = 3; 934 *data = 3;
@@ -945,7 +945,7 @@ e1000_intr_test(struct e1000_adapter *adapter, uint64_t *data)
945 adapter->test_icr = 0; 945 adapter->test_icr = 0;
946 E1000_WRITE_REG(&adapter->hw, IMS, mask); 946 E1000_WRITE_REG(&adapter->hw, IMS, mask);
947 E1000_WRITE_REG(&adapter->hw, ICS, mask); 947 E1000_WRITE_REG(&adapter->hw, ICS, mask);
948 msec_delay(10); 948 msleep(10);
949 949
950 if (!(adapter->test_icr & mask)) { 950 if (!(adapter->test_icr & mask)) {
951 *data = 4; 951 *data = 4;
@@ -962,7 +962,7 @@ e1000_intr_test(struct e1000_adapter *adapter, uint64_t *data)
962 adapter->test_icr = 0; 962 adapter->test_icr = 0;
963 E1000_WRITE_REG(&adapter->hw, IMC, ~mask & 0x00007FFF); 963 E1000_WRITE_REG(&adapter->hw, IMC, ~mask & 0x00007FFF);
964 E1000_WRITE_REG(&adapter->hw, ICS, ~mask & 0x00007FFF); 964 E1000_WRITE_REG(&adapter->hw, ICS, ~mask & 0x00007FFF);
965 msec_delay(10); 965 msleep(10);
966 966
967 if (adapter->test_icr) { 967 if (adapter->test_icr) {
968 *data = 5; 968 *data = 5;
@@ -973,7 +973,7 @@ e1000_intr_test(struct e1000_adapter *adapter, uint64_t *data)
973 973
974 /* Disable all the interrupts */ 974 /* Disable all the interrupts */
975 E1000_WRITE_REG(&adapter->hw, IMC, 0xFFFFFFFF); 975 E1000_WRITE_REG(&adapter->hw, IMC, 0xFFFFFFFF);
976 msec_delay(10); 976 msleep(10);
977 977
978 /* Unhook test interrupt handler */ 978 /* Unhook test interrupt handler */
979 free_irq(irq, netdev); 979 free_irq(irq, netdev);
@@ -1395,7 +1395,7 @@ e1000_setup_loopback_test(struct e1000_adapter *adapter)
1395#define E1000_SERDES_LB_ON 0x410 1395#define E1000_SERDES_LB_ON 0x410
1396 e1000_set_phy_loopback(adapter); 1396 e1000_set_phy_loopback(adapter);
1397 E1000_WRITE_REG(hw, SCTL, E1000_SERDES_LB_ON); 1397 E1000_WRITE_REG(hw, SCTL, E1000_SERDES_LB_ON);
1398 msec_delay(10); 1398 msleep(10);
1399 return 0; 1399 return 0;
1400 break; 1400 break;
1401 default: 1401 default:
@@ -1428,7 +1428,7 @@ e1000_loopback_cleanup(struct e1000_adapter *adapter)
1428 hw->media_type == e1000_media_type_internal_serdes) { 1428 hw->media_type == e1000_media_type_internal_serdes) {
1429#define E1000_SERDES_LB_OFF 0x400 1429#define E1000_SERDES_LB_OFF 0x400
1430 E1000_WRITE_REG(hw, SCTL, E1000_SERDES_LB_OFF); 1430 E1000_WRITE_REG(hw, SCTL, E1000_SERDES_LB_OFF);
1431 msec_delay(10); 1431 msleep(10);
1432 break; 1432 break;
1433 } 1433 }
1434 /* Fall Through */ 1434 /* Fall Through */
@@ -1508,7 +1508,7 @@ e1000_run_loopback_test(struct e1000_adapter *adapter)
1508 if (unlikely(++k == txdr->count)) k = 0; 1508 if (unlikely(++k == txdr->count)) k = 0;
1509 } 1509 }
1510 E1000_WRITE_REG(&adapter->hw, TDT, k); 1510 E1000_WRITE_REG(&adapter->hw, TDT, k);
1511 msec_delay(200); 1511 msleep(200);
1512 time = jiffies; /* set the start time for the receive */ 1512 time = jiffies; /* set the start time for the receive */
1513 good_cnt = 0; 1513 good_cnt = 0;
1514 do { /* receive the sent packets */ 1514 do { /* receive the sent packets */
@@ -1579,14 +1579,14 @@ e1000_link_test(struct e1000_adapter *adapter, uint64_t *data)
1579 e1000_check_for_link(&adapter->hw); 1579 e1000_check_for_link(&adapter->hw);
1580 if (adapter->hw.serdes_link_down == FALSE) 1580 if (adapter->hw.serdes_link_down == FALSE)
1581 return *data; 1581 return *data;
1582 msec_delay(20); 1582 msleep(20);
1583 } while (i++ < 3750); 1583 } while (i++ < 3750);
1584 1584
1585 *data = 1; 1585 *data = 1;
1586 } else { 1586 } else {
1587 e1000_check_for_link(&adapter->hw); 1587 e1000_check_for_link(&adapter->hw);
1588 if (adapter->hw.autoneg) /* if auto_neg is set wait for it */ 1588 if (adapter->hw.autoneg) /* if auto_neg is set wait for it */
1589 msec_delay(4000); 1589 msleep(4000);
1590 1590
1591 if (!(E1000_READ_REG(&adapter->hw, STATUS) & E1000_STATUS_LU)) { 1591 if (!(E1000_READ_REG(&adapter->hw, STATUS) & E1000_STATUS_LU)) {
1592 *data = 1; 1592 *data = 1;