Vitaly Bordug | 7c32f47 | 2007-08-10 14:05:16 -0700 | [diff] [blame] | 1 | #ifndef __PHY_FIXED_H |
| 2 | #define __PHY_FIXED_H |
| 3 | |
Vitaly Bordug | 7c32f47 | 2007-08-10 14:05:16 -0700 | [diff] [blame] | 4 | struct fixed_phy_status { |
Vitaly Bordug | a79d8e9 | 2007-12-07 01:51:22 +0300 | [diff] [blame] | 5 | int link; |
| 6 | int speed; |
| 7 | int duplex; |
| 8 | int pause; |
| 9 | int asym_pause; |
Vitaly Bordug | 7c32f47 | 2007-08-10 14:05:16 -0700 | [diff] [blame] | 10 | }; |
| 11 | |
Vitaly Bordug | a79d8e9 | 2007-12-07 01:51:22 +0300 | [diff] [blame] | 12 | #ifdef CONFIG_FIXED_PHY |
| 13 | extern int fixed_phy_add(unsigned int irq, int phy_id, |
| 14 | struct fixed_phy_status *status); |
| 15 | #else |
| 16 | static inline int fixed_phy_add(unsigned int irq, int phy_id, |
| 17 | struct fixed_phy_status *status) |
| 18 | { |
| 19 | return -ENODEV; |
| 20 | } |
| 21 | #endif /* CONFIG_FIXED_PHY */ |
Vitaly Bordug | 7c32f47 | 2007-08-10 14:05:16 -0700 | [diff] [blame] | 22 | |
Vitaly Bordug | a79d8e9 | 2007-12-07 01:51:22 +0300 | [diff] [blame] | 23 | /* |
| 24 | * This function issued only by fixed_phy-aware drivers, no need |
| 25 | * protect it with #ifdef |
| 26 | */ |
| 27 | extern int fixed_phy_set_link_update(struct phy_device *phydev, |
| 28 | int (*link_update)(struct net_device *, |
| 29 | struct fixed_phy_status *)); |
Vitaly Bordug | 7c32f47 | 2007-08-10 14:05:16 -0700 | [diff] [blame] | 30 | |
| 31 | #endif /* __PHY_FIXED_H */ |