From: Sascha Wildner Date: Sat, 12 May 2012 22:29:53 +0000 (+0200) Subject: re(4): Add support for the 8105E found in the Acer Aspire One D257. X-Git-Tag: v3.2.0~950 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/0abd0dff607a998715ee7e74f674864e649dea45 re(4): Add support for the 8105E found in the Acer Aspire One D257. Submitted-by: Francis Gudin --- diff --git a/share/man/man4/re.4 b/share/man/man4/re.4 index e06b781059..f25d3246ab 100644 --- a/share/man/man4/re.4 +++ b/share/man/man4/re.4 @@ -29,14 +29,13 @@ .\" THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD$ -.\" $DragonFly: src/share/man/man4/re.4,v 1.8 2008/10/09 13:45:16 sephe Exp $ .\" .Dd November 2, 2006 .Dt RE 4 .Os .Sh NAME .Nm re -.Nd "RealTek 8139C+/8169/816xS/811xS/8101E PCI/PCIe Ethernet adapter driver" +.Nd "RealTek 8139C+/8169/816xS/811xS/8101E/8105E PCI/PCIe Ethernet adapter driver" .Sh SYNOPSIS .Cd "device miibus" .Cd "device re" @@ -210,7 +209,8 @@ it may not work reliably. The .Nm driver supports RealTek RTL8139C+, RTL8169, RTL816xS, RTL811xS, -and RTL8101E based Fast Ethernet and Gigabit Ethernet adapters including: +RTL8105E, and RTL8101E based Fast Ethernet and Gigabit Ethernet adapters +including: .Pp .Bl -bullet -compact .It diff --git a/sys/dev/netif/re/if_re.c b/sys/dev/netif/re/if_re.c index c3656cbb36..ed306fed31 100644 --- a/sys/dev/netif/re/if_re.c +++ b/sys/dev/netif/re/if_re.c @@ -269,6 +269,10 @@ static const struct re_hwrev re_hwrevs[] = { RE_C_HWCSUM | RE_C_MAC2 | RE_C_AUTOPAD | RE_C_STOP_RXTX | RE_C_FASTE }, + { RE_HWREV_8105E, RE_MACVER_UNKN, ETHERMTU, + RE_C_HWCSUM | RE_C_MAC2 | RE_C_PHYPMGT | RE_C_AUTOPAD | + RE_C_STOP_RXTX | RE_C_FASTE }, + { RE_HWREV_NULL, 0, 0, 0 } }; diff --git a/sys/dev/netif/re/if_rereg.h b/sys/dev/netif/re/if_rereg.h index 11756eb2f2..a962bf0697 100644 --- a/sys/dev/netif/re/if_rereg.h +++ b/sys/dev/netif/re/if_rereg.h @@ -33,7 +33,6 @@ * THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/pci/if_rlreg.h,v 1.42 2004/05/24 19:39:23 jhb Exp $ - * $DragonFly: src/sys/dev/netif/re/if_rereg.h,v 1.24 2008/10/19 06:00:24 sephe Exp $ */ /* @@ -167,6 +166,7 @@ #define RE_HWREV_8168B2 0x38000000 #define RE_HWREV_8168C 0x3C000000 #define RE_HWREV_8168CP 0x3C800000 +#define RE_HWREV_8105E 0x40800000 #define RE_HWREV_8139CPLUS 0x74800000 #define RE_HWREV_8169SC2 0x98000000 #define RE_HWREV_8101E2 0xB4000000