-
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.
net: hisilicon: add hix5hd2 mac driver
Add support for the hix5hd2 XGMAC 1Gb ethernet device. The controller requires two queues for tx and two queues for rx. Controller fetch buffer from free queue and then push to used queue. Diver should prepare free queue and free buffer from used queue. Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Zhangfei Gao
authored and
David S. Miller
committed
Jun 3, 2014
1 parent
f70e9d8
commit 57c5bc9
Showing
5 changed files
with
1,100 additions
and
0 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# | ||
# HISILICON device configuration | ||
# | ||
|
||
config NET_VENDOR_HISILICON | ||
bool "Hisilicon devices" | ||
default y | ||
depends on ARM | ||
---help--- | ||
If you have a network (Ethernet) card belonging to this class, say Y | ||
and read the Ethernet-HOWTO, available from | ||
<http://www.tldp.org/docs.html#howto>. | ||
|
||
Note that the answer to this question doesn't directly affect the | ||
kernel: saying N will just cause the configurator to skip all | ||
the questions about Hisilicon devices. If you say Y, you will be asked | ||
for your specific card in the following questions. | ||
|
||
if NET_VENDOR_HISILICON | ||
|
||
config HIX5HD2_GMAC | ||
tristate "Hisilicon HIX5HD2 Family Network Device Support" | ||
select PHYLIB | ||
help | ||
This selects the hix5hd2 mac family network device. | ||
|
||
endif # NET_VENDOR_HISILICON |
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,5 @@ | ||
# | ||
# Makefile for the HISILICON network device drivers. | ||
# | ||
|
||
obj-$(CONFIG_HIX5HD2_GMAC) += hix5hd2_gmac.o |
Oops, something went wrong.