emac-phy.h 997 B

123456789101112131415161718192021222324252627282930313233
  1. /* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #ifndef _EMAC_PHY_H_
  13. #define _EMAC_PHY_H_
  14. typedef int (*emac_sgmii_initialize)(struct emac_adapter *adpt);
  15. /** emac_phy - internal emac phy
  16. * @base base address
  17. * @digital per-lane digital block
  18. * @initialize initialization function
  19. */
  20. struct emac_phy {
  21. void __iomem *base;
  22. void __iomem *digital;
  23. emac_sgmii_initialize initialize;
  24. };
  25. struct emac_adapter;
  26. int emac_phy_config(struct platform_device *pdev, struct emac_adapter *adpt);
  27. #endif /* _EMAC_PHY_H_ */