ethernet-sgmii.c 889 Bytes
Newer Older
1 2
/*
 * This file is based on code from OCTEON SDK by Cavium Networks.
3 4 5 6 7 8
 *
 * Copyright (c) 2003-2007 Cavium Networks
 *
 * This file is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License, Version 2, as
 * published by the Free Software Foundation.
9 10
 */

11
#include <linux/phy.h>
12 13
#include <linux/kernel.h>
#include <linux/netdevice.h>
14
#include <linux/ratelimit.h>
15 16 17 18 19 20 21
#include <net/dst.h>

#include <asm/octeon/octeon.h>

#include "ethernet-defines.h"
#include "octeon-ethernet.h"
#include "ethernet-util.h"
22
#include "ethernet-mdio.h"
23

24
#include <asm/octeon/cvmx-helper.h>
25

26
#include <asm/octeon/cvmx-gmxx-defs.h>
27

28
int cvm_oct_sgmii_open(struct net_device *dev)
29
{
30
	return cvm_oct_common_open(dev, cvm_oct_link_poll);
31 32 33 34
}

int cvm_oct_sgmii_init(struct net_device *dev)
{
35 36 37 38 39
	cvm_oct_common_init(dev);

	/* FIXME: Need autoneg logic */
	return 0;
}