Skip to contentSkip to conversation

sfc: Add support for SFC9000 family

PATCH New Ben Hutchings 1 participant 1 message Nov 28, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 30/32 sfc: Add support for SFC9000 family

This adds support for the SFC9000 family of 10G Ethernet controllers and LAN-on-motherboard chips, starting with the SFL9021 'Siena' and SFC9020 'Bethpage'.

The SFC9000 family is based on the SFC4000 'Falcon' architecture, but with some significant changes:

- Two ports are associated with two independent PCI functions (except SFC9010)
- Integrated 10GBASE-T PHY(s) (SFL9021/9022)
- MAC, PHY and board peripherals are managed by firmware
- Driver does not require board-specific code
- Firmware supports wake-on-LAN and lights-out management through NC-SI
- IPv6 checksum offload and RSS
- Filtering by MAC address and VLAN (not included in this code)
- PCI SR-IOV (not included in this code)

Credit for this code is largely due to my colleagues at Solarflare:

Guido Barzini
Steve Hodgson
Kieran Mansley
Matthew Slattery
Neil Turton

---
No diff as it's too large for netdev.

Ben.

 drivers/net/sfc/Kconfig       |   13 +-
 drivers/net/sfc/Makefile      |    7 +-
 drivers/net/sfc/bitfield.h    |    2 +
 drivers/net/sfc/efx.c         |   26 +
 drivers/net/sfc/efx.h         |    2 +
 drivers/net/sfc/enum.h        |    2 +
 drivers/net/sfc/ethtool.c     |    3 +
 drivers/net/sfc/mac.h         |    3 +
 drivers/net/sfc/mcdi.c        | 1112 +++++++++++++++++++++++++++++
 drivers/net/sfc/mcdi.h        |  130 ++++
 drivers/net/sfc/mcdi_mac.c    |  152 ++++
 drivers/net/sfc/mcdi_pcol.h   | 1578 +++++++++++++++++++++++++++++++++++++++++
 drivers/net/sfc/mcdi_phy.c    |  597 ++++++++++++++++
 drivers/net/sfc/mtd.c         |  267 +++++++-
 drivers/net/sfc/net_driver.h  |   10 +-
 drivers/net/sfc/nic.c         |   59 ++-
 drivers/net/sfc/nic.h         |   23 +
 drivers/net/sfc/phy.h         |   17 +
 drivers/net/sfc/siena.c       |  604 ++++++++++++++++
 drivers/net/sfc/workarounds.h |    5 +
 20 files changed, 4585 insertions(+), 27 deletions(-)
 create mode 100644 drivers/net/sfc/mcdi.c
 create mode 100644 drivers/net/sfc/mcdi.h
 create mode 100644 drivers/net/sfc/mcdi_mac.c
 create mode 100644 drivers/net/sfc/mcdi_pcol.h
 create mode 100644 drivers/net/sfc/mcdi_phy.c
 create mode 100644 drivers/net/sfc/siena.c