phylib: Support attaching to generic 10g driver
[firefly-linux-kernel-4.4.55.git] / include / linux / phy.h
index a9685b109049979c9029ee9f985a6e2dfd570512..565188ca328f31841a4c8b718db2c4fd08238278 100644 (file)
@@ -588,6 +588,8 @@ int phy_resume(struct phy_device *phydev);
 struct phy_device *phy_attach(struct net_device *dev, const char *bus_id,
                              phy_interface_t interface);
 struct phy_device *phy_find_first(struct mii_bus *bus);
+int phy_attach_direct(struct net_device *dev, struct phy_device *phydev,
+                     u32 flags, phy_interface_t interface);
 int phy_connect_direct(struct net_device *dev, struct phy_device *phydev,
                       void (*handler)(struct net_device *),
                       phy_interface_t interface);