summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/phy.h2
-rw-r--r--include/linux/phy_port.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index b7e769b52e6c..eb7fd533b0e4 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -2455,6 +2455,8 @@ int __phy_hwtstamp_set(struct phy_device *phydev,
struct kernel_hwtstamp_config *config,
struct netlink_ext_ack *extack);
+struct phy_port *phy_get_sfp_port(struct phy_device *phydev);
+
extern const struct bus_type mdio_bus_type;
extern const struct class mdio_bus_class;
diff --git a/include/linux/phy_port.h b/include/linux/phy_port.h
index ce0208fbccf7..550c3f4ab19f 100644
--- a/include/linux/phy_port.h
+++ b/include/linux/phy_port.h
@@ -49,6 +49,7 @@ struct phy_port_ops {
* @active: Indicates if the port is currently part of the active link.
* @is_mii: Indicates if this port is MII (Media Independent Interface),
* or MDI (Media Dependent Interface).
+ * @is_sfp: Indicates if this port drives an SFP cage.
*/
struct phy_port {
struct list_head head;
@@ -67,6 +68,7 @@ struct phy_port {
unsigned int not_described:1;
unsigned int active:1;
unsigned int is_mii:1;
+ unsigned int is_sfp:1;
};
struct phy_port *phy_port_alloc(void);