mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02: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:
committed by
David S. Miller
parent
1a644de29f
commit
6b4a0fc106
@@ -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_ */
|
||||
|
Reference in New Issue
Block a user