您的位置 首页 编程

Embeded linux之网卡驱动

Embeded linux之网卡驱动-数据链路层芯片简称为MAC控制器,物理层芯片简称之为PHY,通常的网卡把MAC和PHY的功能做到了一颗芯片中,但也有一些仅含PHY的”软网卡”,这里就是软网卡的驱动

一、装备菜单

Device Drivers

[*] Network device support  —>

网络设备驱动、网卡驱动

< >     Bonding driver support  

功用:多网卡绑定

具体操作为:将多个以太网通道绑定为一个,也便是两块网卡具有相同的IP地址并且聚组成一个逻辑链路作业,能够用来完成负载均衡或硬件冗余

< >     Dummy net driver support

功用:哑接口网络

运用环境:运用SLIP或PPP传输协议(如ADSL用户)的需求它

具体操作:设置一个虚拟网络。虚拟网络(dummy network)就像网络中的/dev/null。任何发送给虚拟网络的数据都会永久消失,由于它会发往/dev/null。IP地址没有设置。用户能够界说他们的网络相当于/dev/null)

< >     EQL (serial line load balancing) support

功用:串行线路的负载均衡

具体操作:假如有两个MODEM和两条电话线并且用SLIP或PPP协议,该选项能够让您一起运用这两个MODEM以到达双倍速度(在网络的另一端也要有相同的设备)

< >     Generic Media Independent Interface device support 

功用:通用媒体独立接口设备支撑

布景介绍:MII是一种用于最高速度为100Mbit/s以太网的接口。以太网线缆用于连接到PHY ceiver,是一种以太网收发器

< >     Ethernet team driver support (EXPERIMENTAL)  —>

功用:team网卡组支撑

布景介绍:经过虚拟接口安排许多以太网设备

< >     MAC-VLAN support (EXPERIMENTAL) 

功用:答应用户在特定的MAC地址和某个接口上映射数据包

具体操作:依据MAC地址的VLAN,一种依据报文的源MAC地址来确认untagged报文所属VLAN的区分办法

< >     Network console logging support

网络长途指令支撑,长途登选用

留意:内核发送给网络的音讯可任意经过这个特性记载下来。除非记载网络信息对你很重要时才启用它。禁用这个特性会增强功用。

< >     Universal TUN/TAP device driver support

TUN/TAP能够为用户空间供给包的接纳和发送服务,比方能够用来虚拟一张网卡或点对点通道

运用环境:假如用户空间程序期望运用TAP设备

< >     Virtual ethernet pair device

本地以太网地道

Ethernet driver support  —>

不同特定供货商的以太网MAC设备驱动支撑

<*>   hieth gmac family network device support  —> 

海思MAC支撑

[ ] Broadcom devices
< > Calxeda 1G/10G XGMAC Ethernet driver
[ ] Chelsio devices
[ ] Cirrus devices 
< > DM9000 support
< > Dave ethernet support (DNET)
[ ] Faraday devices
[ ] Intel devices
[ ] Marvell devices
[ ] Micrel devices
[*] Microchip devices
< > ENC28J60 support
[ ] National Semi-conductor devices
< > OpenCores 10/100 Mbps Ethernet MAC support
[ ] SEEQ devices
[ ] SMC (SMSC)/Western Digital devices
[ ] STMicroelectronics devices

<*>   PHY Device support and infrastructure  —>

数据链路层芯片简称为MAC控制器,物理层芯片简称之为PHY,一般的网卡把MAC和PHY的功用做到了一颗芯片中,但也有一些仅含PHY的”软网卡”,这儿便是软网卡的驱动

*** MII PHY device drivers *** 
< >Drivers for the AMD PHYs 
< >Drivers for Marvell PHYs 
< >Drivers for Davicom PHYs 
< >Drivers for Quality Semiconductor PHYs 
< >Drivers for the Intel LXT PHYs 
< >Drivers for the Cicada PHYs 
< >Drivers for the Vitesse PHYs 
< >Drivers for SMSC PHYs 
< >Drivers for Broadcom PHYs 
< >Drivers for ICPlus PHYs 
< >Drivers for Realtek PHYs 
< >Drivers for NaTIonal Semiconductor PHYs 
< >Driver for STMicroelectronics STe10Xp PHYs 
< >Driver for LSI ET1011C PHY 
< >Driver for Micrel PHYs 
[ ]Driver for MDIO Bus/PHY emulaTIon with fixed speed/link PHYs 
< >Support for bitbanged MDIO buses

