mdio_rt2880.h 1008 B

1234567891011121314151617181920212223
  1. /* This program is free software; you can redistribute it and/or modify
  2. * it under the terms of the GNU General Public License as published by
  3. * the Free Software Foundation; version 2 of the License
  4. *
  5. * This program is distributed in the hope that it will be useful,
  6. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. * GNU General Public License for more details.
  9. *
  10. * Copyright (C) 2009-2015 John Crispin <[email protected]>
  11. * Copyright (C) 2009-2015 Felix Fietkau <[email protected]>
  12. * Copyright (C) 2013-2015 Michael Lee <[email protected]>
  13. */
  14. #ifndef _RALINK_MDIO_RT2880_H__
  15. #define _RALINK_MDIO_RT2880_H__
  16. void rt2880_mdio_link_adjust(struct fe_priv *priv, int port);
  17. int rt2880_mdio_read(struct mii_bus *bus, int phy_addr, int phy_reg);
  18. int rt2880_mdio_write(struct mii_bus *bus, int phy_addr, int phy_reg, u16 val);
  19. void rt2880_port_init(struct fe_priv *priv, struct device_node *np);
  20. #endif