27 #include <linux/kernel.h>
28 #include <linux/netdevice.h>
50 gmx_cfg.
u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index,
interface));
52 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index,
interface), gmx_cfg.
u64);
56 if (!link_info.
s.link_up)
69 gmx_cfg.
u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index,
interface));
71 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index,
interface), gmx_cfg.
u64);
88 if (link_info.
s.link_up) {
90 if (!netif_carrier_ok(dev))
92 if (priv->
queue != -1)
94 (
"%s: %u Mbps %s duplex, port %2d, queue %2d\n",
95 dev->
name, link_info.
s.speed,
96 (link_info.
s.full_duplex) ?
"Full" :
"Half",
100 (
"%s: %u Mbps %s duplex, port %2d, POW\n",
101 dev->
name, link_info.
s.speed,
102 (link_info.
s.full_duplex) ?
"Full" :
"Half",
105 if (netif_carrier_ok(dev))
117 priv->
poll = cvm_oct_xaui_poll;