diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2007-10-04 18:00:08 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:54:43 -0400 |
commit | 8658251dc3fed54b09991a2c5e0a7084755157d7 (patch) | |
tree | 786b5a3204fa855cfc52d6e6da7137cc0596c48c /drivers/net/e1000e/ethtool.c | |
parent | 589c085f2734537dce4a8b59a1d49006479e33d1 (diff) |
e1000e: Fix ethtool register test code
A merge/cleanup code accidentally dropped 8254x code in and removed
8257x code here. Undo this mistake and use the pci-e relevant register
test similar as to what is in e1000.
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/e1000e/ethtool.c')
-rw-r--r-- | drivers/net/e1000e/ethtool.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/net/e1000e/ethtool.c b/drivers/net/e1000e/ethtool.c index 3423f33769b7..2e8218fb0579 100644 --- a/drivers/net/e1000e/ethtool.c +++ b/drivers/net/e1000e/ethtool.c | |||
@@ -784,10 +784,16 @@ static int e1000_reg_test(struct e1000_adapter *adapter, u64 *data) | |||
784 | REG_SET_AND_CHECK(E1000_RCTL, before, 0x003FFFFB); | 784 | REG_SET_AND_CHECK(E1000_RCTL, before, 0x003FFFFB); |
785 | REG_SET_AND_CHECK(E1000_TCTL, 0xFFFFFFFF, 0x00000000); | 785 | REG_SET_AND_CHECK(E1000_TCTL, 0xFFFFFFFF, 0x00000000); |
786 | 786 | ||
787 | REG_SET_AND_CHECK(E1000_RCTL, 0xFFFFFFFF, 0x01FFFFFF); | 787 | REG_SET_AND_CHECK(E1000_RCTL, before, 0xFFFFFFFF); |
788 | REG_PATTERN_TEST(E1000_RDBAL, 0xFFFFF000, 0xFFFFFFFF); | 788 | REG_PATTERN_TEST(E1000_RDBAL, 0xFFFFFFF0, 0xFFFFFFFF); |
789 | REG_PATTERN_TEST(E1000_TXCW, 0x0000FFFF, 0x0000FFFF); | 789 | if ((mac->type != e1000_ich8lan) && |
790 | REG_PATTERN_TEST(E1000_TDBAL, 0xFFFFF000, 0xFFFFFFFF); | 790 | (mac->type != e1000_ich9lan)) |
791 | REG_PATTERN_TEST(E1000_TXCW, 0xC000FFFF, 0x0000FFFF); | ||
792 | REG_PATTERN_TEST(E1000_TDBAL, 0xFFFFFFF0, 0xFFFFFFFF); | ||
793 | REG_PATTERN_TEST(E1000_TIDV, 0x0000FFFF, 0x0000FFFF); | ||
794 | for (i = 0; i < mac->rar_entry_count; i++) | ||
795 | REG_PATTERN_TEST_ARRAY(E1000_RA, ((i << 1) + 1), | ||
796 | 0x8003FFFF, 0xFFFFFFFF); | ||
791 | 797 | ||
792 | for (i = 0; i < mac->mta_reg_count; i++) | 798 | for (i = 0; i < mac->mta_reg_count; i++) |
793 | REG_PATTERN_TEST_ARRAY(E1000_MTA, i, 0xFFFFFFFF, 0xFFFFFFFF); | 799 | REG_PATTERN_TEST_ARRAY(E1000_MTA, i, 0xFFFFFFFF, 0xFFFFFFFF); |