Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci - Add support for I210 SGMII Flash-less device.
details: https://anonhg.NetBSD.org/src/rev/568f658df03d
branches: trunk
changeset: 448742:568f658df03d
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Fri Feb 08 06:33:04 2019 +0000
description:
- Add support for I210 SGMII Flash-less device.
- Add KASSERT.
- Update TODO list.
diffstat:
sys/dev/pci/if_wm.c | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diffs (64 lines):
diff -r 064b6167feaf -r 568f658df03d sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c Fri Feb 08 06:29:59 2019 +0000
+++ b/sys/dev/pci/if_wm.c Fri Feb 08 06:33:04 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wm.c,v 1.625 2019/02/07 04:03:24 msaitoh Exp $ */
+/* $NetBSD: if_wm.c,v 1.626 2019/02/08 06:33:04 msaitoh Exp $ */
/*
* Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -75,15 +75,14 @@
* - Check XXX'ed comments
* - TX Multi queue improvement (refine queue selection logic)
* - Split header buffer for newer descriptors
- * - EEE (Energy Efficiency Ethernet)
+ * - EEE (Energy Efficiency Ethernet) for I354
* - Virtual Function
* - Set LED correctly (based on contents in EEPROM)
* - Rework how parameters are loaded from the EEPROM.
- * - Image Unique ID
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.625 2019/02/07 04:03:24 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.626 2019/02/08 06:33:04 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -1476,7 +1475,7 @@
WM_T_I210, WMP_F_COPPER },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I210_COPPER_WOF,
- "I210 Ethernet (FLASH less)",
+ "I210 Ethernet (Copper, FLASH less)",
WM_T_I210, WMP_F_COPPER },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I210_FIBER,
@@ -1488,13 +1487,17 @@
WM_T_I210, WMP_F_SERDES },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I210_SERDES_WOF,
- "I210 Gigabit Ethernet (FLASH less)",
+ "I210 Gigabit Ethernet (SERDES, FLASH less)",
WM_T_I210, WMP_F_SERDES },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I210_SGMII,
"I210 Gigabit Ethernet (SGMII)",
WM_T_I210, WMP_F_COPPER },
+ { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I210_SGMII_WOF,
+ "I210 Gigabit Ethernet (SGMII, FLASH less)",
+ WM_T_I210, WMP_F_COPPER },
+
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I211_COPPER,
"I211 Ethernet (COPPER)",
WM_T_I211, WMP_F_COPPER },
@@ -15180,6 +15183,8 @@
= IPCNFG_EEE_1G_AN | IPCNFG_EEE_100M_AN | IPCNFG_10BASE_TE;
uint32_t eeer_mask = EEER_TX_LPI_EN | EEER_RX_LPI_EN | EEER_LPI_FC;
+ KASSERT(sc->sc_mediatype == WM_MEDIATYPE_COPPER);
+
ipcnfg = CSR_READ(sc, WMREG_IPCNFG);
eeer = CSR_READ(sc, WMREG_EEER);
Home |
Main Index |
Thread Index |
Old Index