• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/e1000/

Lines Matching defs:phy

87 	struct e1000_phy_info *phy = &hw->phy;
92 if (hw->phy.media_type != e1000_media_type_copper) {
93 phy->type = e1000_phy_none;
96 phy->ops.power_up = e1000_power_up_phy_copper;
97 phy->ops.power_down = e1000_power_down_phy_copper;
100 phy->addr = 1;
101 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT;
102 phy->reset_delay_us = 10000;
103 phy->type = e1000_phy_m88;
106 phy->ops.check_polarity = e1000_check_polarity_m88;
107 phy->ops.commit = e1000_phy_sw_reset_generic;
108 phy->ops.force_speed_duplex = e1000_phy_force_speed_duplex_82543;
109 phy->ops.get_cable_length = e1000_get_cable_length_m88;
110 phy->ops.get_cfg_done = e1000_get_cfg_done_generic;
111 phy->ops.read_reg = (hw->mac.type == e1000_82543)
114 phy->ops.reset = (hw->mac.type == e1000_82543)
117 phy->ops.write_reg = (hw->mac.type == e1000_82543)
120 phy->ops.get_info = e1000_get_phy_info_m88;
128 ret_val = phy->ops.reset(hw);
140 /* Verify phy id */
143 if (phy->id != M88E1000_E_PHY_ID) {
149 if (phy->id != M88E1000_I_PHY_ID) {
204 hw->phy.media_type = e1000_media_type_fiber;
207 hw->phy.media_type = e1000_media_type_copper;
230 (hw->phy.media_type == e1000_media_type_copper)
234 (hw->phy.media_type == e1000_media_type_copper)
239 (hw->phy.media_type == e1000_media_type_copper)
258 (hw->phy.media_type == e1000_media_type_fiber))
276 hw->phy.ops.init_params = e1000_init_phy_params_82543;
520 mdic = (offset | (hw->phy.addr << 5) |
572 mdic = ((PHY_TURNAROUND) | (offset << 2) | (hw->phy.addr << 7) |
775 if (!(hw->phy.ops.write_reg))
782 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0019);
785 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xFFFF);
789 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0000);
803 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg);
807 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg);
821 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0019);
825 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xFFF0);
829 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xFF00);
833 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0x0000);
837 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0000);
888 if (!(hw->phy.ops.get_cfg_done))
891 ret_val = hw->phy.ops.get_cfg_done(hw);
1033 * signal detection. So this should be done before phy setup.
1079 ret_val = hw->phy.ops.reset(hw);
1191 * Checks the phy for link, if link exists, do the following:
1412 if (!(hw->phy.ops.read_reg))
1424 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_SPEC_STATUS, &phy_data);
1488 hw->phy.media_type == e1000_media_type_copper) {
1515 hw->phy.media_type == e1000_media_type_copper) {