| /OK3568_Linux_fs/kernel/drivers/net/phy/ |
| H A D | phy-c45.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 * genphy_c45_setup_forced - configures a forced speed 20 if (phydev->duplex != DUPLEX_FULL) in genphy_c45_pma_setup_forced() 21 return -EINVAL; in genphy_c45_pma_setup_forced() 34 * in 802.3-2012 and 802.3-2015. in genphy_c45_pma_setup_forced() 38 switch (phydev->speed) { in genphy_c45_pma_setup_forced() 48 /* Assume 1000base-T */ in genphy_c45_pma_setup_forced() 53 /* Assume 2.5Gbase-T */ in genphy_c45_pma_setup_forced() 58 /* Assume 5Gbase-T */ in genphy_c45_pma_setup_forced() 63 /* Assume 10Gbase-T */ in genphy_c45_pma_setup_forced() [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 */ 55 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { in dp83848_config_intr() 73 /* DP83620 always reports Auto Negotiation Ability on BMSR. Instead, in dp83848_config_init() 74 * we check initial value of BMCR Auto negotiation enable bit in dp83848_config_init() 78 phydev->autoneg = AUTONEG_DISABLE; in dp83848_config_init()
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/igc/ |
| H A D | igc_phy.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * igc_check_reset_block - Check if PHY reset is blocked 25 * igc_get_phy_id - Retrieve the PHY ID and revision 33 struct igc_phy_info *phy = &hw->phy; in igc_get_phy_id() 37 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id() 41 phy->id = (u32)(phy_id << 16); in igc_get_phy_id() 43 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id() 47 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in igc_get_phy_id() 48 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in igc_get_phy_id() 55 * 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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 */
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/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 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 …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/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 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 …]
|
| /OK3568_Linux_fs/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 …]
|
| /OK3568_Linux_fs/kernel/arch/mips/include/asm/octeon/ |
| 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-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-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 …]
|
| /OK3568_Linux_fs/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).
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/igb/ |
| H A D | e1000_mac.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 18 * igb_get_bus_info_pcie - Get PCIe bus information 27 struct e1000_bus_info *bus = &hw->bus; in igb_get_bus_info_pcie() 32 bus->type = e1000_bus_type_pci_express; in igb_get_bus_info_pcie() 38 bus->width = e1000_bus_width_unknown; in igb_get_bus_info_pcie() 39 bus->speed = e1000_bus_speed_unknown; in igb_get_bus_info_pcie() 43 bus->speed = e1000_bus_speed_2500; in igb_get_bus_info_pcie() 46 bus->speed = e1000_bus_speed_5000; in igb_get_bus_info_pcie() 49 bus->speed = e1000_bus_speed_unknown; in igb_get_bus_info_pcie() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| H A D | de4x5.h | 16 #define DE4X5_BMR iobase+(0x000 << lp->bus) /* Bus Mode Register */ 17 #define DE4X5_TPD iobase+(0x008 << lp->bus) /* Transmit Poll Demand Reg */ 18 #define DE4X5_RPD iobase+(0x010 << lp->bus) /* Receive Poll Demand Reg */ 19 #define DE4X5_RRBA iobase+(0x018 << lp->bus) /* RX Ring Base Address Reg */ 20 #define DE4X5_TRBA iobase+(0x020 << lp->bus) /* TX Ring Base Address Reg */ 21 #define DE4X5_STS iobase+(0x028 << lp->bus) /* Status Register */ 22 #define DE4X5_OMR iobase+(0x030 << lp->bus) /* Operation Mode Register */ 23 #define DE4X5_IMR iobase+(0x038 << lp->bus) /* Interrupt Mask Register */ 24 #define DE4X5_MFC iobase+(0x040 << lp->bus) /* Missed Frame Counter */ 25 #define DE4X5_APROM iobase+(0x048 << lp->bus) /* Ethernet Address PROM */ [all …]
|