/linux/include/linux/ |
H A D | micrel_phy.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 55 /* 1 = HP Auto MDI/MDI-X mode, 0 = Microchip Auto MDI/MDI-X mode */ 57 /* 1 = Force MDI (transmit on RXP/RXM pins), 0 = Normal operation 61 /* 1 = Disable auto MDI-X */
|
/linux/drivers/net/ethernet/intel/igb/ |
H A D | e1000_phy.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 31 * igb_check_reset_block - Check if PHY reset is blocked 48 * igb_get_phy_id - Retrieve the PHY ID and revision 56 struct e1000_phy_info *phy = &hw->phy; in igb_get_phy_id() 61 if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211)) in igb_get_phy_id() 62 phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0); in igb_get_phy_id() 64 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id() 68 phy->id = (u32)(phy_id << 16); in igb_get_phy_id() 70 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id() [all …]
|
H A D | e1000_defines.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 62 /* Interrupt acknowledge Auto-mask */ 118 #define E1000_MANC_SMBUS_EN 0x00000001 /* SMBus Enabled - RO */ 119 #define E1000_MANC_ASF_EN 0x00000002 /* ASF Enabled - RO */ 184 #define E1000_CTRL_ASDE 0x00000020 /* Auto-speed detect enable */ 186 #define E1000_CTRL_ILOS 0x00000080 /* Invert Loss-Of Signal */ 254 /* Constants used to intrepret the masked PCI-X bus speed. */ 271 /* 1000/H is not supported, nor spec-compliant. */ 309 #define E1000_TCTL_RTLC 0x01000000 /* Re-transmit on late collision */ [all …]
|
H A D | igb_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 104 ((((struct igb_adapter *)netdev_priv(netdev))->num_rx_queues * \ 106 (((struct igb_adapter *)netdev_priv(netdev))->num_tx_queues * \ 130 "legacy-rx", 139 struct e1000_hw *hw = &adapter->hw; in igb_get_link_ksettings() 140 struct e1000_dev_spec_82575 *dev_spec = &hw->dev_spec._82575; in igb_get_link_ksettings() 141 struct e1000_sfp_flags *eth_flags = &dev_spec->eth_flags; in igb_get_link_ksettings() 146 status = pm_runtime_suspended(&adapter->pdev->dev) ? in igb_get_link_ksettings() 148 if (hw->phy.media_type == e1000_media_type_copper) { in igb_get_link_ksettings() [all …]
|
/linux/drivers/net/phy/ |
H A D | vitesse.c | 1 // SPDX-License-Identifier: GPL-2.0+ 137 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) in vsc824x_config_init() 178 return -E2BIG; in vsc73xx_set_downshift() 180 return -EINVAL; in vsc73xx_set_downshift() 190 cnt - 2); in vsc73xx_set_downshift() 204 switch (tuna->id) { in vsc73xx_get_tunable() 208 return -EOPNOTSUPP; in vsc73xx_get_tunable() 215 switch (tuna->id) { in vsc73xx_set_tunable() 219 return -EOPNOTSUPP; in vsc73xx_set_tunable() 236 /* Set Auto MDI-X by default */ in vsc73xx_config_init() [all …]
|
/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | phy.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 99 (((reg) & ~MAX_PHY_REG_ADDRESS) << (PHY_UPPER_SHIFT - PHY_PAGE_SHIFT))) 104 (((offset) >> (PHY_UPPER_SHIFT - PHY_PAGE_SHIFT)) &\ 158 #define IGP01E1000_PSCR_FORCE_MDI_MDIX 0x2000 /* 0=MDI, 1=MDIX */ 201 #define IFE_PHY_MDIX_CONTROL 0x1C /* MDI/MDI-X Control */ 216 #define IFE_PMC_MDIX_STATUS 0x0020 /* 1=MDI-X, 0=MDI */ 217 #define IFE_PMC_FORCE_MDIX 0x0040 /* 1=force MDI-X, 0=force MDI */
|
H A D | phy.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 37 * e1000e_check_reset_block_generic - Check if PHY reset is blocked 54 * e1000e_get_phy_id - Retrieve the PHY ID and revision 62 struct e1000_phy_info *phy = &hw->phy; in e1000e_get_phy_id() 67 if (!phy->ops.read_reg) in e1000e_get_phy_id() 75 phy->id = (u32)(phy_id << 16); in e1000e_get_phy_id() 81 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in e1000e_get_phy_id() 82 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in e1000e_get_phy_id() 84 if (phy->id != 0 && phy->id != PHY_REVISION_MASK) in e1000e_get_phy_id() [all …]
|
H A D | 80003es2lan.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 35 * e1000_init_phy_params_80003es2lan - Init ESB2 PHY func ptrs. 40 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_80003es2lan() 43 if (hw->phy.media_type != e1000_media_type_copper) { in e1000_init_phy_params_80003es2lan() 44 phy->type = e1000_phy_none; in e1000_init_phy_params_80003es2lan() 47 phy->ops.power_up = e1000_power_up_phy_copper; in e1000_init_phy_params_80003es2lan() 48 phy->ops.power_down = e1000_power_down_phy_copper_80003es2lan; in e1000_init_phy_params_80003es2lan() 51 phy->addr = 1; in e1000_init_phy_params_80003es2lan() 52 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT; in e1000_init_phy_params_80003es2lan() [all …]
|
H A D | ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 28 "s0ix-enabled", 36 .sizeof_stat = sizeof(((struct e1000_adapter *)0)->m), \ 41 .sizeof_stat = sizeof(((struct rtnl_link_stats64 *)0)->m), \ 115 struct e1000_hw *hw = &adapter->hw; in e1000_get_link_ksettings() 117 if (hw->phy.media_type == e1000_media_type_copper) { in e1000_get_link_ksettings() 127 if (hw->phy.type == e1000_phy_ife) in e1000_get_link_ksettings() 131 if (hw->mac.autoneg == 1) { in e1000_get_link_ksettings() 134 advertising |= hw->phy.autoneg_advertised; in e1000_get_link_ksettings() [all …]
|
H A D | defines.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 46 #define E1000_CTRL_EXT_IAME 0x08000000 /* Int ACK Auto-mask */ 100 #define E1000_MANC_SMBUS_EN 0x00000001 /* SMBus Enabled - RO */ 101 #define E1000_MANC_ASF_EN 0x00000002 /* ASF Enabled - RO */ 183 #define E1000_CTRL_ASDE 0x00000020 /* Auto-speed detect enable */ 185 #define E1000_CTRL_ILOS 0x00000080 /* Invert Loss-Of Signal */ 238 /* 1000/H is not supported, nor spec-compliant. */ 292 #define E1000_TCTL_RTLC 0x01000000 /* Re-transmit on late collision */ 504 /* Loop limit on how long we wait for auto-negotiation to complete */ [all …]
|
/linux/Documentation/devicetree/bindings/net/pse-pd/ |
H A D | pse-controller.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/pse-pd/pse-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 power over twisted pair/ethernet cable. The ethernet-pse nodes should be 12 used to describe PSE controller and referenced by the ethernet-phy node. 15 - Oleksij Rempel <o.rempel@pengutronix.de> 16 - Kory Maincent <kory.maincent@bootlin.com> 20 pattern: "^ethernet-pse(@.*|-([0-9]|[1-9][0-9]+))?$" 22 "#pse-cells": [all …]
|
/linux/Documentation/networking/pse-pd/ |
H A D | pse-pi.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 eight-pin modular jack, commonly known as the Ethernet RJ45 port. This 14 --------------------------- 19 - Section "33.2.3 PI pin assignments" covers the pin assignments for PoE 21 - Section "145.2.4 PSE PI" addresses the configuration for PoE systems that 25 ------------------------------- 31 two pairs of wires, SPE operates on a simpler model due to its single-pair 33 assignments for power delivery, as described in the PSE PI for multi-pair 37 -------------------- 47 ---------------------------- [all …]
|
/linux/Documentation/devicetree/bindings/net/ |
H A D | qcom,qca807x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Christian Marangi <ansuelsmth@gmail.com> 11 - Robert Marko <robert.marko@sartura.hr> 15 IEEE 802.3 clause 22 compliant 10BASE-Te, 100BASE-TX and 16 1000BASE-T PHY-s. 21 Both models have a combo port that supports 1000BASE-X and 22 100BASE-FX fiber. 25 output only pins that natively drive LED-s for up to 2 attached [all …]
|
/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_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0 117 ((((struct igc_adapter *)netdev_priv(netdev))->num_rx_queues * \ 119 (((struct igc_adapter *)netdev_priv(netdev))->num_tx_queues * \ 126 "legacy-rx", 135 struct igc_hw *hw = &adapter->hw; in igc_ethtool_get_drvinfo() 139 strscpy(drvinfo->driver, igc_driver_name, sizeof(drvinfo->driver)); in igc_ethtool_get_drvinfo() 142 hw->nvm.ops.read(hw, IGC_NVM_DEV_STARTER, 1, &nvm_version); in igc_ethtool_get_drvinfo() 147 scnprintf(adapter->fw_version, in igc_ethtool_get_drvinfo() 148 sizeof(adapter->fw_version), in igc_ethtool_get_drvinfo() 149 "%x:%x", in igc_ethtool_get_drvinfo() [all …]
|
/linux/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2006 Intel Corporation. */ 20 sizeof(((struct e1000_adapter *)0)->m), \ 23 sizeof(((struct net_device *)0)->m), \ 90 struct e1000_hw *hw = &adapter->hw; in e1000_get_link_ksettings() 93 if (hw->media_type == e1000_media_type_copper) { in e1000_get_link_ksettings() 103 if (hw->autoneg == 1) { in e1000_get_link_ksettings() 106 advertising |= hw->autoneg_advertised; in e1000_get_link_ksettings() 109 cmd->base.port = PORT_TP; in e1000_get_link_ksettings() 110 cmd->base.phy_address = hw->phy_addr; in e1000_get_link_ksettings() [all …]
|
H A D | e1000_param.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2006 Intel Corporation. */ 12 #define OPTION_UNSET -1 22 #define E1000_PARAM(X, desc) \ argument 23 static int X[E1000_MAX_NIC+1] = E1000_PARAM_INIT; \ 24 static unsigned int num_##X; \ 25 module_param_array_named(X, X, int, &num_##X, 0); \ 26 MODULE_PARM_DESC(X, desc); 30 * Valid Range: 80-256 for 82542 and 82543 gigabit ethernet controllers 31 * Valid Range: 80-4096 for 82544 and newer [all …]
|
H A D | e1000_hw.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2006 Intel Corporation. */ 89 * e1000_set_phy_type - Set the phy type member in the hw struct. 94 if (hw->mac_type == e1000_undefined) in e1000_set_phy_type() 95 return -E1000_ERR_PHY_TYPE; in e1000_set_phy_type() 97 switch (hw->phy_id) { in e1000_set_phy_type() 103 hw->phy_type = e1000_phy_m88; in e1000_set_phy_type() 106 if (hw->mac_type == e1000_82541 || in e1000_set_phy_type() 107 hw->mac_type == e1000_82541_rev_2 || in e1000_set_phy_type() 108 hw->mac_type == e1000_82547 || in e1000_set_phy_type() [all …]
|
H A D | e1000_hw.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 1999 - 2006 Intel Corporation. */ 422 /* MAC decode size is 128K - This is the size of BAR0 */ 443 (MINIMUM_ETHERNET_FRAME_SIZE - ETHERNET_FCS_SIZE) 486 * E1000_RAR_ENTRIES - 1 multicast addresses. 503 /* Receive Descriptor - Extended */ 529 /* Receive Descriptor - Packet Split */ 553 __le16 length[3]; /* length of buffers 1-3 */ 567 #define E1000_RXD_STAT_PIF 0x80 /* passed in-exact filter */ 770 * RW - register is both readable and writable [all …]
|
/linux/drivers/net/ethernet/atheros/atlx/ |
H A D | atlx.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* atlx_hw.h -- common hardware definitions for Attansic network drivers 4 * Copyright(c) 2005 - 2006 Attansic Corporation. All rights reserved. 5 * Copyright(c) 2006 - 2007 Chris Snook <csnook@redhat.com> 6 * Copyright(c) 2006 - 2008 Jay Cliburn <jcliburn@gmail.com> 10 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. 149 /* IRQ Anti-Lost Timer Initial Value Register */ 228 /* MAC Half-Duplex Control Register */ 246 /* Wake-On-Lan control register */ 331 #define MII_SR_100X_HD_CAPS 0x2000 /* 100X Half Duplex Capable */ [all …]
|
/linux/include/uapi/linux/ |
H A D | ethtool.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 26 * have the same layout for 32-bit and 64-bit userland. 38 * struct ethtool_cmd - DEPRECATED, link control and status 43 * interface supports autonegotiation or auto-detection. 44 * Read-only. 48 * auto-detection. 56 * @autoneg: Enable/disable autonegotiation and auto-detection; 60 * Read-only. 62 * obsoleted by &struct ethtool_coalesce. Read-only; deprecated. 64 * obsoleted by &struct ethtool_coalesce. Read-only; deprecated. [all …]
|
/linux/drivers/platform/mellanox/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 23 This driver handles hot-plug events for the power suppliers, power 43 This driver provides support for the Mellanox MSN4800-XX line cards, 46 Centers (EDC) for building Ethernet based clusters, High-Performance 90 L3 management switches. It has 48 x 1Gbps RJ45 + 4 x 100G QSFP28 92 serial port (RS-232 interface), an OOB port (1G/100M MDI interface) 96 System equipped with Nvidia®Spectrum-1 32x100GbE Ethernet switch.
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | vsc8211.c | 2 * Copyright (c) 2005-2008 Chelsio, Inc. All rights reserved. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 53 VSC_INTR_DESCRAMBL = 1 << 7, /* descrambler lock-lost */ 77 #define V_ACSR_ACTIPHY_TMR(x) ((x) << S_ACSR_ACTIPHY_TMR) argument 81 #define G_ACSR_SPEED(x) (((x) >> S_ACSR_SPEED) & M_ACSR_SPEED) argument 134 int err, sp = -1, dplx = -1, pause = 0; in vsc8211_get_link_status() 144 * BMSR_LSTATUS is latch-low, so if it is 0 we need to read it in vsc8211_get_link_status() 210 int err, sp = -1, dplx = -1, pause = 0; in vsc8211_get_link_status_fiber() 220 * BMSR_LSTATUS is latch-low, so if it is 0 we need to read it in vsc8211_get_link_status_fiber() [all …]
|
/linux/arch/m68k/include/asm/ |
H A D | fbio.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 #define FBTYPE_NOTYPE -1 83 int emu_type; /* -1 if none */ 174 int mdi_ncluts; /* Number of implemented CLUTs in this MDI */ 183 /* SparcLinux specific ioctl for the MDI, should be replaced for 258 #define CG14_XLUT 0x3000 /* X Look Up Table -- ??? */
|
/linux/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_hw.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. 200 /* IRQ Anti-Lost Timer Initial Value Register */ 206 #define IDLE_STATUS_RXMAC 1 /* 1: RXMAC state machine is in non-IDLE state. 0: RXMAC i… 207 #define IDLE_STATUS_TXMAC 2 /* 1: TXMAC state machine is in non-IDLE state. 0: TXMAC i… 208 #define IDLE_STATUS_RXQ 4 /* 1: RXQ state machine is in non-IDLE state. 0: RXQ is … 209 #define IDLE_STATUS_TXQ 8 /* 1: TXQ state machine is in non-IDLE state. 0: TXQ is … 210 #define IDLE_STATUS_DMAR 0x10 /* 1: DMAR state machine is in non-IDLE state. 0: DMAR is… 211 #define IDLE_STATUS_DMAW 0x20 /* 1: DMAW state machine is in non-IDLE state. 0: DMAW is… 212 #define IDLE_STATUS_SMB 0x40 /* 1: SMB state machine is in non-IDLE state. 0: SMB is … [all …]
|