| .. | .. |
|---|
| 13 | 13 | void dwmac_rk_get_rgmii_delayline(struct stmmac_priv *priv, int *tx_delay, int *rx_delay); |
|---|
| 14 | 14 | int dwmac_rk_get_phy_interface(struct stmmac_priv *priv); |
|---|
| 15 | 15 | |
|---|
| 16 | +#ifdef CONFIG_DWMAC_ROCKCHIP_TOOL |
|---|
| 16 | 17 | int dwmac_rk_create_loopback_sysfs(struct device *dev); |
|---|
| 17 | 18 | int dwmac_rk_remove_loopback_sysfs(struct device *device); |
|---|
| 19 | +#else |
|---|
| 20 | +static inline int dwmac_rk_create_loopback_sysfs(struct device *dev) |
|---|
| 21 | +{ |
|---|
| 22 | + return 0; |
|---|
| 23 | +} |
|---|
| 24 | + |
|---|
| 25 | +static inline int dwmac_rk_remove_loopback_sysfs(struct device *device) |
|---|
| 26 | +{ |
|---|
| 27 | + return 0; |
|---|
| 28 | +} |
|---|
| 29 | +#endif |
|---|
| 18 | 30 | |
|---|
| 19 | 31 | #ifdef CONFIG_DWMAC_RK_AUTO_DELAYLINE |
|---|
| 20 | 32 | int dwmac_rk_get_rgmii_delayline_from_vendor(struct stmmac_priv *priv); |
|---|