/hal_microchip-3.7.0/mpfs/drivers/mss/mss_ethernet_mac/ |
D | vsc8541_phy.c | 57 void MSS_MAC_VSC8541_phy_init(/* mss_mac_instance_t */ const void *v_this_mac, uint8_t phy_addr) in MSS_MAC_VSC8541_phy_init() argument 64 (void)phy_addr; in MSS_MAC_VSC8541_phy_init() 155 MSS_MAC_write_phy_reg(this_mac, phy_addr, 31, 0x0000U); in MSS_MAC_VSC8541_phy_init() 158 MSS_MAC_write_phy_reg(this_mac, phy_addr, 23, (uint16_t)(0x0000)); in MSS_MAC_VSC8541_phy_init() 161 temp_reg = MSS_MAC_read_phy_reg(this_mac, phy_addr, 0); in MSS_MAC_VSC8541_phy_init() 163 MSS_MAC_write_phy_reg(this_mac, phy_addr, 0, temp_reg); in MSS_MAC_VSC8541_phy_init() 168 temp_reg = MSS_MAC_read_phy_reg(this_mac, phy_addr, 0); in MSS_MAC_VSC8541_phy_init() 172 …MSS_MAC_write_phy_reg(this_mac, phy_addr, MII_BMCR, (uint16_t)(BMCR_ANENABLE | BMCR_FULLDPLX | BMC… in MSS_MAC_VSC8541_phy_init() 175 MSS_MAC_write_phy_reg(this_mac, phy_addr, MII_ADVERTISE, (uint16_t)(ADVERTISE_FULL)); in MSS_MAC_VSC8541_phy_init() 178 MSS_MAC_write_phy_reg(this_mac, phy_addr, MII_CTRL1000, (uint16_t)(ADVERTISE_1000FULL)); in MSS_MAC_VSC8541_phy_init() [all …]
|
D | ti_dp83867_phy.c | 53 void MSS_MAC_DP83867_phy_init(/* mss_mac_instance_t */ const void *v_this_mac, uint8_t phy_addr) in MSS_MAC_DP83867_phy_init() argument 57 (void)phy_addr; in MSS_MAC_DP83867_phy_init() 60 MSS_MAC_write_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, MII_TI_CTRL, CTRL_SW_RESET); in MSS_MAC_DP83867_phy_init() 63 phy_reg = MSS_MAC_read_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, MII_TI_PHYCR); in MSS_MAC_DP83867_phy_init() 65 MSS_MAC_write_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, MII_TI_PHYCR, phy_reg); in MSS_MAC_DP83867_phy_init() 110 phy_reg = MSS_MAC_read_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, MII_ADVERTISE); in MSS_MAC_DP83867_phy_set_link_speed() 128 MSS_MAC_write_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, MII_ADVERTISE, phy_reg); in MSS_MAC_DP83867_phy_set_link_speed() 131 phy_reg = MSS_MAC_read_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, MII_CTRL1000); in MSS_MAC_DP83867_phy_set_link_speed() 144 MSS_MAC_write_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, MII_CTRL1000, phy_reg); in MSS_MAC_DP83867_phy_set_link_speed() 164 phy_reg = MSS_MAC_read_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, MII_CTRL1000); in MSS_MAC_DP83867_phy_set_link_speed() [all …]
|
D | vsc8575_phy.c | 112 old_page = MSS_MAC_read_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, 0x1FU); in dump_vsc8575_regs() 114 MSS_MAC_write_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, 0x1FU, page); in dump_vsc8575_regs() 116 … pdata[count] = MSS_MAC_read_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, (uint8_t)count); in dump_vsc8575_regs() 118 MSS_MAC_write_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, 0x1FU, old_page); in dump_vsc8575_regs() 128 old_page = MSS_MAC_read_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, 0x1FU); in dump_vsc8575_regs() 130 MSS_MAC_write_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, 0x1FU, page); in dump_vsc8575_regs() 132 … pdata[count - 0X10] = MSS_MAC_read_phy_reg(this_mac,(uint8_t) this_mac->phy_addr, (uint8_t)count); in dump_vsc8575_regs() 134 MSS_MAC_write_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, 0x1FU, old_page); in dump_vsc8575_regs() 141 old_page = MSS_MAC_read_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, 0x1FU); in dump_vsc8575_regs() 143 MSS_MAC_write_phy_reg(this_mac, (uint8_t)this_mac->phy_addr, 0x1FU, page); in dump_vsc8575_regs() [all …]
|
D | vsc8662_phy.c | 41 phy_base_address = this_mac->phy_addr & 0xFCU; /* Calculate base address for chip */ in vsc8662_post_reset_step_01() 57 phy_base_address = this_mac->phy_addr & 0xFCU; /* Calculate base address for chip */ in vsc8662_enable_bcast_writes() 73 phy_base_address = this_mac->phy_addr & 0xFCU; /* Calculate base address for chip */ in vsc8662_disable_bcast_writes() 90 phy_base_address = this_mac->phy_addr & 0xFCU; /* Calculate base address for chip */ in vsc8662_enable_LED_blink() 116 phy_base_address = this_mac->phy_addr & 0xFCU; /* Calculate base address for chip */ in vsc8662_100tx_1000t_amplitude_fix() 212 phy_base_address = this_mac->phy_addr & 0xFCU; /* Calculate base address for chip */ in vsc8662_10t_performance_fix() 247 void MSS_MAC_VSC8662_phy_init(/* mss_mac_instance_t*/ const void *v_this_mac, uint8_t phy_addr) in MSS_MAC_VSC8662_phy_init() argument 305 MSS_MAC_write_phy_reg(this_mac, phy_addr, 31, 0x0000U); in MSS_MAC_VSC8662_phy_init() 314 MSS_MAC_write_phy_reg(this_mac, phy_addr, 23, (uint16_t)(0x2880U)); in MSS_MAC_VSC8662_phy_init() 317 temp_reg = MSS_MAC_read_phy_reg(this_mac, phy_addr, 0); in MSS_MAC_VSC8662_phy_init() [all …]
|
D | phy.h | 253 void MSS_MAC_VSC8541_phy_init(/* mss_mac_instance_t */ const void *v_this_mac, uint8_t phy_addr); 257 void MSS_MAC_VSC8575_phy_init(/* mss_mac_instance_t */ const void *v_this_mac, uint8_t phy_addr); 261 void MSS_MAC_VSC8662_phy_init(/* mss_mac_instance_t */ const void *v_this_mac, uint8_t phy_addr); 265 void MSS_MAC_DP83867_phy_init(/* mss_mac_instance_t */ const void *v_this_mac, uint8_t phy_addr); 269 void MSS_MAC_NULL_phy_init(/* mss_mac_instance_t */ const void *v_this_mac, uint8_t phy_addr);
|
D | null_phy.c | 33 void MSS_MAC_NULL_phy_init(/* mss_mac_instance_t */ const void *v_this_mac, uint8_t phy_addr) in MSS_MAC_NULL_phy_init() argument 37 (void)phy_addr; in MSS_MAC_NULL_phy_init()
|
D | vsc8575_support.c | 319 …*value = MSS_MAC_read_phy_reg(g_my_mac, (uint8_t)(phy_port + g_my_mac->phy_addr), (uint8_t)phy_reg… in miim_read() 388 …MSS_MAC_write_phy_reg(g_my_mac, (uint8_t)(phy_port + g_my_mac->phy_addr), (uint8_t)phy_reg, value)… in miim_write() 452 …*value = MSS_MAC_read_phy_reg(g_my_mac, (uint8_t)(phy_port + g_my_mac->phy_addr), (uint8_t)phy_reg… in miim_read() 516 …MSS_MAC_write_phy_reg(g_my_mac, (uint8_t)(phy_port + g_my_mac->phy_addr), (uint8_t)phy_reg, value)… in miim_write()
|
D | mss_ethernet_mac_types.h | 127 typedef void (*mss_mac_phy_init_t)(/* mss_mac_instance_t */ const void *this_mac, uint8_t phy_addr); 621 uint32_t phy_addr; /*!< Address of Ethernet PHY on MII management interface. */ member 1312 uint32_t phy_addr; /*!< Address of Ethernet PHY on MII management interface. */ member
|
D | mss_ethernet_mac.c | 263 this_mac->phy_addr = cfg->phy_addr; in MSS_MAC_init() 360 if(MSS_MAC_AUTO_DETECT_PHY_ADDRESS == cfg->phy_addr) in MSS_MAC_init() 362 cfg->phy_addr = probe_phy(); in MSS_MAC_init() 372 this_mac->phy_addr = 0U; in MSS_MAC_init() 375 this_mac->phy_init(this_mac, (uint8_t)this_mac->phy_addr); in MSS_MAC_init() 747 cfg->phy_addr = 0U; in MSS_MAC_cfg_struct_def_init() 750 cfg->phy_addr = PHY_NULL_MDIO_ADDR; in MSS_MAC_cfg_struct_def_init()
|