Port rue(4) from FreeBSD:
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 19 Sep 2005 02:53:27 +0000 (02:53 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 19 Sep 2005 02:53:27 +0000 (02:53 +0000)
commit3c374c15a1efff681945b6cbac3e94d20bd5ae59
tree7fcedf3e9707c2bb98629cf841f4e821d97c2286
parent3dd1d9ddd9645c7878512d74c0b1d7d71a210e1f
Port rue(4) from FreeBSD:
dev/usb/if_rue.c rev 1.14, 1.20
dev/usb/if_ruereg.h rev 1.3
dev/mii/ruephy.c rev 1.1.4.1
dev/mii/ruephyreg.h rev 1.1.4.1
modules/rue/Makefile rev 1.2

This driver supports:
RealTek RTL8150 based USB ethernet devices
- Melco LUA-KTX
- GREEN HOUSE GH-USB100B
- Billionton ThumbLAN USBKR2-100B

Changes to FreeBSD version:
- use hw.rue as sysctl node instead of hw.usb.rue
- cleanup rue_attach() code path
- RUE_{LOCK, UNLOCK}() ==> crit_{enter, exit}()
- get rid of qdat
- nuke rue_softc.{rue_info, rue_unit}
- use callout_*()
- use m_getcl() instead of MGETHDR() and MCLGET()

Thanks Shunsuke Akiyama <akiyama@FreeBSD.org> and others for rue(4)

Lack of rue(4) in our base was first noticed by swilder,
thanks him for his reminding

Approved-by: dillon
Tested-by: me (with a Billionton ThumbLAN USBKR2-100B)
12 files changed:
sys/conf/files
sys/config/GENERIC
sys/config/LINT
sys/dev/netif/Makefile
sys/dev/netif/mii_layer/Makefile
sys/dev/netif/mii_layer/ruephy.c [new file with mode: 0644]
sys/dev/netif/mii_layer/ruephyreg.h [new file with mode: 0644]
sys/dev/netif/rue/Makefile [new file with mode: 0644]
sys/dev/netif/rue/if_rue.c [new file with mode: 0644]
sys/dev/netif/rue/if_ruereg.h [new file with mode: 0644]
sys/i386/conf/GENERIC
sys/i386/conf/LINT