mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: ethtool: Add helpers for cable test TDR data
Add helpers for returning raw TDR helpers in netlink messages. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1a644de29f
commit
6b4a0fc106
2 changed files with 100 additions and 1 deletions
|
@ -22,6 +22,10 @@ void ethnl_cable_test_free(struct phy_device *phydev);
|
|||
void ethnl_cable_test_finished(struct phy_device *phydev);
|
||||
int ethnl_cable_test_result(struct phy_device *phydev, u8 pair, u8 result);
|
||||
int ethnl_cable_test_fault_length(struct phy_device *phydev, u8 pair, u32 cm);
|
||||
int ethnl_cable_test_amplitude(struct phy_device *phydev, u8 pair, s16 mV);
|
||||
int ethnl_cable_test_pulse(struct phy_device *phydev, u16 mV);
|
||||
int ethnl_cable_test_step(struct phy_device *phydev, u32 first, u32 last,
|
||||
u32 step);
|
||||
#else
|
||||
static inline int ethnl_cable_test_alloc(struct phy_device *phydev, u8 cmd)
|
||||
{
|
||||
|
@ -46,5 +50,22 @@ static inline int ethnl_cable_test_fault_length(struct phy_device *phydev,
|
|||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static inline int ethnl_cable_test_amplitude(struct phy_device *phydev,
|
||||
u8 pair, s16 mV)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static inline int ethnl_cable_test_pulse(struct phy_device *phydev, u16 mV)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static inline int ethnl_cable_test_step(struct phy_device *phydev, u32 first,
|
||||
u32 last, u32 step)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
#endif /* IS_ENABLED(ETHTOOL_NETLINK) */
|
||||
#endif /* _LINUX_ETHTOOL_NETLINK_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue