diff options
-rw-r--r-- | drivers/net/e1000e/82571.c | 6 | ||||
-rw-r--r-- | drivers/net/e1000e/defines.h | 7 | ||||
-rw-r--r-- | drivers/net/e1000e/hw.h | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/e1000e/82571.c b/drivers/net/e1000e/82571.c index b2c910c52df9..3027ad53fa65 100644 --- a/drivers/net/e1000e/82571.c +++ b/drivers/net/e1000e/82571.c | |||
@@ -973,6 +973,12 @@ static void e1000_initialize_hw_bits_82571(struct e1000_hw *hw) | |||
973 | ew32(CTRL_EXT, reg); | 973 | ew32(CTRL_EXT, reg); |
974 | } | 974 | } |
975 | 975 | ||
976 | if (hw->mac.type == e1000_82571) { | ||
977 | reg = er32(PBA_ECC); | ||
978 | reg |= E1000_PBA_ECC_CORR_EN; | ||
979 | ew32(PBA_ECC, reg); | ||
980 | } | ||
981 | |||
976 | /* PCI-Ex Control Register */ | 982 | /* PCI-Ex Control Register */ |
977 | if (hw->mac.type == e1000_82574) { | 983 | if (hw->mac.type == e1000_82574) { |
978 | reg = er32(GCR); | 984 | reg = er32(GCR); |
diff --git a/drivers/net/e1000e/defines.h b/drivers/net/e1000e/defines.h index 48f79ecb82a0..34a68fcab5a9 100644 --- a/drivers/net/e1000e/defines.h +++ b/drivers/net/e1000e/defines.h | |||
@@ -372,6 +372,13 @@ | |||
372 | #define E1000_ICR_TXQ1 0x00800000 /* Tx Queue 1 Interrupt */ | 372 | #define E1000_ICR_TXQ1 0x00800000 /* Tx Queue 1 Interrupt */ |
373 | #define E1000_ICR_OTHER 0x01000000 /* Other Interrupts */ | 373 | #define E1000_ICR_OTHER 0x01000000 /* Other Interrupts */ |
374 | 374 | ||
375 | /* PBA ECC Register */ | ||
376 | #define E1000_PBA_ECC_COUNTER_MASK 0xFFF00000 /* ECC counter mask */ | ||
377 | #define E1000_PBA_ECC_COUNTER_SHIFT 20 /* ECC counter shift value */ | ||
378 | #define E1000_PBA_ECC_CORR_EN 0x00000001 /* ECC correction enable */ | ||
379 | #define E1000_PBA_ECC_STAT_CLR 0x00000002 /* Clear ECC error counter */ | ||
380 | #define E1000_PBA_ECC_INT_EN 0x00000004 /* Enable ICR bit 5 for ECC */ | ||
381 | |||
375 | /* | 382 | /* |
376 | * This defines the bits that are set in the Interrupt Mask | 383 | * This defines the bits that are set in the Interrupt Mask |
377 | * Set/Read Register. Each bit is documented below: | 384 | * Set/Read Register. Each bit is documented below: |
diff --git a/drivers/net/e1000e/hw.h b/drivers/net/e1000e/hw.h index f66ed37a7f76..c4ffd4b70517 100644 --- a/drivers/net/e1000e/hw.h +++ b/drivers/net/e1000e/hw.h | |||
@@ -87,6 +87,7 @@ enum e1e_registers { | |||
87 | E1000_EEMNGCTL = 0x01010, /* MNG EEprom Control */ | 87 | E1000_EEMNGCTL = 0x01010, /* MNG EEprom Control */ |
88 | E1000_EEWR = 0x0102C, /* EEPROM Write Register - RW */ | 88 | E1000_EEWR = 0x0102C, /* EEPROM Write Register - RW */ |
89 | E1000_FLOP = 0x0103C, /* FLASH Opcode Register */ | 89 | E1000_FLOP = 0x0103C, /* FLASH Opcode Register */ |
90 | E1000_PBA_ECC = 0x01100, /* PBA ECC Register */ | ||
90 | E1000_ERT = 0x02008, /* Early Rx Threshold - RW */ | 91 | E1000_ERT = 0x02008, /* Early Rx Threshold - RW */ |
91 | E1000_FCRTL = 0x02160, /* Flow Control Receive Threshold Low - RW */ | 92 | E1000_FCRTL = 0x02160, /* Flow Control Receive Threshold Low - RW */ |
92 | E1000_FCRTH = 0x02168, /* Flow Control Receive Threshold High - RW */ | 93 | E1000_FCRTH = 0x02168, /* Flow Control Receive Threshold High - RW */ |