staging: wilc1000: remove unnecessary inner braces
[deliverable/linux.git] / drivers / staging / octeon / ethernet-xaui.c
CommitLineData
67620987
AK
1/*
2 * This file is based on code from OCTEON SDK by Cavium Networks.
80ff0fd3
DD
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.
67620987
AK
9 */
10
ec3a2207 11#include <linux/phy.h>
80ff0fd3
DD
12#include <linux/kernel.h>
13#include <linux/netdevice.h>
7a2eaf93 14#include <linux/ratelimit.h>
80ff0fd3
DD
15#include <net/dst.h>
16
17#include <asm/octeon/octeon.h>
18
19#include "ethernet-defines.h"
20#include "octeon-ethernet.h"
80ff0fd3 21#include "ethernet-util.h"
ec3a2207 22#include "ethernet-mdio.h"
80ff0fd3 23
af866496 24#include <asm/octeon/cvmx-helper.h>
80ff0fd3 25
af866496 26#include <asm/octeon/cvmx-gmxx-defs.h>
80ff0fd3 27
ec3a2207
DD
28int cvm_oct_xaui_open(struct net_device *dev)
29{
a8d2e817 30 return cvm_oct_common_open(dev, cvm_oct_link_poll, true);
ec3a2207
DD
31}
32
80ff0fd3
DD
33int cvm_oct_xaui_init(struct net_device *dev)
34{
35 struct octeon_ethernet *priv = netdev_priv(dev);
38064eb1 36
80ff0fd3 37 cvm_oct_common_init(dev);
f6ed1b3b 38 if (!octeon_is_simulation() && priv->phydev == NULL)
a8d2e817 39 priv->poll = cvm_oct_link_poll;
80ff0fd3
DD
40
41 return 0;
42}
This page took 0.504216 seconds and 5 git commands to generate.