ethernet-sgmii.c 736 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * This file is based on code from OCTEON SDK by Cavium Networks.
  4. *
  5. * Copyright (c) 2003-2007 Cavium Networks
  6. */
  7. #include <linux/phy.h>
  8. #include <linux/kernel.h>
  9. #include <linux/netdevice.h>
  10. #include <linux/ratelimit.h>
  11. #include <net/dst.h>
  12. #include <asm/octeon/octeon.h>
  13. #include "ethernet-defines.h"
  14. #include "octeon-ethernet.h"
  15. #include "ethernet-util.h"
  16. #include "ethernet-mdio.h"
  17. #include <asm/octeon/cvmx-helper.h>
  18. #include <asm/octeon/cvmx-gmxx-defs.h>
  19. int cvm_oct_sgmii_open(struct net_device *dev)
  20. {
  21. return cvm_oct_common_open(dev, cvm_oct_link_poll);
  22. }
  23. int cvm_oct_sgmii_init(struct net_device *dev)
  24. {
  25. cvm_oct_common_init(dev);
  26. /* FIXME: Need autoneg logic */
  27. return 0;
  28. }