-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: net: xgene-v2: Add transmit and receive
This patch adds, - Transmit - Transmit completion poll - Receive poll - NAPI handler and enables the driver. Signed-off-by: Iyappan Subramanian <isubramanian@apm.com> Signed-off-by: Keyur Chudgar <kchudgar@apm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Iyappan Subramanian
authored and
David S. Miller
committed
Mar 9, 2017
1 parent
3b3f9a7
commit b105bcd
Showing
6 changed files
with
267 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
source "drivers/net/ethernet/apm/xgene/Kconfig" | ||
source "drivers/net/ethernet/apm/xgene-v2/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
# | ||
|
||
obj-$(CONFIG_NET_XGENE) += xgene/ | ||
obj-$(CONFIG_NET_XGENE_V2) += xgene-v2/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
config NET_XGENE_V2 | ||
tristate "APM X-Gene SoC Ethernet-v2 Driver" | ||
depends on HAS_DMA | ||
depends on ARCH_XGENE || COMPILE_TEST | ||
help | ||
This is the Ethernet driver for the on-chip ethernet interface | ||
which uses a linked list of DMA descriptor architecture (v2) for | ||
APM X-Gene SoCs. | ||
|
||
To compile this driver as a module, choose M here. This module will | ||
be called xgene-enet-v2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# | ||
# Makefile for APM X-Gene Ethernet v2 driver | ||
# | ||
|
||
xgene-enet-v2-objs := main.o mac.o enet.o ring.o | ||
obj-$(CONFIG_NET_XGENE_V2) += xgene-enet-v2.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters