/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_pcs.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 25 #define GMAC_AN_CTRL_RAN BIT(9) /* Restart Auto-Negotiation */ 26 #define GMAC_AN_CTRL_ANE BIT(12) /* Auto-Negotiation Enable */ 34 #define GMAC_AN_STATUS_ANA BIT(3) /* Auto-Negotiation Ability */ 35 #define GMAC_AN_STATUS_ANC BIT(5) /* Auto-Negotiation Complete */ 48 * dwmac_pcs_isr - TBI, RTBI, or SGMII PHY ISR 53 * Description: it is the ISR for PCS events: Auto-Negotiation Completed and 63 x->irq_pcs_ane_n++; in dwmac_pcs_isr() 69 x->irq_pcs_link_n++; in dwmac_pcs_isr() 78 * dwmac_rane - To restart ANE [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 7 * e1000e_get_bus_info_pcie - Get PCIe bus information 16 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() 17 struct e1000_bus_info *bus = &hw->bus; in e1000e_get_bus_info_pcie() 18 struct e1000_adapter *adapter = hw->adapter; in e1000e_get_bus_info_pcie() 21 cap_offset = adapter->pdev->pcie_cap; in e1000e_get_bus_info_pcie() 23 bus->width = e1000_bus_width_unknown; in e1000e_get_bus_info_pcie() 25 pci_read_config_word(adapter->pdev, in e1000e_get_bus_info_pcie() 28 bus->width = (enum e1000_bus_width)((pcie_link_status & in e1000e_get_bus_info_pcie() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_phy.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * igc_check_reset_block - Check if PHY reset is blocked 26 * igc_get_phy_id - Retrieve the PHY ID and revision 34 struct igc_phy_info *phy = &hw->phy; in igc_get_phy_id() 38 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id() 42 phy->id = (u32)(phy_id << 16); in igc_get_phy_id() 44 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id() 48 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in igc_get_phy_id() 49 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in igc_get_phy_id() 56 * igc_phy_has_link - Polls PHY for link [all …]
|
H A D | igc_mac.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * igc_disable_pcie_master - Disables PCI-express master access 14 * Returns 0 (0) if successful, else returns -10 15 * (-IGC_ERR_MASTER_REQUESTS_PENDING) if master disable bit has not caused 18 * Disables PCI-Express master access and verifies there are no pending 36 timeout--; in igc_disable_pcie_master() 41 ret_val = -IGC_ERR_MASTER_REQUESTS_PENDING; in igc_disable_pcie_master() 50 * igc_init_rx_addrs - Initialize receive addresses 66 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); in igc_init_rx_addrs() 68 /* Zero out the other (rar_entry_count - 1) receive addresses */ in igc_init_rx_addrs() [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | mii.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * linux/mii.h: definitions for MII-compatible transceivers 23 #define MII_CTRL1000 0x09 /* 1000BASE-T control */ 24 #define MII_STAT1000 0x0a /* 1000BASE-T status */ 30 #define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ 45 #define BMCR_ANRESTART 0x0200 /* Auto negotiation restart */ 48 #define BMCR_ANENABLE 0x1000 /* Enable auto negotiation */ 55 #define BMSR_ERCAP 0x0001 /* Ext-reg capability */ 58 #define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ 60 #define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ [all …]
|
H A D | mdio.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 4 * Copyright 2006-2009 Solarflare Communications Inc. 25 #define MDIO_MMD_AN 7 /* Auto-Negotiation */ 58 /* Media-dependent registers. */ 59 #define MDIO_PMA_10GBT_SWAPPOL 130 /* 10GBASE-T pair swap & polarity */ 60 #define MDIO_PMA_10GBT_TXPWR 131 /* 10GBASE-T TX power control */ 61 #define MDIO_PMA_10GBT_SNR 133 /* 10GBASE-T SNR margin, lane A. 62 * Lanes B-D are numbered 134-136. */ 63 #define MDIO_PMA_10GBR_FSRT_CSR 147 /* 10GBASE-R fast retrain status and control */ 64 #define MDIO_PMA_10GBR_FECABLE 170 /* 10GBASE-R FEC ability */ [all …]
|
/openbmc/linux/include/linux/ |
H A D | smscphy.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 #define MII_LAN83C185_ISF_INT1 (1<<1) /* Auto-Negotiation Page Received */ 12 #define MII_LAN83C185_ISF_INT3 (1<<3) /* Auto-Negotiation LP Ack */ 15 #define MII_LAN83C185_ISF_INT6 (1<<6) /* Auto-Negotiation complete */
|
/openbmc/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-helper-sgmii.h | 7 * Copyright (c) 2003-2008 Cavium Networks 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 63 * auto negotiation. The result of this function may not match 64 * Octeon's link config if auto negotiation has changed since 75 * function does not influence auto negotiation at the PHY level.
|
H A D | cvmx-helper-spi.h | 7 * Copyright (c) 2003-2008 Cavium Networks 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 60 * auto negotiation. The result of this function may not match 61 * Octeon's link config if auto negotiation has changed since 72 * function does not influence auto negotiation at the PHY level.
|
H A D | cvmx-helper-xaui.h | 7 * Copyright (c) 2003-2008 Cavium Networks 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 63 * auto negotiation. The result of this function may not match 64 * Octeon's link config if auto negotiation has changed since 75 * function does not influence auto negotiation at the PHY level.
|
H A D | cvmx-helper-rgmii.h | 7 * Copyright (c) 2003-2008 Cavium Networks 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 43 * Returns Number of RGMII/GMII/MII ports (0-4). 69 * auto negotiation. The result of this function may not match 70 * Octeon's link config if auto negotiation has changed since 81 * function does not influence auto negotiation at the PHY level.
|
H A D | cvmx-helper.h | 7 * Copyright (c) 2003-2008 Cavium Networks 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 37 #include <asm/octeon/cvmx-config.h> 38 #include <asm/octeon/cvmx-fpa.h> 39 #include <asm/octeon/cvmx-wqe.h> 64 #include <asm/octeon/cvmx-helper-errata.h> 65 #include <asm/octeon/cvmx-helper-loop.h> 66 #include <asm/octeon/cvmx-helper-npi.h> 67 #include <asm/octeon/cvmx-helper-rgmii.h> [all …]
|
/openbmc/linux/drivers/net/phy/ |
H A D | phy-c45.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include "mdio-open-alliance.h" 14 * genphy_c45_baset1_able - checks if the PMA has BASE-T1 extended abilities 21 if (phydev->pma_extable == -ENODATA) { in genphy_c45_baset1_able() 26 phydev->pma_extable = val; in genphy_c45_baset1_able() 29 return !!(phydev->pma_extable & MDIO_PMA_EXTABLE_BT1); in genphy_c45_baset1_able() 33 * genphy_c45_pma_can_sleep - checks if the PMA have sleep support 48 * genphy_c45_pma_resume - wakes up the PMA module 54 return -EOPNOTSUPP; in genphy_c45_pma_resume() 62 * genphy_c45_pma_suspend - suspends the PMA module [all …]
|
H A D | dp83848.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2015-2016 Texas Instruments Incorporated - http://www.ti.com/ 27 #define DP83848_MISR_ANC_INT_EN BIT(2) /* Auto-negotiation complete */ 69 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { in dp83848_config_intr() 116 /* DP83620 always reports Auto Negotiation Ability on BMSR. Instead, in dp83848_config_init() 117 * we check initial value of BMCR Auto negotiation enable bit in dp83848_config_init() 121 phydev->autoneg = AUTONEG_DISABLE; in dp83848_config_init()
|
/openbmc/u-boot/board/bachmann/ot1200/ |
H A D | README | 1 U-Boot for the Bachmann electronic GmbH OT1200 devices 7 - "mr" variant 9 port is always up and auto-negotiation is not possible. 11 - normal variant 12 FEC is connected to a normal phy and auto-negotiation is possible. 15 The variant name is part of the dtb file name loaded by u-boot. This 17 devicetree (fixed-phy link).
|
/openbmc/u-boot/include/linux/ |
H A D | mii.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * linux/mii.h: definitions for MII-compatible transceivers 20 #define MII_CTRL1000 0x09 /* 1000BASE-T control */ 21 #define MII_STAT1000 0x0a /* 1000BASE-T status */ 27 #define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ 42 #define BMCR_ANRESTART 0x0200 /* Auto negotiation restart */ 45 #define BMCR_ANENABLE 0x1000 /* Enable auto negotiation */ 52 #define BMSR_ERCAP 0x0001 /* Ext-reg capability */ 55 #define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ 57 #define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ [all …]
|
/openbmc/qemu/include/hw/net/ |
H A D | mii.h | 8 * Copyright 2013 Maxime Ripard <maxime.ripard@free-electrons.com> 34 #define MII_CTRL1000 9 /* 1000BASE-T control */ 35 #define MII_STAT1000 10 /* 1000BASE-T status */ 53 #define MII_BMCR_ANRESTART (1 << 9) /* Auto negotiation restart */ 59 #define MII_BMSR_100TX_FD (1 << 14) /* Can do 100mbps, full-duplex */ 60 #define MII_BMSR_100TX_HD (1 << 13) /* Can do 100mbps, half-duplex */ 61 #define MII_BMSR_10T_FD (1 << 12) /* Can do 10mbps, full-duplex */ 62 #define MII_BMSR_10T_HD (1 << 11) /* Can do 10mbps, half-duplex */ 63 #define MII_BMSR_100T2_FD (1 << 10) /* Can do 100mbps T2, full-duplex */ 64 #define MII_BMSR_100T2_HD (1 << 9) /* Can do 100mbps T2, half-duplex */ [all …]
|
/openbmc/linux/Documentation/networking/device_drivers/ethernet/netronome/ |
H A D | nfp.rst | 1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 14 - `Overview`_ 15 - `Acquiring Firmware`_ 16 - `Devlink Info`_ 17 - `Configure Device`_ 18 - `Statistics`_ 25 are also incorporated in the companies' family of Agilio SmartNICs. The SR-IOV 35 Firmware files on the host filesystem contain card type (`AMDA-*` string), media 40 `linux-firmware.git` repository. 46 ----------------- [all …]
|
/openbmc/linux/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-mdio.c | 9 * Copyright (c) 2014-2016 Advanced Micro Devices, Inc. 59 * Copyright (c) 2014-2016 Advanced Micro Devices, Inc. 127 #include "xgbe-common.h" 132 if (!pdata->phy_if.phy_impl.module_eeprom) in xgbe_phy_module_eeprom() 133 return -ENXIO; in xgbe_phy_module_eeprom() 135 return pdata->phy_if.phy_impl.module_eeprom(pdata, eeprom, data); in xgbe_phy_module_eeprom() 141 if (!pdata->phy_if.phy_impl.module_info) in xgbe_phy_module_info() 142 return -ENXIO; in xgbe_phy_module_info() 144 return pdata->phy_if.phy_impl.module_info(pdata, modinfo); in xgbe_phy_module_info() 199 switch (pdata->an_mode) { in xgbe_an_enable_interrupts() [all …]
|
/openbmc/linux/Documentation/networking/device_drivers/ethernet/intel/ |
H A D | e1000.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 8 Copyright(c) 1999 - 2013 Intel Corporation. 13 - Identifying Your Adapter 14 - Command Line Parameters 15 - Speed and Duplex Configuration 16 - Additional Configurations 17 - Support 50 ------- 54 :Valid Range: 0x01-0x0F, 0x20-0x2F 57 This parameter is a bit-mask that specifies the speed and duplex settings [all …]
|
H A D | i40e.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 8 Copyright(c) 1999-2018 Intel Corporation. 13 - Overview 14 - Identifying Your Adapter 15 - Intel(R) Ethernet Flow Director 16 - Additional Configurations 17 - Known Issues 18 - Support 47 ---------------------- 49 …intel.com/content/dam/www/public/us/en/documents/release-notes/xl710-ethernet-controller-feature-m… [all …]
|
/openbmc/linux/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-helper-sgmii.c | 7 * Copyright (C) 2003-2018 Cavium, Inc. 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 35 #include <asm/octeon/cvmx-config.h> 37 #include <asm/octeon/cvmx-helper.h> 38 #include <asm/octeon/cvmx-helper-board.h> 40 #include <asm/octeon/cvmx-gmxx-defs.h> 41 #include <asm/octeon/cvmx-pcsx-defs.h> 42 #include <asm/octeon/cvmx-pcsxx-defs.h> 54 const uint64_t clock_mhz = cvmx_sysinfo_get()->cpu_clock_hz / 1000000; in __cvmx_helper_sgmii_hardware_init_one_time() [all …]
|
H A D | cvmx-helper-spi.c | 7 * Copyright (C) 2003-2018 Cavium, Inc. 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 34 #include <asm/octeon/cvmx-config.h> 35 #include <asm/octeon/cvmx-spi.h> 36 #include <asm/octeon/cvmx-helper.h> 38 #include <asm/octeon/cvmx-pip-defs.h> 39 #include <asm/octeon/cvmx-pko-defs.h> 40 #include <asm/octeon/cvmx-spxx-defs.h> 41 #include <asm/octeon/cvmx-stxx-defs.h> [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | utils.py | 66 # The user has not set bmc_power_policy_method via a -v parm so we will 98 Using old style functions, callers might call like this with a hard- 129 [local_time]: Fri 2017-11-03 152756 UTC 131 [universal_time]: Fri 2017-11-03 152756 UTC 133 [rtc_time]: Fri 2016-05-20 163403 143 # Local time: Fri 2017-11-03 15:27:56 UTC 144 # Universal time: Fri 2017-11-03 15:27:56 UTC 145 # RTC time: Fri 2016-05-20 16:34:03 185 [1k-blocks]: 247120 192 [1k-blocks]: 247120 [all …]
|
/openbmc/linux/drivers/net/ethernet/dec/tulip/ |
H A D | pnic2.c | 5 Written/copyright 1994-2001 by Donald Becker. 15 /* Understanding the PNIC_II - everything is this file is based 24 * ----- 25 * Bit 24 - SCR 26 * Bit 23 - PCS 27 * Bit 22 - TTM (Trasmit Threshold Mode) 28 * Bit 18 - Port Select 29 * Bit 13 - Start - 1, Stop - 0 Transmissions 30 * Bit 11:10 - Loop Back Operation Mode 31 * Bit 9 - Full Duplex mode (Advertise 10BaseT-FD is CSR14<7> is set) [all …]
|