/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 Addres [all...] |
/openbmc/qemu/hw/net/ |
H A D | e1000x_common.h | 29 e1000x_inc_reg_if_not_full(uint32_t *mac, int index) in e1000x_inc_reg_if_not_full() argument 31 if (mac[index] != UINT32_MAX) { in e1000x_inc_reg_if_not_full() 32 mac[index]++; in e1000x_inc_reg_if_not_full() 37 e1000x_grow_8reg_if_not_full(uint32_t *mac, int index, int size) in e1000x_grow_8reg_if_not_full() argument 39 uint64_t sum = mac[index] | (uint64_t)mac[index + 1] << 32; in e1000x_grow_8reg_if_not_full() 46 mac[index] = sum; in e1000x_grow_8reg_if_not_full() 47 mac[index + 1] = sum >> 32; in e1000x_grow_8reg_if_not_full() 51 e1000x_vlan_enabled(uint32_t *mac) in e1000x_vlan_enabled() argument 53 return ((mac[CTRL] & E1000_CTRL_VME) != 0); in e1000x_vlan_enabled() 63 e1000x_vlan_rx_filter_enabled(uint32_t *mac) in e1000x_vlan_rx_filter_enabled() argument [all …]
|
H A D | e1000x_common.c | 37 bool e1000x_rx_ready(PCIDevice *d, uint32_t *mac) in e1000x_rx_ready() argument 39 bool link_up = mac[STATUS] & E1000_STATUS_LU; in e1000x_rx_ready() 40 bool rx_enabled = mac[RCTL] & E1000_RCTL_EN; in e1000x_rx_ready() 61 bool e1000x_rx_vlan_filter(uint32_t *mac, const struct vlan_header *vhdr) in e1000x_rx_vlan_filter() argument 63 if (e1000x_vlan_rx_filter_enabled(mac)) { in e1000x_rx_vlan_filter() 66 ldl_le_p((uint32_t *)(mac + VFTA) + in e1000x_rx_vlan_filter() 79 bool e1000x_rx_group_filter(uint32_t *mac, const struct eth_header *ehdr) in e1000x_rx_group_filter() argument 82 uint32_t f, ra[2], *rp, rctl = mac[RCTL]; in e1000x_rx_group_filter() 98 for (rp = mac + RA; rp < mac + RA + 32; rp += 2) { in e1000x_rx_group_filter() 105 trace_e1000x_rx_flt_ucast_match((int)(rp - mac - RA) / 2, in e1000x_rx_group_filter() [all …]
|
H A D | e1000e_core.c | 94 e1000x_inc_reg_if_not_full(core->mac, IAC); in e1000e_raise_legacy_irq() 108 int64_t delay_ns = (int64_t) timer->core->mac[timer->delay_reg] * in e1000e_intrmgr_rearm_timer() 160 if (timer->core->mac[IMS] & timer->core->mac[ICR]) { in e1000e_intrmgr_on_throttling_timer() 258 uint32_t rdtr = core->mac[RDTR]; in e1000e_intrmgr_delay_rx_causes() 259 uint32_t radv = core->mac[RADV]; in e1000e_intrmgr_delay_rx_causes() 260 uint32_t raid = core->mac[RAID]; in e1000e_intrmgr_delay_rx_causes() 270 if (!(core->mac[RFCTL] & E1000_RFCTL_ACK_DIS)) { in e1000e_intrmgr_delay_rx_causes() 332 if (!core->tadv.running && (core->mac[TADV] != 0)) { in e1000e_intrmgr_delay_tx_causes() 437 return (core->mac[RXCSUM] & E1000_RXCSUM_PCSD) ? false : true; in e1000e_rx_csum_enabled() 443 return (core->mac[RFCTL] & E1000_RFCTL_EXTEN) ? false : true; in e1000e_rx_use_legacy_descriptor() [all …]
|
H A D | igb_core.c | 104 e1000x_inc_reg_if_not_full(core->mac, IAC); in igb_raise_legacy_irq() 137 trace_e1000e_irq_icr_clear_eiac(core->mac[EICR], core->mac[EIAC]); in igb_msix_notify() 138 effective_eiac = core->mac[EIAC] & BIT(cause); in igb_msix_notify() 139 core->mac[EICR] &= ~effective_eiac; in igb_msix_notify() 145 int64_t delay_ns = (int64_t) timer->core->mac[timer->delay_reg] * in igb_intrmgr_rearm_timer() 239 return (core->mac[RXCSUM] & E1000_RXCSUM_PCSD) ? false : true; in igb_rx_csum_enabled() 264 return core->mac[E1000_SRRCTL(r->idx) >> 2] & E1000_SRRCTL_DESCTYPE_MASK; in igb_rx_queue_desctyp_get() 278 return (core->mac[MRQC] & 3) == E1000_MRQC_ENABLE_RSS_MQ && in igb_rss_enabled() 301 trace_e1000e_rx_rss_ip4(l4hdr_proto, core->mac[MRQC], in igb_rss_get_hash_type() 302 E1000_MRQC_EN_TCPIPV4(core->mac[MRQC]), in igb_rss_get_hash_type() [all …]
|
/openbmc/qemu/include/standard-headers/asm-m68k/ |
H A D | bootinfo-mac.h | 3 ** asm/bootinfo-mac.h -- Macintosh-specific boot information definitions 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 */ 21 #define BI_MAC_BTIME 0x8007 /* Mac boot time */ 22 #define BI_MAC_GMTBIAS 0x8008 /* Mac GMT timezone offset */ [all …]
|
/openbmc/u-boot/drivers/net/fm/ |
H A D | tgec.c | 28 static void tgec_init_mac(struct fsl_enet_mac *mac) in tgec_init_mac() argument 30 struct tgec *regs = mac->base; in tgec_init_mac() 39 out_be32(®s->maxfrm, mac->max_rx_len & MAXFRM_MASK); in tgec_init_mac() 42 * 1588 disable, insert second mac disable payload length check in tgec_init_mac() 55 static void tgec_enable_mac(struct fsl_enet_mac *mac) in tgec_enable_mac() argument 57 struct tgec *regs = mac->base; in tgec_enable_mac() 62 static void tgec_disable_mac(struct fsl_enet_mac *mac) in tgec_disable_mac() argument 64 struct tgec *regs = mac->base; in tgec_disable_mac() 69 static void tgec_set_mac_addr(struct fsl_enet_mac *mac, u8 *mac_addr) in tgec_set_mac_addr() argument 71 struct tgec *regs = mac->base; in tgec_set_mac_addr() [all …]
|
H A D | dtsec.c | 26 static void dtsec_init_mac(struct fsl_enet_mac *mac) in dtsec_init_mac() argument 28 struct dtsec *regs = mac->base; in dtsec_init_mac() 34 /* clear soft reset, Rx/Tx MAC disable */ in dtsec_init_mac() 52 out_be32(®s->maxfrm, mac->max_rx_len & MAXFRM_MASK); in dtsec_init_mac() 64 static void dtsec_enable_mac(struct fsl_enet_mac *mac) in dtsec_enable_mac() argument 66 struct dtsec *regs = mac->base; in dtsec_enable_mac() 68 /* enable Rx/Tx MAC */ in dtsec_enable_mac() 78 static void dtsec_disable_mac(struct fsl_enet_mac *mac) in dtsec_disable_mac() argument 80 struct dtsec *regs = mac->base; in dtsec_disable_mac() 88 /* disable Rx/Tx MAC */ in dtsec_disable_mac() [all …]
|
H A D | memac.c | 18 static void memac_init_mac(struct fsl_enet_mac *mac) in memac_init_mac() argument 20 struct memac *regs = mac->base; in memac_init_mac() 29 out_be32(®s->maxfrm, mac->max_rx_len & MAXFRM_MASK); in memac_init_mac() 35 static void memac_enable_mac(struct fsl_enet_mac *mac) in memac_enable_mac() argument 37 struct memac *regs = mac->base; in memac_enable_mac() 43 static void memac_disable_mac(struct fsl_enet_mac *mac) in memac_disable_mac() argument 45 struct memac *regs = mac->base; in memac_disable_mac() 50 static void memac_set_mac_addr(struct fsl_enet_mac *mac, u8 *mac_addr) in memac_set_mac_addr() argument 52 struct memac *regs = mac->base; in memac_set_mac_addr() 67 static void memac_set_interface_mode(struct fsl_enet_mac *mac, in memac_set_interface_mode() argument [all …]
|
/openbmc/openbmc/meta-google/recipes-google/networking/files/ |
H A D | gbmc-mac-config.sh.in | 30 # Our MAC Address configuration lives in the internal area with a format 33 # 1 Type (Always 1 for MAC Address) 35 # 3-8 MAC Address Base Octets 42 echo "Not a MAC internal region" >&2 45 mac=("${internal[@]:3:6}") 47 macstr=$(printf '%02x:%02x:%02x:%02x:%02x:%02x' "${mac[@]}") 48 echo "Base MAC $macstr num $num" >&2 63 # Write out each MAC override to the runtime networkd configuration 64 lower=$(((mac[3] << 16) | (mac[4] << 8) | mac[5])) 65 rm -f "/run/gbmc-mac-config/gbmc-mac-list" [all …]
|
/openbmc/u-boot/arch/arm/mach-imx/ |
H A D | mac.c | 26 void imx_get_mac_from_fuse(int dev_id, unsigned char *mac) in imx_get_mac_from_fuse() argument 39 mac[0] = value >> 24; in imx_get_mac_from_fuse() 40 mac[1] = value >> 16; in imx_get_mac_from_fuse() 41 mac[2] = value >> 8; in imx_get_mac_from_fuse() 42 mac[3] = value; in imx_get_mac_from_fuse() 45 mac[4] = value >> 24; in imx_get_mac_from_fuse() 46 mac[5] = value >> 16; in imx_get_mac_from_fuse() 51 mac[0] = value >> 8; in imx_get_mac_from_fuse() 52 mac[1] = value; in imx_get_mac_from_fuse() 55 mac[2] = value >> 24; in imx_get_mac_from_fuse() [all …]
|
/openbmc/u-boot/cmd/ |
H A D | mac.c | 13 mac, 3, 1, do_mac, 14 "display and program the system ID and MAC addresses in EEPROM", 16 "mac read\n" 18 "mac save\n" 20 "mac id\n" 22 "mac num string\n" 24 "mac errata string\n" 26 "mac date YYMMDDhhmmss\n" 28 "mac ports N\n" 30 "mac X string\n" [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | ep93xx_eth.c | 3 * Cirrus Logic EP93xx ethernet MAC / MII driver. 144 * Reset the EP93xx MAC by twiddling the soft reset bit and spinning until 149 struct mac_regs *mac = GET_REGS(dev); in ep93xx_mac_reset() local 154 value = readl(&mac->selfctl); in ep93xx_mac_reset() 156 writel(value, &mac->selfctl); in ep93xx_mac_reset() 158 while (readl(&mac->selfctl) & SELFCTL_RESET) in ep93xx_mac_reset() 168 struct mac_regs *mac = GET_REGS(dev); in ep93xx_eth_open() local 174 /* Reset the MAC */ in ep93xx_eth_open() 195 writel((uint32_t)priv->tx_dq.base, &mac->txdq.badd); in ep93xx_eth_open() 196 writel((uint32_t)priv->tx_dq.base, &mac->txdq.curadd); in ep93xx_eth_open() [all …]
|
/openbmc/u-boot/board/freescale/mpc8569mds/ |
H A D | README | 36 Setting the correct MAC addresses 38 The command - "mac", is introduced to set on-board system EEPROM in the format 39 defined in board/freescale/common/sys_eeprom.c. we must set all 8 MAC 40 addresses for the MPC8569MDS's 8 Ethernet ports and save it by "mac save" when 42 => mac i NXID /* Set NXID to this EEPROM */ 43 => mac e 01 /* Set Errata, this value is not defined by hardware 45 => mac n a0 /* Set Serial Number. This is not defined by hardware 47 => mac date 090512080000 /* Set the date in YYMMDDhhmmss format */ 49 => mac p 8 /* Set the number of mac ports, it should be 8 */ 50 => mac 0 xx:xx:xx:xx:xx:xx /* xx:xx:xx:xx:xx:xx should be the real mac [all …]
|
/openbmc/google-misc/subprojects/ncsid/src/ |
H A D | net_config.cpp | 57 std::string format_mac(const mac_addr_t& mac) in format_mac() argument 61 snprintf(mac_str, sizeof(mac_str), MAC_FORMAT, mac.octet[0], mac.octet[1], in format_mac() 62 mac.octet[2], mac.octet[3], mac.octet[4], mac.octet[5]); in format_mac() 75 int PhosphorConfig::get_mac_addr(mac_addr_t* mac) in get_mac_addr() argument 77 if (mac == nullptr) in get_mac_addr() 79 stdplus::println(stderr, "mac is nullptr"); in get_mac_addr() 83 // Cache hit: we have stored host MAC. in get_mac_addr() 86 *mac = shared_host_mac_.value(); in get_mac_addr() 102 "Failed to get MAC Addr for Interface {} writing file: {}", in get_mac_addr() 106 std::copy_n(ifr.ifr_addr.sa_data, sizeof(*mac), mac->octet); in get_mac_addr() [all …]
|
H A D | net_config.h | 48 virtual int get_mac_addr(mac_addr_t* mac) = 0; 50 virtual int set_mac_addr(const mac_addr_t& mac) = 0; 63 // Reads the MAC address from socket interface or internal 64 // cache, and store in the mac pointer. 66 int get_mac_addr(mac_addr_t* mac) override; 68 // Sets the MAC address over socket, and update internal 71 int set_mac_addr(const mac_addr_t& mac) override; 88 // The MAC address obtained from NIC. 89 // ncsid will commit this MAC address over DBus to phosphor-networkd 90 // and expect it to be persisted. If actual host MAC address changes or [all …]
|
/openbmc/u-boot/doc/imx/common/ |
H A D | imx6.txt | 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 28 Fuse address for the lower MAC address: 0x620 47 Doing the same for the upper MAC address: 49 Fuse address for the upper MAC address: 0x630 77 Rev. 1, 04/2013" document. For example, for the MAC fuses we have: 80 21B_C620 Value of OTP Bank4 Word2 (MAC Address)(OCOTP_MAC0) 82 21B_C630 Value of OTP Bank4 Word3 (MAC Address)(OCOTP_MAC1) [all …]
|
/openbmc/google-misc/subprojects/nemora-postd/src/ |
H A D | nemora.cpp | 41 bool Nemora::ParseMac(const std::string& mac_addr, MacAddr* mac) in ParseMac() argument 43 int ret = sscanf(mac_addr.c_str(), MAC_FORMAT, mac->octet, mac->octet + 1, in ParseMac() 44 mac->octet + 2, mac->octet + 3, mac->octet + 4, in ParseMac() 45 mac->octet + 5); in ParseMac() 49 bool Nemora::GetMacAddr(MacAddr* mac, const std::string& iface_path) in GetMacAddr() argument 51 if (mac == nullptr) in GetMacAddr() 53 log<level::ERR>("Nemora::GetMacAddr MAC Address is nullptr"); in GetMacAddr() 77 if (!ParseMac(mac_addr, mac)) in GetMacAddr() 79 log<level::ERR>("Nemora::GetMacAddr Failed to parse MAC Address"); in GetMacAddr() 138 MacAddr mac; in UpdateEventData() local [all …]
|
/openbmc/openbmc/meta-google/recipes-google/networking/ |
H A D | gbmc-mac-config.bb | 1 SUMMARY = "Configures MAC addresses on a gBMC system" 9 file://gbmc-mac-config.service \ 10 file://gbmc-mac-config.sh.in \ 24 SYSTEMD_SERVICE:${PN} += "gbmc-mac-config.service" 28 # Maps the MAC address offset from the base address to an interface name 42 sed gbmc-mac-config.sh.in \ 45 >gbmc-mac-config.sh 48 install -m0755 gbmc-mac-config.sh ${D}${libexecdir}/ 51 install -m0644 gbmc-mac-config.service ${D}${systemd_system_unitdir}/
|
/openbmc/u-boot/doc/ |
H A D | README.enetaddr | 2 Ethernet Address (MAC) Handling 5 There are a variety of places in U-Boot where the MAC address is used, parsed, 13 Here are the places where MAC addresses might be stored: 19 Note: this is the preferred way to permanently store MAC addresses 22 Note: these are temporary copies of the MAC address which exist only 27 Note: these are temporary copies of the MAC address only for the 31 Correct flow of setting up the MAC address (summarized): 41 locally-assigned MAC is written to eth_device->enetaddr. 47 Previous behavior had the MAC address always being programmed into hardware 54 If the hardware design mandates that the MAC address is stored in some special [all …]
|
/openbmc/u-boot/board/davinci/da8xxevm/ |
H A D | Kconfig | 13 bool "Use MAC Address" 18 bool "MAC address in SPI Flash" 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/openbmc/meta-phosphor/recipes-phosphor/misc/ |
H A D | phosphor-misc_git.bb | 9 first-boot-set-mac \ 14 PACKAGECONFIG[first-boot-set-mac] = "-Dfirst-boot-set-mac=enabled, -Dfirst-boot-set-mac=disabled" 25 SYSTEMD_SERVICE:${PN}-first-boot-set-mac = "first-boot-set-mac@.service" 39 RDEPENDS:${PN}-first-boot-set-mac += "bash" 44 # first-boot-set-mac 45 FILES:${PN}-first-boot-set-mac = "${bindir}/first-boot-set-mac.sh" 53 … ${@bb.utils.contains('PACKAGECONFIG', 'first-boot-set-mac', '${PN}-first-boot-set-mac', '', d)} \
|
/openbmc/u-boot/drivers/net/mscc_eswitch/ |
H A D | mscc_mac_table.c | 17 /* MAC table entry types. 31 /* Wait for the issued mac table command to be completed, or timeout. in vlan_wait_for_completion() 49 const unsigned char mac[ETH_LEN], int pgid) in mscc_mac_table_add() 53 /* Set the MAC address to handle and the vlan associated in a format in mscc_mac_table_add() 57 mach |= ((u32)mac[0]) << 8; in mscc_mac_table_add() 58 mach |= ((u32)mac[1]) << 0; in mscc_mac_table_add() 59 macl |= ((u32)mac[2]) << 24; in mscc_mac_table_add() 60 macl |= ((u32)mac[3]) << 16; in mscc_mac_table_add() 61 macl |= ((u32)mac[4]) << 8; in mscc_mac_table_add() 62 macl |= ((u32)mac[5]) << 0; in mscc_mac_table_add()
|
/openbmc/openbmc/meta-quanta/meta-common/recipes-quanta/network/usb-network/ |
H A D | usb-network.sh | 3 mac_config="/usr/share/mac-address/config.txt" 13 # bit of the first octet) of the MAC address 15 mac="$(tr -d '\0' < "$1")" 16 first_byte="${mac:0:2}" 19 mac="${first_byte}${mac:2}" 20 echo "$mac" 49 cat $dev_mac_path > functions/ecm.usb0/dev_addr # write device mac address 50 cat $host_mac_path > functions/ecm.usb0/host_addr # write usb mac address
|
/openbmc/u-boot/examples/standalone/ |
H A D | README.smc91111_eeprom | 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 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 20 On the Internet - MAC addresses are very important. Short for Media 23 can happen. This is why U-Boot makes it difficult to change MAC 26 To find out who has a MAC address, or to purchase MAC addresses, goto 48 MAC address is set, this example will do things over serial. 127 3. Setting MAC addresses [all …]
|