Skip to contentSkip to conversation

net: add synopsys QoS ethernet driver

PATCH New Nathan Sullivan 2 participants 2 messages Oct 18, 2016 – Nov 1, 2016 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: add synopsys QoS ethernet driver

This NIC is similar to the designware nic, however it has different registers and descriptors, hence the new driver.

---
 drivers/net/Kconfig       |  19 ++
 drivers/net/Makefile      |   1 +
 drivers/net/dwc_eth_qos.c | 773 ++++++++++++++++++++++++++++++++++++++++++++++
 drivers/net/dwc_eth_qos.h | 219 +++++++++++++
 4 files changed, 1012 insertions(+)
 create mode 100644 drivers/net/dwc_eth_qos.c
 create mode 100644 drivers/net/dwc_eth_qos.h
drivers/net/Kconfig +19 -0
index 302c005..7a4dc68 100644
@@ -124,6 +124,25 @@ config ETH_DESIGNWARE
 	  100Mbit and 1 Gbit operation. You must enable CONFIG_PHYLIB to
 	  provide the PHY (physical media interface).
 
+config ETH_DESIGNWARE_QOS
+	bool "Synopsys Designware Ethernet QoS MAC"
+	select PHYLIB
+	help
+	  This MAC is present in SoCs from various vendors. It supports
+	  100Mbit and 1 Gbit operation. You must enable CONFIG_PHYLIB to
+	  provide the PHY (physical media interface).  It is similar to
+	  designware ethernet, but with more features and a different
+	  interface.
+
+config ETH_DESIGNWARE_QOS_FIXED_LINK
+	bool "Fixed 1G link on QoS MAC"
+	default n
+	depends on ETH_DESIGNWARE_QOS
+	help
+	  Select to force the QoS MAC to always link at 1G, full duplex
+	  with no attached phy.  Useful for direct attachment to a
+	  switch.
+
 config ETHOC
 	bool "OpenCores 10/100 Mbps Ethernet MAC"
 	help
drivers/net/Makefile +1 -0
index a448526..c8ba347 100644
@@ -18,6 +18,7 @@ obj-$(CONFIG_CALXEDA_XGMAC) += calxedaxgmac.o
 obj-$(CONFIG_CS8900) += cs8900.o
 obj-$(CONFIG_TULIP) += dc2114x.o
 obj-$(CONFIG_ETH_DESIGNWARE) += designware.o
+obj-$(CONFIG_ETH_DESIGNWARE_QOS) += dwc_eth_qos.o
 obj-$(CONFIG_DRIVER_DM9000) += dm9000x.o
 obj-$(CONFIG_DNET) += dnet.o
 obj-$(CONFIG_E1000) += e1000.o
drivers/net/dwc_eth_qos.c new file +773 -0

773 lines not on this page · raw message

drivers/net/dwc_eth_qos.h new file +219 -0

219 lines not on this page · raw message

Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 net: add synopsys QoS ethernet driver

Quoted 4 lines · Nathan Sullivan

This NIC is similar to the designware nic, however it has different registers and descriptors, hence the new driver.

Quoted 8 lines
---
 drivers/net/Kconfig       |  19 ++
 drivers/net/Makefile      |   1 +
 drivers/net/dwc_eth_qos.c | 773 ++++++++++++++++++++++++++++++++++++++++++++++
 drivers/net/dwc_eth_qos.h | 219 +++++++++++++
 4 files changed, 1012 insertions(+)
 create mode 100644 drivers/net/dwc_eth_qos.c
 create mode 100644 drivers/net/dwc_eth_qos.h

Now that Stephen's driver is acked and will be pulled shortly, please integrate your device support into his driver.

Thanks,
-Joe