2 * This file is based on code from OCTEON SDK by Cavium Networks.
4 * Copyright (c) 2003-2007 Cavium Networks
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.
11 #include <linux/phy.h>
12 #include <linux/kernel.h>
13 #include <linux/netdevice.h>
14 #include <linux/ratelimit.h>
17 #include <asm/octeon/octeon.h>
19 #include "ethernet-defines.h"
20 #include "octeon-ethernet.h"
21 #include "ethernet-util.h"
22 #include "ethernet-mdio.h"
24 #include <asm/octeon/cvmx-helper.h>
26 #include <asm/octeon/cvmx-gmxx-defs.h>
28 int cvm_oct_sgmii_open(struct net_device
*dev
)
30 return cvm_oct_common_open(dev
, cvm_oct_link_poll
);
33 int cvm_oct_sgmii_init(struct net_device
*dev
)
35 cvm_oct_common_init(dev
);
37 /* FIXME: Need autoneg logic */