| /openbmc/qemu/hw/net/ |
| H A D | npcm_gmac.c | 136 static void npcm_gmac_soft_reset(NPCMGMACState *gmac) in npcm_gmac_soft_reset() argument 138 memcpy(gmac->regs, npcm_gmac_cold_reset_values, in npcm_gmac_soft_reset() 141 gmac->regs[R_NPCM_DMA_BUS_MODE] &= ~NPCM_DMA_BUS_MODE_SWR; in npcm_gmac_soft_reset() 144 static void gmac_phy_set_link(NPCMGMACState *gmac, bool active) in gmac_phy_set_link() argument 148 gmac->phy_regs[0][MII_BMSR] |= (MII_BMSR_LINK_ST | MII_BMSR_AN_COMP); in gmac_phy_set_link() 150 gmac->phy_regs[0][MII_BMSR] &= ~(MII_BMSR_LINK_ST | MII_BMSR_AN_COMP); in gmac_phy_set_link() 156 NPCMGMACState *gmac = NPCM_GMAC(qemu_get_nic_opaque(nc)); in gmac_can_receive() local 159 if (!(gmac->regs[R_NPCM_GMAC_MAC_CONFIG] & NPCM_GMAC_MAC_CONFIG_RX_EN)) { in gmac_can_receive() 164 if (!(gmac->regs[R_NPCM_DMA_CONTROL] & NPCM_DMA_CONTROL_START_STOP_RX)) { in gmac_can_receive() 175 static void gmac_update_irq(NPCMGMACState *gmac) in gmac_update_irq() argument [all …]
|
| /openbmc/u-boot/doc/device-tree-bindings/net/ |
| H A D | allwinner,sun7i-a20-gmac.txt | 7 - compatible: Should be "allwinner,sun7i-a20-gmac" 9 The tx clock type should be "allwinner,sun7i-a20-gmac-clk" 18 gmac: ethernet@01c50000 { 19 compatible = "allwinner,sun7i-a20-gmac";
|
| H A D | stmmac.txt | 5 For backwards compatibility: "st,spear600-gmac" is also supported. 51 compatible = "st,spear600-gmac";
|
| /openbmc/u-boot/arch/arm/dts/ |
| H A D | rk3399-ficus.dts | 21 clkin_gmac: external-gmac-clock { 29 &gmac { 50 gmac {
|
| H A D | sun50i-h5-orangepi-zero-plus.dts | 51 reg_gmac_3v3: gmac-3v3 { 53 regulator-name = "gmac-3v3";
|
| H A D | sun7i-a20-lamobo-r1.dts | 86 reg_gmac_3v3: gmac-3v3 { 90 regulator-name = "gmac-3v3"; 124 &gmac { 179 ethernet = <&gmac>;
|
| H A D | sun7i-a20-m5.dts | 32 &gmac {
|
| H A D | sun6i-a31-mixtile-loftq.dts | 32 &gmac {
|
| H A D | sun7i-a20-i12-tvbox.dts | 102 reg_gmac_3v3: gmac-3v3 { 106 regulator-name = "gmac-3v3"; 123 &gmac {
|
| H A D | sun7i-a20-bananapro.dts | 86 reg_gmac_3v3: gmac-3v3 { 90 regulator-name = "gmac-3v3"; 115 &gmac {
|
| H A D | sun7i-a20-orangepi.dts | 75 reg_gmac_3v3: gmac-3v3 { 79 regulator-name = "gmac-3v3"; 100 &gmac {
|
| H A D | sun8i-r40-bananapi-m2-ultra.dts | 54 ethernet0 = &gmac; 105 &gmac { 186 regulator-name = "vcc-gmac-phy";
|
| H A D | mt7629-rfb.dts | 27 mediatek,gmac-id = <1>;
|
| H A D | rk3368-lion.dts | 25 ext_gmac: gmac-clk { 65 &gmac {
|
| H A D | sun8i-h3-orangepi-plus2e.dts | 54 reg_gmac_3v3: gmac-3v3 { 56 regulator-name = "gmac-3v3";
|
| H A D | rv1108-evb.dts | 33 &gmac {
|
| H A D | sun7i-a20-orangepi-mini.dts | 91 reg_gmac_3v3: gmac-3v3 { 95 regulator-name = "gmac-3v3"; 124 &gmac {
|
| H A D | sun7i-a20-bananapi-m1-plus.dts | 98 reg_gmac_3v3: gmac-3v3 { 102 regulator-name = "gmac-3v3"; 135 &gmac {
|
| H A D | rk3288-rock2-som.dtsi | 57 ext_gmac: external-gmac-clock { 91 &gmac { 247 gmac {
|
| /openbmc/qemu/hw/arm/ |
| H A D | allwinner-r40.c | 304 object_initialize_child(obj, "gmac", &s->gmac, TYPE_AW_SUN8I_EMAC); in allwinner_r40_init() 306 OBJECT(&s->gmac), "phy-addr"); in allwinner_r40_init() 513 qemu_configure_nic_device(DEVICE(&s->gmac), true, "gmac"); in allwinner_r40_realize() 514 object_property_set_link(OBJECT(&s->gmac), "dma-memory", in allwinner_r40_realize() 516 sysbus_realize(SYS_BUS_DEVICE(&s->gmac), &error_fatal); in allwinner_r40_realize() 517 sysbus_mmio_map(SYS_BUS_DEVICE(&s->gmac), 0, s->memmap[AW_R40_DEV_GMAC]); in allwinner_r40_realize() 518 sysbus_connect_irq(SYS_BUS_DEVICE(&s->gmac), 0, in allwinner_r40_realize()
|
| H A D | npcm7xx.c | 473 for (i = 0; i < ARRAY_SIZE(s->gmac); i++) { in npcm7xx_init() 474 object_initialize_child(obj, "gmac[*]", &s->gmac[i], TYPE_NPCM_GMAC); in npcm7xx_init() 710 QEMU_BUILD_BUG_ON(ARRAY_SIZE(npcm7xx_gmac_addr) != ARRAY_SIZE(s->gmac)); in npcm7xx_realize() 711 QEMU_BUILD_BUG_ON(ARRAY_SIZE(s->gmac) != 2); in npcm7xx_realize() 712 for (i = 0; i < ARRAY_SIZE(s->gmac); i++) { in npcm7xx_realize() 713 SysBusDevice *sbd = SYS_BUS_DEVICE(&s->gmac[i]); in npcm7xx_realize()
|
| /openbmc/u-boot/board/sunxi/ |
| H A D | Makefile | 10 obj-$(CONFIG_SUN7I_GMAC) += gmac.o
|
| /openbmc/qemu/include/hw/arm/ |
| H A D | allwinner-r40.h | 128 AwSun8iEmacState gmac; member
|
| H A D | npcm8xx.h | 103 NPCMGMACState gmac[4]; member
|
| H A D | npcm7xx.h | 108 NPCMGMACState gmac[2]; member
|