/openbmc/linux/net/core/ |
H A D | of_net.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/nvmem-consumer.h> 18 * of_get_phy_mode - Get phy mode for given device_node 22 * The function gets phy interface string from property 'phy-mode' or 23 * 'phy-connection-type'. The index in phy_modes table is set in 25 * PHY_INTERFACE_MODE_NA and an errno is returned, e.g. -ENODEV. 34 err = of_property_read_string(np, "phy-mode", &pm); in of_get_phy_mode() 36 err = of_property_read_string(np, "phy-connection-type", &pm); in of_get_phy_mode() 46 return -ENODEV; in of_get_phy_mode() 54 if (pp && pp->length == ETH_ALEN && is_valid_ether_addr(pp->value)) { in of_get_mac_addr() [all …]
|
/openbmc/openbmc-test-automation/redfish/managers/ |
H A D | test_bmc_network_mac.robot | 16 # AA:AA:AA:AA:AA:AA series is a valid MAC and does not exist in 17 # our network, so this is chosen to avoid MAC conflict. 23 # There will be 6 bytes in MAC address (e.g. xx.xx.xx.xx.xx.xx). 29 # MAC address with special characters. 34 Configure Valid MAC And Verify 35 [Documentation] Configure valid MAC via Redfish and verify. 38 Configure MAC Settings ${valid_mac} 40 # Verify whether new MAC is configured on BMC and FW_Env. 41 Validate MAC On BMC ${valid_mac} 42 Verify MAC Address Via FW_Env ${valid_mac} [all …]
|
/openbmc/linux/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 …]
|
/openbmc/qemu/include/standard-headers/asm-m68k/ |
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 …]
|
/openbmc/u-boot/doc/imx/common/ |
H A D | imx6.txt | 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 …]
|
/openbmc/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 …]
|
/openbmc/openbmc-test-automation/ipmi/ |
H A D | test_ipmi_network_verification.robot | 27 Retrieve IP Address Via IPMI And Verify Using Redfish 28 [Documentation] Retrieve IP address using IPMI and verify using Redfish. 50 Retrieve MAC Address Via IPMI And Verify Using Redfish 51 [Documentation] Retrieve MAC address via IPMI and verify using Redfish. 82 # $ ipmitool -I lanplus -H xx.xx.xx.xx -P password lan print 3 95 Get IP Address Source And Verify Using Redfish 96 [Documentation] Get IP address source and verify it using Redfish. 108 ... Set Variable if '${ipv4_address['Address']}' == '${lan_config['IP Address']}' 109 ... ${ipv4_address['AddressOrigin']} Address 113 Valid Value lan_config['IP Address Source'] ['${ip_address_source}'] [all …]
|
/openbmc/linux/drivers/staging/vt6655/ |
H A D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Purpose: MAC routines 13 * vt6655_mac_is_reg_bits_off - Test if All test Bits Off 14 * vt6655_mac_set_short_retry_limit - Set 802.11 Short Retry limit 15 * MACvSetLongRetryLimit - Set 802.11 Long Retry limit 16 * vt6655_mac_set_loopback_mode - Set MAC Loopback Mode 17 * vt6655_mac_save_context - Save Context of MAC Registers 18 * vt6655_mac_restore_context - Restore Context of MAC Registers 19 * MACbSoftwareReset - Software Reset MAC 20 * vt6655_mac_safe_rx_off - Turn Off MAC Rx [all …]
|
/openbmc/linux/net/ethernet/ |
H A D | eth.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Ethernet-type device handling. 14 * Florian La Roche, <rzsfl@rz.uni-sb.de> 29 * Alan Cox : MAC layer pointers/new format. 34 * Andrew Morton : 26Feb01: kill ether_setup() - use netdev_boot_setup(). 46 #include <linux/nvmem-consumer.h> 67 * eth_header - create the Ethernet header 71 * @daddr: destination address (NULL leave destination address) 72 * @saddr: source address (NULL use device source address) 73 * @len: packet length (<= skb->len) [all …]
|
/openbmc/qemu/hw/net/fsl_etsec/ |
H A D | registers.c | 4 * Copyright (c) 2011-2013 AdaCore 36 {0x030, "TBIPA", "TBI PHY address register", ACC_RW, 0x00000000}, 41 {0x05C, "FIFO_RX_ALARM_SHUTOFF", "FIFO receive alarm shut-off threshold register", ACC_RW, 0x00000… 44 {0x09C, "FIFO_TX_STARVE_SHUTOFF", "FIFO transmit starve shut-off register", ACC_RW, 0x00000… 53 {0x140, "TR03WT", "TxBD Rings 0-3 round-robin weightings", ACC_RW, 0x00000000}, 54 {0x144, "TR47WT", "TxBD Rings 4-7 round-robin weightings", ACC_RW, 0x00000000}, 64 {0x200, "TBASEH", "TxBD base address high bits", ACC_RW, 0x00000000}, 65 {0x204, "TBASE0", "TxBD base address of ring 0", ACC_RW, 0x00000000}, 66 {0x20C, "TBASE1", "TxBD base address of ring 1", ACC_RW, 0x00000000}, 67 {0x214, "TBASE2", "TxBD base address of ring 2", ACC_RW, 0x00000000}, [all …]
|
/openbmc/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 …]
|
/openbmc/linux/drivers/net/ethernet/intel/igbvf/ |
H A D | vf.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009 - 2018 Intel Corporation. */ 22 * e1000_init_mac_params_vf - Inits MAC params 27 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_vf() local 29 /* VF's have no MTA Registers - PF feature only */ in e1000_init_mac_params_vf() 30 mac->mta_reg_count = 128; in e1000_init_mac_params_vf() 32 mac->rar_entry_count = 1; in e1000_init_mac_params_vf() 36 mac->ops.reset_hw = e1000_reset_hw_vf; in e1000_init_mac_params_vf() 38 mac->ops.init_hw = e1000_init_hw_vf; in e1000_init_mac_params_vf() 40 mac->ops.check_for_link = e1000_check_for_link_vf; in e1000_init_mac_params_vf() [all …]
|
/openbmc/linux/drivers/net/ethernet/sunplus/ |
H A D | spl2sw_driver.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/nvmem-consumer.h> 27 struct spl2sw_mac *mac = netdev_priv(ndev); in spl2sw_ethernet_open() local 28 struct spl2sw_common *comm = mac->comm; in spl2sw_ethernet_open() 31 netdev_dbg(ndev, "Open port = %x\n", mac->lan_port); in spl2sw_ethernet_open() 33 comm->enable |= mac->lan_port; in spl2sw_ethernet_open() 38 mask = readl(comm->l2sw_reg_base + L2SW_SW_INT_MASK_0); in spl2sw_ethernet_open() 40 writel(mask, comm->l2sw_reg_base + L2SW_SW_INT_MASK_0); in spl2sw_ethernet_open() 42 phy_start(ndev->phydev); in spl2sw_ethernet_open() 51 struct spl2sw_mac *mac = netdev_priv(ndev); in spl2sw_ethernet_stop() local [all …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/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> 20 local-mac-address: 22 Specifies the MAC address that was assigned to the network device. 23 $ref: /schemas/types.yaml#/definitions/uint8-array 27 mac-address: 29 Specifies the MAC address that was last used by the boot [all …]
|
/openbmc/openbmc/meta-facebook/recipes-fb/network-wait-ipv6-ll/network-wait-ipv6-ll/ |
H A D | check-ipv6-ll | 1 #!/bin/bash -e 8 if [ "$((0x${1:0:2} & 0x2))" -gt 0 ]; then 15 IFS=':' read -r -a oct <<< "$1" 17 sed -E 's/:0+/:/g; s/:{3,}/::/; s/:$/:0/' 21 ip -6 addr show dev "$eth_intf" scope link | sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d' 24 if ! is_local_mac "$(cat /sys/class/net/"$eth_intf"/address)"; then 25 echo "global mac address found" 28 echo "non-global mac address, start fix $eth_intf ipv6-ll" 35 # wait getting address from NC-SI 36 mac=$(cat /sys/class/net/"$eth_intf"/address) [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | ep93xx_eth.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Cirrus Logic EP93xx ethernet MAC / MII driver. 9 * Cory T. Tusar, Videon Central, Inc., <ctusar@videon-central.com> 28 #define GET_PRIV(eth_dev) ((struct ep93xx_priv *)(eth_dev)->priv) 29 #define GET_REGS(eth_dev) (GET_PRIV(eth_dev)->regs) 47 printf(" rx_dq.base %p\n", priv->rx_dq.base); in dump_dev() 48 printf(" rx_dq.current %p\n", priv->rx_dq.current); in dump_dev() 49 printf(" rx_dq.end %p\n", priv->rx_dq.end); in dump_dev() 50 printf(" rx_sq.base %p\n", priv->rx_sq.base); in dump_dev() 51 printf(" rx_sq.current %p\n", priv->rx_sq.current); in dump_dev() [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | bmc_network_utils.robot | 10 # MAC input from user. 16 Check And Reset MAC 17 [Documentation] Update BMC with user input MAC address. 21 # mac_address The mac address (e.g. 00:01:6c:80:02:28). 29 ... cat /sys/class/net/${ethernet_interface}/address 31 ... Set MAC Address 34 Set MAC Address 35 [Documentation] Update eth0 with input MAC address. 39 # mac_address The mac address (e.g. 00:01:6c:80:02:28). 50 ... cat /sys/class/net/${ethernet_interface}/address [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() 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 …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | rif_mac_profiles_occ.sh | 2 # SPDX-License-Identifier: GPL-2.0 18 # Disable IPv6 on the two interfaces to avoid IPv6 link-local addresses 37 # Reload in order to clean all the RIFs and RIF MAC profiles created 50 cat >> $batch_file <<-EOF 52 address 00:$m:$m:$m:$m:$m type vlan id $vlan 53 address add 192.0.$m.1/24 dev $h1.$vlan 57 ip -b $batch_file &> /dev/null 58 rm -f $batch_file 67 ip link set $h1.10 address 00:12:34:56:78:99 70 log_test "RIF MAC profile replacement" [all …]
|
/openbmc/linux/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 48 /* MAC function configuration default settings */ 55 /* MAC Command_Config Register Bit Definitions 113 /* MDIO registers within MAC register Space 120 u32 auto_negotiation_advertisement; /* Auto-negotiation 154 /* MAC register Space. Note that some of these registers may or may not be 169 * MAC block 172 /* 32-bit primary MAC address word 0 bits 0 to 31 of the primary [all …]
|
/openbmc/google-misc/subprojects/ncsid/src/ |
H A D | net_config.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 48 virtual int get_mac_addr(mac_addr_t* mac) = 0; 50 virtual int set_mac_addr(const mac_addr_t& mac) = 0; 57 // phosphor-networkd) 63 // Reads the MAC address from socket interface or internal 64 // cache, and store in the mac pointer. 65 // Returns -1 if failed, 0 if succeeded. 66 int get_mac_addr(mac_addr_t* mac) override; 68 // Sets the MAC address over socket, and update internal 70 // Returns -1 if failed, 0 if succeeded. [all …]
|
/openbmc/u-boot/board/davinci/da8xxevm/ |
H A D | Kconfig | 13 bool "Use MAC Address" 18 bool "MAC address in SPI Flash" 21 The OMAP-L138 and AM1808 SoM are programmed with 22 their MAC address in SPI Flash from the factory 23 Enable this option to read the MAC from SPI Flash 26 bool "MAC address in EEPROM" 29 their MAC address in SPI Flash from the factory, 32 MAC from the EEPROM
|
/openbmc/linux/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. */ 8 * fm10k_stop_hw_vf - Stop Tx/Rx units 14 u8 *perm_addr = hw->mac.perm_addr; in fm10k_stop_hw_vf() 24 /* If permanent address is set then we need to restore it */ in fm10k_stop_hw_vf() 36 tdlen = hw->mac.itr_scale << FM10K_TDLEN_ITR_SCALE_SHIFT; in fm10k_stop_hw_vf() 39 * update their base address registers in fm10k_stop_hw_vf() 41 for (i = 0; i < hw->mac.max_queues; i++) { in fm10k_stop_hw_vf() 46 /* Restore ITR scale in software-defined mechanism in TDLEN in fm10k_stop_hw_vf() 58 * fm10k_reset_hw_vf - VF hardware reset [all …]
|