Network driver for PMC-Sierra MSP71xx TSMAC.
Subsystems (3)
PATCH 1/1 Network driver for PMC-Sierra MSP71xx TSMAC.
From: Anoop P A <[email protected]>
This driver add support for triple speed mac (TSMAC) commonly found in MSP71xx family of SoC's. It will make use of phylib.
--- drivers/net/Kconfig | 1 + drivers/net/Makefile | 1 + drivers/net/pmcmsp_tsmac/Kconfig | 36 + drivers/net/pmcmsp_tsmac/Makefile | 5 + drivers/net/pmcmsp_tsmac/pmcmsp_tsmac.c | 4266 +++++++++++++++++++++++ drivers/net/pmcmsp_tsmac/pmcmsp_tsmac.h | 105 + drivers/net/pmcmsp_tsmac/pmcmsp_tsmac_local.h | 924 +++++ drivers/net/pmcmsp_tsmac/pmcmsp_tsmac_mdiobus.c | 205 ++ drivers/net/pmcmsp_tsmac/pmcmsp_tsmac_user.c | 2687 ++++++++++++++ 9 files changed, 8230 insertions(+), 0 deletions(-) create mode 100644 drivers/net/pmcmsp_tsmac/Kconfig create mode 100644 drivers/net/pmcmsp_tsmac/Makefile create mode 100644 drivers/net/pmcmsp_tsmac/pmcmsp_tsmac.c create mode 100644 drivers/net/pmcmsp_tsmac/pmcmsp_tsmac.h create mode 100644 drivers/net/pmcmsp_tsmac/pmcmsp_tsmac_local.h create mode 100644 drivers/net/pmcmsp_tsmac/pmcmsp_tsmac_mdiobus.c create mode 100644 drivers/net/pmcmsp_tsmac/pmcmsp_tsmac_user.c
drivers/net/Kconfig +1 -0
@@ -2531,6 +2531,7 @@ config S6GMAC will be called s6gmac. source "drivers/net/stmmac/Kconfig" +source "drivers/net/pmcmsp_tsmac/Kconfig" config PCH_GBE tristate "PCH Gigabit Ethernet"
drivers/net/Makefile +1 -0
@@ -37,6 +37,7 @@ obj-$(CONFIG_JME) += jme.o obj-$(CONFIG_BE2NET) += benet/ obj-$(CONFIG_VMXNET3) += vmxnet3/ obj-$(CONFIG_BNA) += bna/ +obj-$(CONFIG_PMC_MSP_TSMAC) += pmcmsp_tsmac/ gianfar_driver-objs := gianfar.o \ gianfar_ethtool.o \
drivers/net/pmcmsp_tsmac/Kconfig new file +36 -0
@@ -0,0 +1,36 @@ +config PMC_MSP_TSMAC + depends on MSP_HAS_TSMAC + select PHYLIB + select CRC32 + select MII + tristate "PMC-Sierra MSP Triple-Speed Ethernet Support" + help + This enables support for the integrated 10/100/1000 Ethernet + of PMC-Sierra's MSP7140/MSP7150/MSP82XX SoC. + +if PMC_MSP_TSMAC + +config DESC_ALL_DSPRAM + bool "TX/RX Descriptors in DSPRAM" + depends on DMA_TO_SPRAM + default n + help + Turning this on puts TX/RX descriptors in DSPRAM. Otherwise they are in + DRAM. + +config TSMAC_LINELOOPBACK_FEATURE + bool "lineLoopBack command" + default n + help + Turning this on includes the lineLoopBack command in the driver's proc + interface. Echoing 1 into the lineLoopBack results in all rx packets + being transmitted out the same port. + +config TSMAC_TEST_CMDS + bool "test commands" + default n + help + Turning this on includes the testing commands in the driver's proc + interface. These are used internally by PMC. + +endif
drivers/net/pmcmsp_tsmac/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +# +# Makefile for the PMC MSP TSMAC Ethernet drivers +# +obj-$(CONFIG_PMC_MSP_TSMAC) += pmcmsp_tsmac_mdiobus.o pmcmsp_tsmac.o pmcmsp_tsmac_user.o +
drivers/net/pmcmsp_tsmac/pmcmsp_tsmac.c new file +4266 -0
2,945 lines not on this page · raw message
drivers/net/pmcmsp_tsmac/pmcmsp_tsmac.h new file +105 -0
105 lines not on this page · raw message
drivers/net/pmcmsp_tsmac/pmcmsp_tsmac_local.h new file +924 -0
924 lines not on this page · raw message
drivers/net/pmcmsp_tsmac/pmcmsp_tsmac_mdiobus.c new file +205 -0
205 lines not on this page · raw message
drivers/net/pmcmsp_tsmac/pmcmsp_tsmac_user.c new file +2687 -0
2,687 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.0.4
Part of the diff is not shown here. View the raw message.
drivers/net/pmcmsp_tsmac/pmcmsp_tsmac.c line 71
Quoted 2 lines · On Thu, 24 Feb 2011 17:27:40 +0530 "Anoop P.A" <[email protected]> wrote:
drivers/net/pmcmsp_tsmac/pmcmsp_tsmac.c new file +2
-0+const char version[] ="pmcmsp_tsmac.c:v2.0 01/09/2007, PMC-Sierra\n" ; +const char cardname[] ="pmcmsp_tsmac" ;
All data and functions that are only used by this driver should be marked static.
drivers/net/pmcmsp_tsmac/pmcmsp_tsmac.c line 74
Quoted 2 lines
drivers/net/pmcmsp_tsmac/pmcmsp_tsmac.c new file +2
-0+const char drv_reldate[] ="$Date: 2010/07/15 07:38:59 $" ; +const char drv_file[] = __FILE__;
This is bogus noise.
Quoted 15 lines · On Thu, 24 Feb 2011 17:27:40 +0530 "Anoop P.A" <[email protected]> wrote:
drivers/net/pmcmsp_tsmac/Kconfig new file +15
-0+#if PMC_MSP_TSMAC + +config DESC_ALL_DSPRAM + bool "TX/RX Descriptors in DSPRAM" + depends on DMA_TO_SPRAM + default n + help + Turning this on puts TX/RX descriptors in DSPRAM. Otherwise they are in + DRAM. + +config TSMAC_LINELOOPBACK_FEATURE + bool "lineLoopBack command" + default n + help + Turning this on includes the lineLoopBack command in the driver's proc
drivers/net/pmcmsp_tsmac/Kconfig line 35
Quoted 10 lines
drivers/net/pmcmsp_tsmac/Kconfig new file +10
-0+ interface. Echoing 1 into the lineLoopBack results in all rx packets + being transmitted out the same port. + +config TSMAC_TEST_CMDS + bool "test commands" + default n + help + Turning this on includes the testing commands in the driver's proc + interface. These are used internally by PMC. +
Too many config options. Usually no config options is best, or at most one debug option.
The proc interface for testing should be replaced with debugfs