diff options
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r-- | include/linux/phy.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 22af8f8f5802..685809835b5c 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h | |||
@@ -327,6 +327,8 @@ struct phy_c45_device_ids { | |||
327 | * c45_ids: 802.3-c45 Device Identifers if is_c45. | 327 | * c45_ids: 802.3-c45 Device Identifers if is_c45. |
328 | * is_c45: Set to true if this phy uses clause 45 addressing. | 328 | * is_c45: Set to true if this phy uses clause 45 addressing. |
329 | * is_internal: Set to true if this phy is internal to a MAC. | 329 | * is_internal: Set to true if this phy is internal to a MAC. |
330 | * has_fixups: Set to true if this phy has fixups/quirks. | ||
331 | * suspended: Set to true if this phy has been suspended successfully. | ||
330 | * state: state of the PHY for management purposes | 332 | * state: state of the PHY for management purposes |
331 | * dev_flags: Device-specific flags used by the PHY driver. | 333 | * dev_flags: Device-specific flags used by the PHY driver. |
332 | * addr: Bus address of PHY | 334 | * addr: Bus address of PHY |
@@ -364,6 +366,7 @@ struct phy_device { | |||
364 | bool is_c45; | 366 | bool is_c45; |
365 | bool is_internal; | 367 | bool is_internal; |
366 | bool has_fixups; | 368 | bool has_fixups; |
369 | bool suspended; | ||
367 | 370 | ||
368 | enum phy_state state; | 371 | enum phy_state state; |
369 | 372 | ||
@@ -565,6 +568,15 @@ struct phy_driver { | |||
565 | void (*write_mmd_indirect)(struct phy_device *dev, int ptrad, | 568 | void (*write_mmd_indirect)(struct phy_device *dev, int ptrad, |
566 | int devnum, int regnum, u32 val); | 569 | int devnum, int regnum, u32 val); |
567 | 570 | ||
571 | /* Get the size and type of the eeprom contained within a plug-in | ||
572 | * module */ | ||
573 | int (*module_info)(struct phy_device *dev, | ||
574 | struct ethtool_modinfo *modinfo); | ||
575 | |||
576 | /* Get the eeprom information from the plug-in module */ | ||
577 | int (*module_eeprom)(struct phy_device *dev, | ||
578 | struct ethtool_eeprom *ee, u8 *data); | ||
579 | |||
568 | struct device_driver driver; | 580 | struct device_driver driver; |
569 | }; | 581 | }; |
570 | #define to_phy_driver(d) container_of(d, struct phy_driver, driver) | 582 | #define to_phy_driver(d) container_of(d, struct phy_driver, driver) |