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)
70 gmx_cfg.
u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index,
interface));
72 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index,
interface), gmx_cfg.
u64);
89 if (link_info.
s.link_up) {
91 if (!netif_carrier_ok(dev))
93 if (priv->
queue != -1)
95 (
"%s: %u Mbps %s duplex, port %2d, queue %2d\n",
96 dev->
name, link_info.
s.speed,
97 (link_info.
s.full_duplex) ?
"Full" :
"Half",
101 (
"%s: %u Mbps %s duplex, port %2d, POW\n",
102 dev->
name, link_info.
s.speed,
103 (link_info.
s.full_duplex) ?
"Full" :
"Half",
106 if (netif_carrier_ok(dev))
118 priv->
poll = cvm_oct_sgmii_poll;