eth.h 569 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2016 BayLibre, SAS
  4. * Author: Neil Armstrong <narmstrong@baylibre.com>
  5. */
  6. #ifndef __MESON_ETH_H__
  7. #define __MESON_ETH_H__
  8. #include <phy.h>
  9. enum {
  10. /* Use Internal RMII PHY */
  11. MESON_USE_INTERNAL_RMII_PHY = 1,
  12. };
  13. /* Configure the Ethernet MAC with the requested interface mode
  14. * with some optional flags.
  15. */
  16. void meson_eth_init(phy_interface_t mode, unsigned int flags);
  17. /* Generate an unique MAC address based on the HW serial */
  18. int meson_generate_serial_ethaddr(void);
  19. #endif /* __MESON_ETH_H__ */