pcs-lynx.h 425 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
  2. /* Copyright 2020 NXP
  3. * Lynx PCS helpers
  4. */
  5. #ifndef __LINUX_PCS_LYNX_H
  6. #define __LINUX_PCS_LYNX_H
  7. #include <linux/mdio.h>
  8. #include <linux/phylink.h>
  9. struct lynx_pcs {
  10. struct phylink_pcs pcs;
  11. struct mdio_device *mdio;
  12. };
  13. struct lynx_pcs *lynx_pcs_create(struct mdio_device *mdio);
  14. void lynx_pcs_destroy(struct lynx_pcs *pcs);
  15. #endif /* __LINUX_PCS_LYNX_H */