| /rk3399_rockchip-uboot/drivers/net/ |
| H A D | sh_eth.c | 58 struct sh_eth_dev *eth = dev->priv; in sh_eth_send() local 59 int port = eth->port, ret = 0, timeout; in sh_eth_send() 60 struct sh_eth_info *port_info = ð->port_info[port]; in sh_eth_send() 89 if (!(sh_eth_read(eth, EDTRR) & EDTRR_TRNS)) in sh_eth_send() 90 sh_eth_write(eth, EDTRR_TRNS, EDTRR); in sh_eth_send() 116 struct sh_eth_dev *eth = dev->priv; in sh_eth_recv() local 117 int port = eth->port, len = 0; in sh_eth_recv() 118 struct sh_eth_info *port_info = ð->port_info[port]; in sh_eth_recv() 150 if (!(sh_eth_read(eth, EDRRR) & EDRRR_R)) in sh_eth_recv() 151 sh_eth_write(eth, EDRRR_R, EDRRR); in sh_eth_recv() [all …]
|
| H A D | ravb.c | 141 struct ravb_priv *eth = dev_get_priv(dev); in ravb_send() local 142 struct ravb_desc *desc = ð->tx_desc[eth->tx_desc_idx]; in ravb_send() 153 if (!(readl(eth->iobase + RAVB_REG_TCCR) & TCCR_TSRQ0)) in ravb_send() 154 setbits_le32(eth->iobase + RAVB_REG_TCCR, TCCR_TSRQ0); in ravb_send() 168 eth->tx_desc_idx = (eth->tx_desc_idx + 1) % (RAVB_NUM_TX_DESC - 1); in ravb_send() 174 struct ravb_priv *eth = dev_get_priv(dev); in ravb_recv() local 175 struct ravb_rxdesc *desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_recv() 200 struct ravb_priv *eth = dev_get_priv(dev); in ravb_free_pkt() local 201 struct ravb_rxdesc *desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_free_pkt() 208 eth->rx_desc_idx = (eth->rx_desc_idx + 1) % RAVB_NUM_RX_DESC; in ravb_free_pkt() [all …]
|
| H A D | bcm-sf2-eth.c | 35 struct eth_info *eth = (struct eth_info *)(dev->priv); in bcm_sf2_eth_init() local 36 struct eth_dma *dma = &(eth->dma); in bcm_sf2_eth_init() 41 rc = eth->mac_init(dev); in bcm_sf2_eth_init() 51 eth->port_num = 0; in bcm_sf2_eth_init() 54 0, dev, eth->phy_interface); in bcm_sf2_eth_init() 56 eth->port[0] = phydev; in bcm_sf2_eth_init() 57 eth->port_num += 1; in bcm_sf2_eth_init() 62 for (i = 0; i < eth->port_num; i++) in bcm_sf2_eth_init() 63 phy_config(eth->port[i]); in bcm_sf2_eth_init() 140 struct eth_info *eth = (struct eth_info *)(dev->priv); in bcm_sf2_eth_write_hwaddr() local [all …]
|
| H A D | fec_mxc.c | 89 static int fec_mdio_read(struct ethernet_regs *eth, uint8_t phyaddr, in fec_mdio_read() argument 101 writel(FEC_IEVENT_MII, ð->ievent); in fec_mdio_read() 106 phy | reg, ð->mii_data); in fec_mdio_read() 110 while (!(readl(ð->ievent) & FEC_IEVENT_MII)) { in fec_mdio_read() 118 writel(FEC_IEVENT_MII, ð->ievent); in fec_mdio_read() 121 val = (unsigned short)readl(ð->mii_data); in fec_mdio_read() 127 static void fec_mii_setspeed(struct ethernet_regs *eth) in fec_mii_setspeed() argument 150 writel(speed << 1 | hold << 8, ð->mii_speed); in fec_mii_setspeed() 151 debug("%s: mii_speed %08x\n", __func__, readl(ð->mii_speed)); in fec_mii_setspeed() 154 static int fec_mdio_write(struct ethernet_regs *eth, uint8_t phyaddr, in fec_mdio_write() argument [all …]
|
| H A D | netconsole.c | 174 struct udevice *eth; in nc_send_packet() local 176 struct eth_device *eth; in nc_send_packet() 185 eth = eth_get_dev(); in nc_send_packet() 186 if (eth == NULL) in nc_send_packet() 190 if (eth_is_active(eth)) in nc_send_packet() 201 if (!eth_is_active(eth)) { in nc_send_packet() 300 struct udevice *eth; in nc_stdio_tstc() local 302 struct eth_device *eth; in nc_stdio_tstc() 311 eth = eth_get_dev(); in nc_stdio_tstc() 312 if (eth_is_active(eth)) in nc_stdio_tstc()
|
| H A D | sandbox-raw.c | 49 struct ethernet_hdr *eth = packet; in sb_eth_raw_send() local 51 if (ntohs(eth->et_protlen) == PROT_ARP) { in sb_eth_raw_send() 110 struct ethernet_hdr *eth = (void *)net_rx_packets[0]; in sb_eth_raw_recv() local 113 memcpy(eth->et_dest, pdata->enetaddr, ARP_HLEN); in sb_eth_raw_recv() 114 memset(eth->et_src, 0x01, ARP_HLEN); in sb_eth_raw_recv() 115 eth->et_protlen = htons(reply_arp ? PROT_ARP : PROT_IP); in sb_eth_raw_recv()
|
| H A D | sandbox.c | 73 struct ethernet_hdr *eth = packet; in sb_eth_send() local 81 if (ntohs(eth->et_protlen) == PROT_ARP) { in sb_eth_send() 92 memcpy(eth_recv->et_dest, eth->et_src, ARP_HLEN); in sb_eth_send() 113 } else if (ntohs(eth->et_protlen) == PROT_IP) { in sb_eth_send() 131 memcpy(eth_recv->et_dest, eth->et_src, in sb_eth_send()
|
| H A D | bcm-sf2-eth-gmac.c | 773 struct eth_info *eth = (struct eth_info *)(dev->priv); in gmac_mac_init() local 774 struct eth_dma *dma = &(eth->dma); in gmac_mac_init() 898 struct eth_info *eth = (struct eth_info *)(dev->priv); in gmac_add() local 899 struct eth_dma *dma = &(eth->dma); in gmac_add() 952 eth->phy_interface = PHY_INTERFACE_MODE_GMII; in gmac_add() 962 eth->miiphy_read = gmac_miiphy_read; in gmac_add() 963 eth->miiphy_write = gmac_miiphy_write; in gmac_add() 965 eth->mac_init = gmac_mac_init; in gmac_add() 966 eth->disable_mac = gmac_disable; in gmac_add() 967 eth->enable_mac = gmac_enable; in gmac_add() [all …]
|
| H A D | sh_eth.h | 657 static inline unsigned long sh_eth_reg_addr(struct sh_eth_dev *eth, in sh_eth_reg_addr() argument 669 return BASE_IO_ADDR + reg_offset[enum_index] + 0x800 * eth->port; in sh_eth_reg_addr() 672 static inline void sh_eth_write(struct sh_eth_dev *eth, unsigned long data, in sh_eth_write() argument 675 outl(data, sh_eth_reg_addr(eth, enum_index)); in sh_eth_write() 678 static inline unsigned long sh_eth_read(struct sh_eth_dev *eth, in sh_eth_read() argument 681 return inl(sh_eth_reg_addr(eth, enum_index)); in sh_eth_read()
|
| H A D | Makefile | 13 obj-$(CONFIG_BCM_SF2_ETH) += bcm-sf2-eth.o 14 obj-$(CONFIG_BCM_SF2_ETH_GMAC) += bcm-sf2-eth-gmac.o 21 obj-$(CONFIG_DM_ETH_PHY) += eth-phy-uclass.o
|
| /rk3399_rockchip-uboot/include/ |
| H A D | usb_ether.h | 115 struct eth_device *eth); 121 struct eth_device *eth); 127 struct eth_device *eth); 133 struct eth_device *eth); 139 struct eth_device *eth);
|
| /rk3399_rockchip-uboot/drivers/usb/eth/ |
| H A D | mcs7830.c | 587 static int mcs7830_init(struct eth_device *eth, bd_t *bd) in mcs7830_init() argument 589 struct ueth_data *dev = eth->priv; in mcs7830_init() 603 static int mcs7830_send(struct eth_device *eth, void *packet, int length) in mcs7830_send() argument 605 struct ueth_data *dev = eth->priv; in mcs7830_send() 618 static int mcs7830_recv(struct eth_device *eth) in mcs7830_recv() argument 621 struct ueth_data *ueth = eth->priv; in mcs7830_recv() 641 static void mcs7830_halt(struct eth_device *eth) in mcs7830_halt() argument 655 static int mcs7830_write_mac(struct eth_device *eth) in mcs7830_write_mac() argument 657 struct ueth_data *ueth = eth->priv; in mcs7830_write_mac() 659 return mcs7830_write_mac_common(ueth->pusb_dev, eth->enetaddr); in mcs7830_write_mac() [all …]
|
| H A D | asix.c | 499 static int asix_init(struct eth_device *eth, bd_t *bd) in asix_init() argument 501 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_init() 503 return asix_init_common(dev, eth->enetaddr); in asix_init() 506 static int asix_send(struct eth_device *eth, void *packet, int length) in asix_send() argument 508 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_send() 513 static int asix_recv(struct eth_device *eth) in asix_recv() argument 515 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_recv() 579 static void asix_halt(struct eth_device *eth) in asix_halt() argument 584 static int asix_write_hwaddr(struct eth_device *eth) in asix_write_hwaddr() argument 586 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_write_hwaddr() [all …]
|
| H A D | asix88179.c | 511 static int asix_init(struct eth_device *eth, bd_t *bd) in asix_init() argument 513 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_init() 519 static int asix_write_hwaddr(struct eth_device *eth) in asix_write_hwaddr() argument 521 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_write_hwaddr() 523 return asix_write_mac(dev, eth->enetaddr); in asix_write_hwaddr() 526 static int asix_send(struct eth_device *eth, void *packet, int length) in asix_send() argument 528 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_send() 534 static int asix_recv(struct eth_device *eth) in asix_recv() argument 536 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_recv() 601 static void asix_halt(struct eth_device *eth) in asix_halt() argument [all …]
|
| H A D | smsc95xx.c | 717 static int smsc95xx_init(struct eth_device *eth, bd_t *bd) in smsc95xx_init() argument 719 struct ueth_data *dev = (struct ueth_data *)eth->priv; in smsc95xx_init() 724 return smsc95xx_init_common(udev, dev, priv, eth->enetaddr); in smsc95xx_init() 727 static int smsc95xx_send(struct eth_device *eth, void *packet, int length) in smsc95xx_send() argument 729 struct ueth_data *dev = (struct ueth_data *)eth->priv; in smsc95xx_send() 734 static int smsc95xx_recv(struct eth_device *eth) in smsc95xx_recv() argument 736 struct ueth_data *dev = (struct ueth_data *)eth->priv; in smsc95xx_recv() 802 static void smsc95xx_halt(struct eth_device *eth) in smsc95xx_halt() argument 807 static int smsc95xx_write_hwaddr(struct eth_device *eth) in smsc95xx_write_hwaddr() argument 809 struct ueth_data *dev = eth->priv; in smsc95xx_write_hwaddr() [all …]
|
| H A D | usb_ether.c | 218 struct eth_device *eth; in probe_valid_drivers() local 227 eth = &usb_eth[usb_max_eth_dev].eth_dev; in probe_valid_drivers() 230 eth)) { in probe_valid_drivers() 240 eth_register(eth); in probe_valid_drivers() 241 if (eth_write_hwaddr(eth, "usbeth", in probe_valid_drivers()
|
| H A D | r8152.c | 1250 static int r8152_init(struct eth_device *eth, bd_t *bd) in r8152_init() argument 1252 struct ueth_data *dev = (struct ueth_data *)eth->priv; in r8152_init() 1258 static int r8152_send(struct eth_device *eth, void *packet, int length) in r8152_send() argument 1260 struct ueth_data *dev = (struct ueth_data *)eth->priv; in r8152_send() 1265 static int r8152_recv(struct eth_device *eth) in r8152_recv() argument 1267 struct ueth_data *dev = (struct ueth_data *)eth->priv; in r8152_recv() 1316 static void r8152_halt(struct eth_device *eth) in r8152_halt() argument 1318 struct ueth_data *dev = (struct ueth_data *)eth->priv; in r8152_halt() 1326 static int r8152_write_hwaddr(struct eth_device *eth) in r8152_write_hwaddr() argument 1328 struct ueth_data *dev = (struct ueth_data *)eth->priv; in r8152_write_hwaddr() [all …]
|
| /rk3399_rockchip-uboot/arch/sandbox/cpu/ |
| H A D | Makefile | 12 obj-$(CONFIG_ETH_SANDBOX_RAW) += eth-raw-os.o 32 $(obj)/eth-raw-os.o: $(src)/eth-raw-os.c FORCE
|
| /rk3399_rockchip-uboot/board/freescale/t4qds/ |
| H A D | Makefile | 10 obj-$(CONFIG_TARGET_T4160QDS) += t4240qds.o eth.o 11 obj-$(CONFIG_TARGET_T4240QDS) += t4240qds.o eth.o
|
| /rk3399_rockchip-uboot/arch/sandbox/dts/ |
| H A D | sandbox.dts | 11 eth5 = "/eth@90000000"; 50 eth@10002000 { 51 compatible = "sandbox,eth"; 56 eth@80000000 { 57 compatible = "sandbox,eth-raw"; 62 eth@90000000 { 63 compatible = "sandbox,eth-raw";
|
| H A D | test.dts | 11 eth0 = "/eth@10002000"; 151 eth@10002000 { 152 compatible = "sandbox,eth"; 157 eth_5: eth@10003000 { 158 compatible = "sandbox,eth"; 164 compatible = "sandbox,eth"; 169 eth@10004000 { 170 compatible = "sandbox,eth";
|
| /rk3399_rockchip-uboot/board/freescale/ls2080aqds/ |
| H A D | Makefile | 9 obj-y += eth.o
|
| /rk3399_rockchip-uboot/board/freescale/p2041rdb/ |
| H A D | Makefile | 12 obj-y += eth.o
|
| /rk3399_rockchip-uboot/board/freescale/ls1046aqds/ |
| H A D | Makefile | 9 obj-y += eth.o
|
| /rk3399_rockchip-uboot/board/freescale/ls1043aqds/ |
| H A D | Makefile | 9 obj-y += eth.o
|