< >   Micrel KS8995MA 5-ports 10/100 managed Ethernet switch

5端口10/100M以太网交换机芯片KS8995MA

< >   PPP (point-to-point protocol) support

点对点协议,PPP现已根本替代SLIP了,ADSL拨号上网方法

< >   SLIP (serial line) support

一个在串行线上(例如电话线)传输IP数据报的TCP/IP协议.

驱动支撑SLIP和CSLIP。SLIP(Serial Line Internet Protocol)是一种用于调制解调器和串口的因特网驱动。PPP现在用来替代SLIP。CSLIP是紧缩的SLIP。

USB Network Adapters  —> 

移动网络适配器

< >USB CATC NetMate-based Ethernet device support (EXPERIMENTAL)

用于10Mbps的USB以太网EL1210A芯片设备
< >USB KLSI KL5USB101-based ethernet device support

KLSI KL5KUSB101B芯片组 
< >USB Pegasus/Pegasus-II based ethernet device support

USB转以太网的适配器/转换器 
< >USB RTL8150 based ethernet device support (EXPERIMENTAL)

USB转以太网驱动 
< >MulTI-purpose USB Networking Framework 
< >Apple iPhone USB Ethernet driver

[*]   Wireless LAN  —>

无线LAN无线局域网

< >Marvell 8xxx Libertas WLAN driver support with thin firmware 
< >Atmel at76c503/at76c505/at76c505a USB cards 
< >USB ZD1201 based Wireless device support 
< >Wireless RNDIS USB support 
< >Realtek 8187 and 8187B USB support 
< >Simulated radio tesTIng tool for mac80211 
[ ]Enable WiFi control function abstraction 
< >Atheros Wireless Cards —> 
< >Broadcom 43xx wireless support (mac80211 stack) 
< >Broadcom 43xx-legacy wireless support (mac80211 stack) 
< >Broadcom 4329/30 wireless cards support 
< >Broadcom IEEE802.11n embedded FullMAC WLAN driver 
< >IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP) 
< >Intel Wireless Multicomm 3200 WiFi driver 
< >Marvell 8xxx Libertas WLAN driver support 
< >Softmac Prism54 support 
< >Ralink driver support —> 
< >Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter 
< >TI wl1251 driver support —> 
< >TI wl12xx driver support —> 
< >ZyDAS ZD1211/ZD1211B USB-wireless support 
< >Marvell WiFi-Ex Driver

*** Enable WiMAX (Networking options) to see the WiMAX drivers ***

全球微波互联接入,也叫802·16无线城域网或802.16

[ ]   Wan interfaces support  —> 

WAN接口

二、对应的Kconfig

driver/net/Kconfig

source “drivers/net/ethernet/Kconfig”

driver/net/ethernet/Kconfig

menuconfig ETHERNET
bool “Ethernet driver support”
depends on NET
default y
—help—
This section contains all the Ethernet device drivers.

if ETHERNET

source “drivers/net/ethernet/hieth-gmac/Kconfig”

endif 

drivers/net/ethernet/hieth-gmac/Kconfig

menuconfig HIETH_GMAC
tristate “hieth gmac family network device support”
depends on ARCH_HI3516A
default y
help
This selects the hieth gmac family network device. The gigabit
switch fabric (GSF) receives and transmits data over two Ethernet
ports at 10/100/1000 Mbit/s in full-duplex or half-duplex mode.
The Ethernet port exchanges data with the CPU port, and supports
the energy efficient Ethernet (EEE) and wake on LAN (WoL) functions.

if HIETH_GMAC

海思装备

endif

三、对应的Makefile

drivers/net/ethernet/hieth-gmac/Makefile

obj-$(CONFIG_HIETH_GMAC) += hieth-gmac.o

hieth-gmac-objs := ctrl.o higmac.o mdio.o forward.o autoeee/autoeee.o autoeee/phy_id_table.o phy_fix.o

 

声明:本文内容来自网络转载或用户投稿,文章版权归原作者和原出处所有。文中观点,不代表本站立场。若有侵权请联系本站删除(kf@86ic.com)https://www.86ic.net/fangan/biancheng/89836.html

为您推荐

联系我们

联系我们

在线咨询: QQ交谈

邮箱: kf@86ic.com

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

返回顶部