| /OK3568_Linux_fs/kernel/drivers/of/ |
| H A D | of_net.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * of_get_phy_mode - Get phy mode for given device_node 20 * The function gets phy interface string from property 'phy-mode' or 21 * 'phy-connection-type'. The index in phy_modes table is set in 23 * PHY_INTERFACE_MODE_NA and an errno is returned, e.g. -ENODEV. 32 err = of_property_read_string(np, "phy-mode", &pm); in of_get_phy_mode() 34 err = of_property_read_string(np, "phy-connection-type", &pm); in of_get_phy_mode() 44 return -ENODEV; in of_get_phy_mode() 52 if (pp && pp->length == ETH_ALEN && is_valid_ether_addr(pp->value)) in of_get_mac_addr() 53 return pp->value; in of_get_mac_addr() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/vt6655/ |
| H A D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * File: mac.c 8 * Purpose: MAC routines 15 * MACbIsRegBitsOff - Test if All test Bits Off 16 * MACbIsIntDisable - Test if MAC interrupt disable 17 * MACvSetShortRetryLimit - Set 802.11 Short Retry limit 18 * MACvSetLongRetryLimit - Set 802.11 Long Retry limit 19 * MACvSetLoopbackMode - Set MAC Loopback Mode 20 * MACvSaveContext - Save Context of MAC Registers 21 * MACvRestoreContext - Restore Context of MAC Registers [all …]
|
| /OK3568_Linux_fs/kernel/arch/m68k/include/uapi/asm/ |
| H A D | bootinfo-mac.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 ** asm/bootinfo-mac.h -- Macintosh-specific boot information definitions 11 * Macintosh-specific tags (all __be32) 14 #define BI_MAC_MODEL 0x8000 /* Mac Gestalt ID (model type) */ 15 #define BI_MAC_VADDR 0x8001 /* Mac video base address */ 16 #define BI_MAC_VDEPTH 0x8002 /* Mac video depth */ 17 #define BI_MAC_VROW 0x8003 /* Mac video rowbytes */ 18 #define BI_MAC_VDIM 0x8004 /* Mac video dimensions */ 19 #define BI_MAC_VLOGICAL 0x8005 /* Mac video logical base */ 20 #define BI_MAC_SCCBASE 0x8006 /* Mac SCC base address */ [all …]
|
| /OK3568_Linux_fs/u-boot/doc/ |
| H A D | README.enetaddr | 1 --------------------------------- 2 Ethernet Address (MAC) Handling 3 --------------------------------- 5 There are a variety of places in U-Boot where the MAC address is used, parsed, 9 ----------- 11 ----------- 13 Here are the places where MAC addresses might be stored: 15 - board-specific location (eeprom, dedicated flash, ...) 18 - environment ("ethaddr", "eth1addr", ...) 19 Note: this is the preferred way to permanently store MAC addresses [all …]
|
| H A D | README.imx6 | 1 U-Boot for Freescale i.MX6 3 This file contains information for the port of U-Boot to the Freescale i.MX6 7 ----------------------------------- 9 1.1 MAC Address: It is stored in fuse bank 4, with the 32 lsbs in word 2 and the 11 For i.MX6SX and i.MX6UL, they have two MAC addresses. The second MAC address 17 For reading the MAC address fuses on a MX6Q: 19 - The MAC address is stored in two fuse addresses (the fuse addresses are 22 0x620[31:0] - MAC_ADDR[31:0] 23 0x630[15:0] - MAC_ADDR[47:32] 28 Fuse address for the lower MAC address: 0x620 [all …]
|
| /OK3568_Linux_fs/u-boot/examples/standalone/ |
| H A D | README.smc91111_eeprom | 1 This is the readme for the Das U-Boot standalone program smc91111 3 The main purpose of this is to manage MAC addresses on platforms 4 which include the SMC91111 integrated 10/100 MAC Phy, with attached 9 ------------------------ 10 1. Ensuring U-Boot's MAC address can be set in hardware 12 3. Setting MAC addresses 17 1. Ensuring U-Boot's MAC address can be set in hardware 18 -------------------------------------------------------------------------- 20 On the Internet - MAC addresses are very important. Short for Media 21 Access Control address, a hardware address that uniquely identifies [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/chelsio/cxgb/ |
| H A D | vsc7326.c | 1 // SPDX-License-Identifier: GPL-2.0 4 /* Driver for Vitesse VSC7326 (Schaumburg) MAC */ 16 * interface is down (MAC port disabled). This is a workaround 17 * for disabling the T2/MAC flow-control. When the interface is 40 spin_lock_bh(&adapter->mac_lock); in vsc_read() 50 pr_err("Invalid tpi read from MAC, breaking loop.\n"); in vsc_read() 60 spin_unlock_bh(&adapter->mac_lock); in vsc_read() 65 spin_lock_bh(&adapter->mac_lock); in vsc_write() 71 spin_unlock_bh(&adapter->mac_lock); in vsc_write() 74 /* Hard reset the MAC. This wipes out *all* configuration. */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/igbvf/ |
| H A D | vf.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009 - 2018 Intel Corporation. */ 20 * e1000_init_mac_params_vf - Inits MAC params 25 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_vf() local 27 /* VF's have no MTA Registers - PF feature only */ in e1000_init_mac_params_vf() 28 mac->mta_reg_count = 128; in e1000_init_mac_params_vf() 30 mac->rar_entry_count = 1; in e1000_init_mac_params_vf() 34 mac->ops.reset_hw = e1000_reset_hw_vf; in e1000_init_mac_params_vf() 36 mac->ops.init_hw = e1000_init_hw_vf; in e1000_init_mac_params_vf() 38 mac->ops.check_for_link = e1000_check_for_link_vf; in e1000_init_mac_params_vf() [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() local 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/Documentation/devicetree/bindings/net/ |
| H A D | keystone-netcp.txt | 6 switch sub-module to send and receive packets. NetCP also includes a packet 13 includes a 3-port Ethernet switch sub-module capable of 10Gb/s and 1Gb/s rates 16 Keystone NetCP driver has a plug-in module architecture where each of the NetCP 17 sub-modules exist as a loadable kernel module which plug in to the netcp core. 18 These sub-modules are represented as "netcp-devices" in the dts bindings. It is 19 mandatory to have the ethernet switch sub-module for the ethernet interface to 20 be operational. Any other sub-module like the PA is optional. 24 ----------------------------- 26 ----------------------------- 28 |-> NetCP Devices -> | [all …]
|
| H A D | ethernet-controller.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/net/ethernet-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - David S. Miller <davem@davemloft.net> 16 local-mac-address: 18 Specifies the MAC address that was assigned to the network device. 19 $ref: /schemas/types.yaml#definitions/uint8-array 21 - minItems: 6 24 mac-address: [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/net/ |
| H A D | ep93xx_eth.c | 2 * Cirrus Logic EP93xx ethernet MAC / MII driver. 8 * Cory T. Tusar, Videon Central, Inc., <ctusar@videon-central.com> 17 * SPDX-License-Identifier: GPL-2.0+ 29 #define GET_PRIV(eth_dev) ((struct ep93xx_priv *)(eth_dev)->priv) 30 #define GET_REGS(eth_dev) (GET_PRIV(eth_dev)->regs) 48 printf(" rx_dq.base %p\n", priv->rx_dq.base); in dump_dev() 49 printf(" rx_dq.current %p\n", priv->rx_dq.current); in dump_dev() 50 printf(" rx_dq.end %p\n", priv->rx_dq.end); in dump_dev() 51 printf(" rx_sq.base %p\n", priv->rx_sq.base); in dump_dev() 52 printf(" rx_sq.current %p\n", priv->rx_sq.current); in dump_dev() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ixgbevf/ |
| H A D | vf.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 7 /* On Hyper-V, to reset, we need to read from this offset 9 * Hyper-V to support PF/VF communication. 16 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_write_msg_read_ack() 17 s32 retval = mbx->ops.write_posted(hw, msg, size); in ixgbevf_write_msg_read_ack() 22 return mbx->ops.read_posted(hw, retmsg, size); in ixgbevf_write_msg_read_ack() 26 * ixgbevf_start_hw_vf - Prepare hardware for Tx/Rx 30 * all on chip counters, initializes receive address registers, multicast 37 hw->adapter_stopped = false; in ixgbevf_start_hw_vf() [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/intel/fm10k/ |
| H A D | fm10k_vf.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2019 Intel Corporation. */ 7 * fm10k_stop_hw_vf - Stop Tx/Rx units 13 u8 *perm_addr = hw->mac.perm_addr; in fm10k_stop_hw_vf() 23 /* If permanent address is set then we need to restore it */ in fm10k_stop_hw_vf() 35 tdlen = hw->mac.itr_scale << FM10K_TDLEN_ITR_SCALE_SHIFT; in fm10k_stop_hw_vf() 38 * update their base address registers in fm10k_stop_hw_vf() 40 for (i = 0; i < hw->mac.max_queues; i++) { in fm10k_stop_hw_vf() 45 /* Restore ITR scale in software-defined mechanism in TDLEN in fm10k_stop_hw_vf() 57 * fm10k_reset_hw_vf - VF hardware reset [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/altera/ |
| H A D | altera_tse.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Altera Triple-Speed Ethernet MAC driver 3 * Copyright (C) 2008-2014 Altera Corporation. All rights reserved 47 /* MAC function configuration default settings */ 54 /* MAC Command_Config Register Bit Definitions 123 /* MDIO registers within MAC register Space 130 u32 auto_negotiation_advertisement; /* Auto-negotiation 164 /* MAC register Space. Note that some of these registers may or may not be 179 * MAC block 182 /* 32-bit primary MAC address word 0 bits 0 to 31 of the primary [all …]
|
| /OK3568_Linux_fs/u-boot/board/davinci/da8xxevm/ |
| H A D | da850evm.c | 2 * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ 9 * SPDX-License-Identifier: GPL-2.0+ 19 #include <asm/ti-common/davinci_nand.h> 26 #include <asm/mach-types.h> 48 #define CFG_MAC_ADDR_OFFSET (flash->size - SZ_64K) 59 printf("Error - unable to probe SPI flash.\n"); in get_mac_addr() 60 return -1; in get_mac_addr() 65 printf("Error - unable to read MAC address from SPI flash.\n"); in get_mac_addr() 66 return -1; in get_mac_addr() 79 mdstat = &psc_regs->psc0.mdstat[id]; in dsp_lpsc_on() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/sun/ |
| H A D | sungem.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 39 * This auto-clearing does not occur when the alias at GREG_STAT2 52 #define GREG_STAT_TXMAC 0x00004000 /* TX MAC signalled interrupt */ 53 #define GREG_STAT_RXMAC 0x00008000 /* RX MAC signalled interrupt */ 54 #define GREG_STAT_MAC 0x00010000 /* MAC Control signalled irq */ 69 * signalled to the cpu. GREG_IACK can be used to clear specific top-level 121 #define TXDMA_FADDR 0x2104UL /* TX FIFO Address */ 130 * This 13-bit register is programmed by the driver to hold the descriptor 136 * This 13-bit register is updated by GEM to hold to descriptor entry index 146 * maximum value of 0x4ff, else one risks getting TX MAC Underrun errors. [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | rtnetlink.sh | 2 # SPDX-License-Identifier: GPL-2.0 75 # IP address enablement should be rejected if the MAC address prefix 78 check_fail $? "IP address addition passed for a device with a wrong MAC" 80 | grep -q mlxsw_spectrum 81 check_err $? "no extack for IP address addition" 88 # Change of MAC address of a RIF should be forbidden if the new MAC 89 # doesn't share the prefix with other MAC addresses. 91 check_fail $? "change of MAC address passed for a wrong MAC" 93 | grep -q mlxsw_spectrum 94 check_err $? "no extack for MAC address change" [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/agere/ |
| H A D | et131x.h | 52 /* LBCIF Register Groups (addressed via 32-bit offsets) */ 56 /* LBCIF Registers (addressed via 8-bit offsets) */ 78 /* START OF GLOBAL REGISTER ADDRESS MAP */ 81 * Tx queue start address reg in global address map at address 0x0000 82 * tx queue end address reg in global address map at address 0x0004 83 * rx queue start address reg in global address map at address 0x0008 84 * rx queue end address reg in global address map at address 0x000C 87 /* structure for power management control status reg in global address map 88 * located at address 0x0010 103 /* Interrupt status reg at address 0x0018 [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/boot/dts/cavium-octeon/ |
| H A D | octeon_3xxx.dts | 1 // SPDX-License-Identifier: GPL-2.0 6 * use. Because of this, it contains a super-set of the available 15 phy0: ethernet-phy@0 { 17 marvell,reg-init = 21 <3 0x11 0 0x442a>, /* Reg 3,17 <- 0442a */ 22 /* irq, blink-activity, blink-link */ 23 <3 0x10 0 0x0242>; /* Reg 3,16 <- 0x0242 */ 27 phy1: ethernet-phy@1 { 29 marvell,reg-init = 33 <3 0x11 0 0x442a>, /* Reg 3,17 <- 0442a */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/igc/ |
| 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 52 * @rar_count: receive address registers 54 * Setup the receive address registers by setting the base receive address [all …]
|
| /OK3568_Linux_fs/kernel/net/netfilter/ipset/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 38 tristate "bitmap:ip,mac set support" 41 This option adds the bitmap:ip,mac set type support, by which one 42 can store IPv4 address and (source) MAC address pairs from a range. 70 can store IPv4/IPv6 address and mark pairs. 79 can store IPv4/IPv6 address and protocol/port pairs. 88 one can store IPv4/IPv6 address, protocol/port, and IPv4/IPv6 89 address triples in a set. 98 one can store IPv4/IPv6 address, protocol/port, and IPv4/IPv6 99 network address/prefix triples in a set. [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/flower/ |
| H A D | tunnel_conf.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (C) 2017-2018 Netronome Systems, Inc. */ 24 * struct nfp_tun_pre_run_rule - rule matched before decap 26 * @port_idx: index of destination MAC address for the rule 27 * @vlan_tci: VLAN info associated with MAC 38 * struct nfp_tun_active_tuns - periodic message of active tunnels 42 * @tun_info.ipv4: dest IPv4 address of active route 59 * struct nfp_tun_active_tuns_v6 - periodic message of active IPv6 tunnels 63 * @tun_info.ipv6: dest IPv6 address of active route 80 * struct nfp_tun_neigh - neighbour/route entry on the NFP [all …]
|
| /OK3568_Linux_fs/u-boot/board/compulab/common/ |
| H A D | eeprom.c | 7 * SPDX-License-Identifier: GPL-2.0+ 103 serialnr->low = serial[0]; in get_board_serial() 104 serialnr->high = serial[1]; in get_board_serial() 110 * Description: read mac address and store it in buf. 152 * representation. i.e. for rev 1.00: 0x100 --> 0x64 in cl_eeprom_get_board_rev() 176 return -EINVAL; in cl_eeprom_get_product_name() 184 buf[PRODUCT_NAME_SIZE - 1] = '\0'; in cl_eeprom_get_product_name() 191 * eeprom_field_print_bin_ver() - print a "version field" which contains binary 205 if ((field->buf[0] == 0xff) && (field->buf[1] == 0xff)) { in eeprom_field_print_bin_ver() 206 field->buf[0] = 0; in eeprom_field_print_bin_ver() [all …]
|