i2c: gpio: fault-injector: refactor incomplete transfer
[linux/fpc-iii.git] / drivers / staging / octeon / ethernet-sgmii.c
bloba4a8f094e2b44847a34dfbad700b401dc7f36b35
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * This file is based on code from OCTEON SDK by Cavium Networks.
5 * Copyright (c) 2003-2007 Cavium Networks
6 */
8 #include <linux/phy.h>
9 #include <linux/kernel.h>
10 #include <linux/netdevice.h>
11 #include <linux/ratelimit.h>
12 #include <net/dst.h>
14 #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"
21 #include <asm/octeon/cvmx-helper.h>
23 #include <asm/octeon/cvmx-gmxx-defs.h>
25 int cvm_oct_sgmii_open(struct net_device *dev)
27 return cvm_oct_common_open(dev, cvm_oct_link_poll);
30 int cvm_oct_sgmii_init(struct net_device *dev)
32 cvm_oct_common_init(dev);
34 /* FIXME: Need autoneg logic */
35 return 0;