sfc: Add support for sub-10G speeds
authorBen Hutchings <bhutchings@solarflare.com>
Sat, 13 Dec 2008 05:50:08 +0000 (21:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Dec 2008 05:58:17 +0000 (21:58 -0800)
commit177dfcd80f28f8fbc3e22c2d8b24d21cb86f1d97
treea6e5e9949f388d48ac20c4efbb2811762ac5f9d4
parent356eebb2b3af24cc701823f1e025f04eef333239
sfc: Add support for sub-10G speeds

The SFC4000 has a separate MAC for use at sub-10G speeds.  Introduce
an efx_mac_operations structure with implementations for the two MACs.
Switch between the MACs as necessary.

PHY settings are independent of the MAC, so add get_settings() and
set_settings() to efx_phy_operations.  Also add macs field to indicate
which MACs the PHY is connected to.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
16 files changed:
drivers/net/sfc/Makefile
drivers/net/sfc/efx.c
drivers/net/sfc/enum.h
drivers/net/sfc/ethtool.c
drivers/net/sfc/falcon.c
drivers/net/sfc/falcon.h
drivers/net/sfc/falcon_gmac.c [new file with mode: 0644]
drivers/net/sfc/falcon_hwdefs.h
drivers/net/sfc/falcon_xmac.c
drivers/net/sfc/mac.h
drivers/net/sfc/net_driver.h
drivers/net/sfc/selftest.c
drivers/net/sfc/selftest.h
drivers/net/sfc/sfe4001.c
drivers/net/sfc/tenxpress.c
drivers/net/sfc/xfp_phy.c