ethernet-sgmii.c 889 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * This file is based on code from OCTEON SDK by Cavium Networks.
  3. *
  4. * Copyright (c) 2003-2007 Cavium Networks
  5. *
  6. * This file is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License, Version 2, as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <linux/phy.h>
  11. #include <linux/kernel.h>
  12. #include <linux/netdevice.h>
  13. #include <linux/ratelimit.h>
  14. #include <net/dst.h>
  15. #include <asm/octeon/octeon.h>
  16. #include "ethernet-defines.h"
  17. #include "octeon-ethernet.h"
  18. #include "ethernet-util.h"
  19. #include "ethernet-mdio.h"
  20. #include <asm/octeon/cvmx-helper.h>
  21. #include <asm/octeon/cvmx-gmxx-defs.h>
  22. int cvm_oct_sgmii_open(struct net_device *dev)
  23. {
  24. return cvm_oct_common_open(dev, cvm_oct_link_poll);
  25. }
  26. int cvm_oct_sgmii_init(struct net_device *dev)
  27. {
  28. cvm_oct_common_init(dev);
  29. /* FIXME: Need autoneg logic */
  30. return 0;
  31. }