diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/phy.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 0c5a28520c65..af1a740dafd4 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h | |||
| @@ -634,6 +634,9 @@ struct phy_driver { | |||
| 634 | int (*write_mmd)(struct phy_device *dev, int devnum, u16 regnum, | 634 | int (*write_mmd)(struct phy_device *dev, int devnum, u16 regnum, |
| 635 | u16 val); | 635 | u16 val); |
| 636 | 636 | ||
| 637 | int (*read_page)(struct phy_device *dev); | ||
| 638 | int (*write_page)(struct phy_device *dev, int page); | ||
| 639 | |||
| 637 | /* Get the size and type of the eeprom contained within a plug-in | 640 | /* Get the size and type of the eeprom contained within a plug-in |
| 638 | * module */ | 641 | * module */ |
| 639 | int (*module_info)(struct phy_device *dev, | 642 | int (*module_info)(struct phy_device *dev, |
| @@ -838,6 +841,14 @@ static inline bool phy_is_pseudo_fixed_link(struct phy_device *phydev) | |||
| 838 | */ | 841 | */ |
| 839 | int phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val); | 842 | int phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val); |
| 840 | 843 | ||
| 844 | int phy_save_page(struct phy_device *phydev); | ||
| 845 | int phy_select_page(struct phy_device *phydev, int page); | ||
| 846 | int phy_restore_page(struct phy_device *phydev, int oldpage, int ret); | ||
| 847 | int phy_read_paged(struct phy_device *phydev, int page, u32 regnum); | ||
| 848 | int phy_write_paged(struct phy_device *phydev, int page, u32 regnum, u16 val); | ||
| 849 | int phy_modify_paged(struct phy_device *phydev, int page, u32 regnum, | ||
| 850 | u16 mask, u16 set); | ||
| 851 | |||
| 841 | struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id, | 852 | struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id, |
| 842 | bool is_c45, | 853 | bool is_c45, |
| 843 | struct phy_c45_device_ids *c45_ids); | 854 | struct phy_c45_device_ids *c45_ids); |
