Home
last modified time | relevance | path

Searched refs:gmacdev (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/ethernet/
Deth_numaker.c57 synopGMACdevice *gmacdev; member
72 static void mdio_write(synopGMACdevice *gmacdev, uint32_t addr, uint32_t reg, int data) in mdio_write() argument
74 synopGMAC_write_phy_reg((u32 *)gmacdev->MacBase, addr, reg, data); in mdio_write()
77 static int mdio_read(synopGMACdevice *gmacdev, uint32_t addr, uint32_t reg) in mdio_read() argument
81 synopGMAC_read_phy_reg((u32 *)gmacdev->MacBase, addr, reg, &data); in mdio_read()
85 static int numaker_eth_link_ok(synopGMACdevice *gmacdev) in numaker_eth_link_ok() argument
88 mdio_read(gmacdev, eth_phy_addr, MII_BMSR); in numaker_eth_link_ok()
89 if (mdio_read(gmacdev, eth_phy_addr, MII_BMSR) & BMSR_LSTATUS) { in numaker_eth_link_ok()
95 static int reset_phy(synopGMACdevice *gmacdev) in reset_phy() argument
101 mdio_write(gmacdev, eth_phy_addr, MII_BMCR, BMCR_RESET); in reset_phy()
[all …]