diff options
Diffstat (limited to 'drivers/net/igb/e1000_defines.h')
-rw-r--r-- | drivers/net/igb/e1000_defines.h | 52 |
1 files changed, 51 insertions, 1 deletions
diff --git a/drivers/net/igb/e1000_defines.h b/drivers/net/igb/e1000_defines.h index 6319ed902bc0..6b80d40110ca 100644 --- a/drivers/net/igb/e1000_defines.h +++ b/drivers/net/igb/e1000_defines.h | |||
@@ -51,6 +51,7 @@ | |||
51 | #define E1000_CTRL_EXT_LINK_MODE_PCIE_SERDES 0x00C00000 | 51 | #define E1000_CTRL_EXT_LINK_MODE_PCIE_SERDES 0x00C00000 |
52 | #define E1000_CTRL_EXT_LINK_MODE_1000BASE_KX 0x00400000 | 52 | #define E1000_CTRL_EXT_LINK_MODE_1000BASE_KX 0x00400000 |
53 | #define E1000_CTRL_EXT_LINK_MODE_SGMII 0x00800000 | 53 | #define E1000_CTRL_EXT_LINK_MODE_SGMII 0x00800000 |
54 | #define E1000_CTRL_EXT_LINK_MODE_GMII 0x00000000 | ||
54 | #define E1000_CTRL_EXT_EIAME 0x01000000 | 55 | #define E1000_CTRL_EXT_EIAME 0x01000000 |
55 | #define E1000_CTRL_EXT_IRCA 0x00000001 | 56 | #define E1000_CTRL_EXT_IRCA 0x00000001 |
56 | /* Interrupt delay cancellation */ | 57 | /* Interrupt delay cancellation */ |
@@ -110,6 +111,7 @@ | |||
110 | /* Management Control */ | 111 | /* Management Control */ |
111 | #define E1000_MANC_SMBUS_EN 0x00000001 /* SMBus Enabled - RO */ | 112 | #define E1000_MANC_SMBUS_EN 0x00000001 /* SMBus Enabled - RO */ |
112 | #define E1000_MANC_ASF_EN 0x00000002 /* ASF Enabled - RO */ | 113 | #define E1000_MANC_ASF_EN 0x00000002 /* ASF Enabled - RO */ |
114 | #define E1000_MANC_EN_BMC2OS 0x10000000 /* OSBMC is Enabled or not */ | ||
113 | /* Enable Neighbor Discovery Filtering */ | 115 | /* Enable Neighbor Discovery Filtering */ |
114 | #define E1000_MANC_RCV_TCO_EN 0x00020000 /* Receive TCO Packets Enabled */ | 116 | #define E1000_MANC_RCV_TCO_EN 0x00020000 /* Receive TCO Packets Enabled */ |
115 | #define E1000_MANC_BLK_PHY_RST_ON_IDE 0x00040000 /* Block phy resets */ | 117 | #define E1000_MANC_BLK_PHY_RST_ON_IDE 0x00040000 /* Block phy resets */ |
@@ -286,7 +288,34 @@ | |||
286 | #define E1000_TCTL_COLD 0x003ff000 /* collision distance */ | 288 | #define E1000_TCTL_COLD 0x003ff000 /* collision distance */ |
287 | #define E1000_TCTL_RTLC 0x01000000 /* Re-transmit on late collision */ | 289 | #define E1000_TCTL_RTLC 0x01000000 /* Re-transmit on late collision */ |
288 | 290 | ||
289 | /* Transmit Arbitration Count */ | 291 | /* DMA Coalescing register fields */ |
292 | #define E1000_DMACR_DMACWT_MASK 0x00003FFF /* DMA Coalescing | ||
293 | * Watchdog Timer */ | ||
294 | #define E1000_DMACR_DMACTHR_MASK 0x00FF0000 /* DMA Coalescing Receive | ||
295 | * Threshold */ | ||
296 | #define E1000_DMACR_DMACTHR_SHIFT 16 | ||
297 | #define E1000_DMACR_DMAC_LX_MASK 0x30000000 /* Lx when no PCIe | ||
298 | * transactions */ | ||
299 | #define E1000_DMACR_DMAC_LX_SHIFT 28 | ||
300 | #define E1000_DMACR_DMAC_EN 0x80000000 /* Enable DMA Coalescing */ | ||
301 | |||
302 | #define E1000_DMCTXTH_DMCTTHR_MASK 0x00000FFF /* DMA Coalescing Transmit | ||
303 | * Threshold */ | ||
304 | |||
305 | #define E1000_DMCTLX_TTLX_MASK 0x00000FFF /* Time to LX request */ | ||
306 | |||
307 | #define E1000_DMCRTRH_UTRESH_MASK 0x0007FFFF /* Receive Traffic Rate | ||
308 | * Threshold */ | ||
309 | #define E1000_DMCRTRH_LRPRCW 0x80000000 /* Rcv packet rate in | ||
310 | * current window */ | ||
311 | |||
312 | #define E1000_DMCCNT_CCOUNT_MASK 0x01FFFFFF /* DMA Coal Rcv Traffic | ||
313 | * Current Cnt */ | ||
314 | |||
315 | #define E1000_FCRTC_RTH_COAL_MASK 0x0003FFF0 /* Flow ctrl Rcv Threshold | ||
316 | * High val */ | ||
317 | #define E1000_FCRTC_RTH_COAL_SHIFT 4 | ||
318 | #define E1000_PCIEMISC_LX_DECISION 0x00000080 /* Lx power decision */ | ||
290 | 319 | ||
291 | /* SerDes Control */ | 320 | /* SerDes Control */ |
292 | #define E1000_SCTL_DISABLE_SERDES_LOOPBACK 0x0400 | 321 | #define E1000_SCTL_DISABLE_SERDES_LOOPBACK 0x0400 |
@@ -565,6 +594,8 @@ | |||
565 | #define NVM_INIT_CONTROL3_PORT_A 0x0024 | 594 | #define NVM_INIT_CONTROL3_PORT_A 0x0024 |
566 | #define NVM_ALT_MAC_ADDR_PTR 0x0037 | 595 | #define NVM_ALT_MAC_ADDR_PTR 0x0037 |
567 | #define NVM_CHECKSUM_REG 0x003F | 596 | #define NVM_CHECKSUM_REG 0x003F |
597 | #define NVM_COMPATIBILITY_REG_3 0x0003 | ||
598 | #define NVM_COMPATIBILITY_BIT_MASK 0x8000 | ||
568 | 599 | ||
569 | #define E1000_NVM_CFG_DONE_PORT_0 0x040000 /* MNG config cycle done */ | 600 | #define E1000_NVM_CFG_DONE_PORT_0 0x040000 /* MNG config cycle done */ |
570 | #define E1000_NVM_CFG_DONE_PORT_1 0x080000 /* ...for second port */ | 601 | #define E1000_NVM_CFG_DONE_PORT_1 0x080000 /* ...for second port */ |
@@ -599,6 +630,7 @@ | |||
599 | /* NVM Commands - SPI */ | 630 | /* NVM Commands - SPI */ |
600 | #define NVM_MAX_RETRY_SPI 5000 /* Max wait of 5ms, for RDY signal */ | 631 | #define NVM_MAX_RETRY_SPI 5000 /* Max wait of 5ms, for RDY signal */ |
601 | #define NVM_WRITE_OPCODE_SPI 0x02 /* NVM write opcode */ | 632 | #define NVM_WRITE_OPCODE_SPI 0x02 /* NVM write opcode */ |
633 | #define NVM_READ_OPCODE_SPI 0x03 /* NVM read opcode */ | ||
602 | #define NVM_A8_OPCODE_SPI 0x08 /* opcode bit-3 = address bit-8 */ | 634 | #define NVM_A8_OPCODE_SPI 0x08 /* opcode bit-3 = address bit-8 */ |
603 | #define NVM_WREN_OPCODE_SPI 0x06 /* NVM set Write Enable latch */ | 635 | #define NVM_WREN_OPCODE_SPI 0x06 /* NVM set Write Enable latch */ |
604 | #define NVM_RDSR_OPCODE_SPI 0x05 /* NVM read Status register */ | 636 | #define NVM_RDSR_OPCODE_SPI 0x05 /* NVM read Status register */ |
@@ -757,6 +789,17 @@ | |||
757 | #define E1000_MDIC_ERROR 0x40000000 | 789 | #define E1000_MDIC_ERROR 0x40000000 |
758 | #define E1000_MDIC_DEST 0x80000000 | 790 | #define E1000_MDIC_DEST 0x80000000 |
759 | 791 | ||
792 | /* Thermal Sensor */ | ||
793 | #define E1000_THSTAT_PWR_DOWN 0x00000001 /* Power Down Event */ | ||
794 | #define E1000_THSTAT_LINK_THROTTLE 0x00000002 /* Link Speed Throttle Event */ | ||
795 | |||
796 | /* Energy Efficient Ethernet */ | ||
797 | #define E1000_IPCNFG_EEE_1G_AN 0x00000008 /* EEE Enable 1G AN */ | ||
798 | #define E1000_IPCNFG_EEE_100M_AN 0x00000004 /* EEE Enable 100M AN */ | ||
799 | #define E1000_EEER_TX_LPI_EN 0x00010000 /* EEE Tx LPI Enable */ | ||
800 | #define E1000_EEER_RX_LPI_EN 0x00020000 /* EEE Rx LPI Enable */ | ||
801 | #define E1000_EEER_LPI_FC 0x00040000 /* EEE Enable on FC */ | ||
802 | |||
760 | /* SerDes Control */ | 803 | /* SerDes Control */ |
761 | #define E1000_GEN_CTL_READY 0x80000000 | 804 | #define E1000_GEN_CTL_READY 0x80000000 |
762 | #define E1000_GEN_CTL_ADDRESS_SHIFT 8 | 805 | #define E1000_GEN_CTL_ADDRESS_SHIFT 8 |
@@ -770,4 +813,11 @@ | |||
770 | #define E1000_PCIEMISC_LX_DECISION 0x00000080 /* Lx power decision based | 813 | #define E1000_PCIEMISC_LX_DECISION 0x00000080 /* Lx power decision based |
771 | on DMA coal */ | 814 | on DMA coal */ |
772 | 815 | ||
816 | /* Tx Rate-Scheduler Config fields */ | ||
817 | #define E1000_RTTBCNRC_RS_ENA 0x80000000 | ||
818 | #define E1000_RTTBCNRC_RF_DEC_MASK 0x00003FFF | ||
819 | #define E1000_RTTBCNRC_RF_INT_SHIFT 14 | ||
820 | #define E1000_RTTBCNRC_RF_INT_MASK \ | ||
821 | (E1000_RTTBCNRC_RF_DEC_MASK << E1000_RTTBCNRC_RF_INT_SHIFT) | ||
822 | |||
773 | #endif | 823 | #endif |