Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Add driver for ASIX AX88178a and AX88179 Ethernet interface.
details: https://anonhg.NetBSD.org/src/rev/97c2f48907d0
branches: trunk
changeset: 790905:97c2f48907d0
user: nonaka <nonaka%NetBSD.org@localhost>
date: Sat Oct 26 09:16:19 2013 +0000
description:
Add driver for ASIX AX88178a and AX88179 Ethernet interface.
Ported from OpenBSD.
diffstat:
distrib/sets/lists/man/mi | 5 +-
distrib/sets/lists/modules/mi | 4 +-
share/man/man4/Makefile | 8 +-
share/man/man4/axen.4 | 95 ++
share/man/man4/rgephy.4 | 3 +-
share/man/man4/usb.4 | 4 +-
sys/arch/amd64/conf/GENERIC | 5 +-
sys/arch/i386/conf/ALL | 5 +-
sys/arch/i386/conf/GENERIC | 5 +-
sys/dev/usb/files.usb | 7 +-
sys/dev/usb/if_axen.c | 1582 ++++++++++++++++++++++++++++++++++++
sys/dev/usb/if_axenreg.h | 306 ++++++
sys/dev/usb/usbdevices.config | 3 +-
sys/modules/Makefile | 3 +-
sys/modules/if_axen/Makefile | 15 +
sys/modules/if_axen/if_axen.ioconf | 10 +
16 files changed, 2043 insertions(+), 17 deletions(-)
diffs (truncated from 2271 to 300 lines):
diff -r cc9e200fb57a -r 97c2f48907d0 distrib/sets/lists/man/mi
--- a/distrib/sets/lists/man/mi Sat Oct 26 08:37:58 2013 +0000
+++ b/distrib/sets/lists/man/mi Sat Oct 26 09:16:19 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1441 2013/10/26 08:23:38 mbalmer Exp $
+# $NetBSD: mi,v 1.1442 2013/10/26 09:16:19 nonaka Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -876,6 +876,7 @@
./usr/share/man/cat4/auvitek.0 man-sys-catman .cat
./usr/share/man/cat4/awi.0 man-sys-catman .cat
./usr/share/man/cat4/axe.0 man-sys-catman .cat
+./usr/share/man/cat4/axen.0 man-sys-catman .cat
./usr/share/man/cat4/az.0 man-sys-catman .cat
./usr/share/man/cat4/azalia.0 man-sys-catman .cat
./usr/share/man/cat4/battery_pmu.0 man-sys-catman .cat
@@ -3863,6 +3864,7 @@
./usr/share/man/html4/auvitek.html man-sys-htmlman html
./usr/share/man/html4/awi.html man-sys-htmlman html
./usr/share/man/html4/axe.html man-sys-htmlman html
+./usr/share/man/html4/axen.html man-sys-htmlman html
./usr/share/man/html4/az.html man-sys-htmlman html
./usr/share/man/html4/azalia.html man-sys-htmlman html
./usr/share/man/html4/battery_pmu.html man-sys-htmlman html
@@ -6614,6 +6616,7 @@
./usr/share/man/man4/auvitek.4 man-sys-man .man
./usr/share/man/man4/awi.4 man-sys-man .man
./usr/share/man/man4/axe.4 man-sys-man .man
+./usr/share/man/man4/axen.4 man-sys-man .man
./usr/share/man/man4/az.4 man-sys-man .man
./usr/share/man/man4/azalia.4 man-sys-man .man
./usr/share/man/man4/battery_pmu.4 man-sys-man .man
diff -r cc9e200fb57a -r 97c2f48907d0 distrib/sets/lists/modules/mi
--- a/distrib/sets/lists/modules/mi Sat Oct 26 08:37:58 2013 +0000
+++ b/distrib/sets/lists/modules/mi Sat Oct 26 09:16:19 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.52 2013/08/11 22:29:03 joerg Exp $
+# $NetBSD: mi,v 1.53 2013/10/26 09:16:19 nonaka Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -78,6 +78,8 @@
./@MODULEDIR@/hfs/hfs.kmod base-kernel-modules kmod
./@MODULEDIR@/if_axe base-kernel-modules kmod
./@MODULEDIR@/if_axe/if_axe.kmod base-kernel-modules kmod
+./@MODULEDIR@/if_axen base-kernel-modules kmod
+./@MODULEDIR@/if_axen/if_axen.kmod base-kernel-modules kmod
./@MODULEDIR@/if_npflog base-kernel-modules kmod
./@MODULEDIR@/if_npflog/if_npflog.kmod base-kernel-modules kmod
./@MODULEDIR@/iic base-kernel-modules kmod
diff -r cc9e200fb57a -r 97c2f48907d0 share/man/man4/Makefile
--- a/share/man/man4/Makefile Sat Oct 26 08:37:58 2013 +0000
+++ b/share/man/man4/Makefile Sat Oct 26 09:16:19 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.605 2013/10/24 21:55:00 mbalmer Exp $
+# $NetBSD: Makefile,v 1.606 2013/10/26 09:16:19 nonaka Exp $
# @(#)Makefile 8.1 (Berkeley) 6/18/93
MAN= aac.4 ac97.4 acardide.4 aceride.4 acphy.4 \
@@ -70,9 +70,9 @@
zero.4 zstty.4 zyd.4
# USB devices
-MAN+= atu.4 aubtfwl.4 aue.4 axe.4 cdce.4 cue.4 ehci.4 kue.4 ohci.4 slhci.4 \
- stuirda.4 u3g.4 uatp.4 uaudio.4 uberry.4 ubsa.4 ubt.4 uchcom.4 ucom.4 \
- ucycom.4 udav.4 udsbr.4 uftdi.4 ugen.4 ugensa.4 uhci.4 uhid.4 \
+MAN+= atu.4 aubtfwl.4 aue.4 axe.4 axen.4 cdce.4 cue.4 ehci.4 kue.4 ohci.4 \
+ slhci.4 stuirda.4 u3g.4 uatp.4 uaudio.4 uberry.4 ubsa.4 ubt.4 uchcom.4 \
+ ucom.4 ucycom.4 udav.4 udsbr.4 uftdi.4 ugen.4 ugensa.4 uhci.4 uhid.4 \
uhidev.4 uhmodem.4 uhso.4 uipaq.4 uirda.4 ukbd.4 ukyopon.4 ulpt.4 \
umass.4 umct.4 umidi.4 umodem.4 ums.4 upgt.4 upl.4 uplcom.4 \
urio.4 url.4 urndis.4 urtw.4 urtwn.4 \
diff -r cc9e200fb57a -r 97c2f48907d0 share/man/man4/axen.4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/share/man/man4/axen.4 Sat Oct 26 09:16:19 2013 +0000
@@ -0,0 +1,95 @@
+.\" $NetBSD: axen.4,v 1.1 2013/10/26 09:16:19 nonaka Exp $
+.\" $OpenBSD: axen.4,v 1.2 2013/10/07 07:18:36 jmc Exp $
+.\"
+.\" Copyright (c) 2013 Yojiro UO <yuo%nui.org@localhost>
+.\"
+.\" Permission to use, copy, modify, and distribute this software for any
+.\" purpose with or without fee is hereby granted, provided that the above
+.\" copyright notice and this permission notice appear in all copies.
+.\"
+.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+.\"
+.Dd $Mdocdate: October 26 2013 $
+.Dt AXEN 4
+.Os
+.Sh NAME
+.Nm axen
+.Nd ASIX Electronics AX88178a/AX88179 10/100/Gigabit USB Ethernet device
+.Sh SYNOPSIS
+.Cd "axen* at uhub? port ?"
+.Cd "rgephy* at mii?"
+.Sh DESCRIPTION
+The
+.Nm
+driver provides support for USB Ethernet adapters based on the ASIX
+Electronics AX88178a and AX88779 USB 2.0 chipsets
+(potentially the AX88779 supports USB 3.0, but there is currently no xhci support in
+.Nx ) ,
+including the following:
+.Pp
+.Bl -tag -width Ds -offset indent -compact
+.It Kurotoshiko GbE-USB3.0
+.It Logitec LAN-GTJU3
+.It Shanghai Donya DN-84327
+.El
+.Pp
+The
+.Nm
+driver supports the following media types:
+.Bl -tag -width "autoselect"
+.It autoselect
+Enable autoselection of the media type and options (this is the default).
+The user can manually override the autoselected mode by adding media
+options to the appropriate
+.Xr ifconfig.if 5
+file.
+.It 10baseT
+Set 10Mbps operation.
+.It 100baseTX
+Set 100Mbps (Fast Ethernet) operation.
+.It 1000baseT
+Set 1000Mbps (Gigabit Ethernet) operation.
+.El
+.Pp
+For more information on configuring this device, see
+.Xr ifconfig 8 .
+.Sh DIAGNOSTICS
+.Bl -diag
+.It "axen%d: watchdog timeout"
+A packet was queued for transmission and a transmit command was
+issued, however the device failed to acknowledge the transmission
+before a timeout expired.
+.El
+.Sh SEE ALSO
+.Xr arp 4 ,
+.Xr mii 4 ,
+.Xr netintro 4 ,
+.Xr rgephy 4 ,
+.Xr usb 4 ,
+.Xr ifconfig.if 5 ,
+.Xr ifconfig 8
+.Sh HISTORY
+The
+.Nm
+device driver first appeared in
+.Ox 5.4 ,
+and in
+.Nx 7.0 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was written by
+.An Yojiro UO Aq Mt yuo%nui.org@localhost
+for
+.Ox
+and ported to
+.Nx
+by
+.An NONAKA Kimihiro Aq Mt nonaka%NetBSD.org@localhost .
diff -r cc9e200fb57a -r 97c2f48907d0 share/man/man4/rgephy.4
--- a/share/man/man4/rgephy.4 Sat Oct 26 08:37:58 2013 +0000
+++ b/share/man/man4/rgephy.4 Sat Oct 26 09:16:19 2013 +0000
@@ -1,6 +1,6 @@
.\" $OpenBSD: rgephy.4,v 1.3 2004/09/30 19:59:25 mickey Exp $
.\"
-.\" $NetBSD: rgephy.4,v 1.1 2006/03/25 17:38:34 xtraeme Exp $
+.\" $NetBSD: rgephy.4,v 1.2 2013/10/26 09:16:19 nonaka Exp $
.\"
.\" Copyright (c) 2004 Peter Valchev <pvalchev%openbsd.org@localhost>
.\"
@@ -30,6 +30,7 @@
driver supports the internal PHY found on Realtek 8169S/8110S
Ethernet adapters.
.Sh SEE ALSO
+.Xr axen 4 ,
.Xr ifmedia 4 ,
.Xr intro 4 ,
.Xr mii 4 ,
diff -r cc9e200fb57a -r 97c2f48907d0 share/man/man4/usb.4
--- a/share/man/man4/usb.4 Sat Oct 26 08:37:58 2013 +0000
+++ b/share/man/man4/usb.4 Sat Oct 26 09:16:19 2013 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: usb.4,v 1.101 2013/05/28 12:24:24 kiyohara Exp $
+.\" $NetBSD: usb.4,v 1.102 2013/10/26 09:16:19 nonaka Exp $
.\"
.\" Copyright (c) 1999-2012 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -127,6 +127,8 @@
ADMtek AN986/ADM8511 Pegasus family 10/100 USB Ethernet device
.It Xr axe 4
ASIX Electronics AX88172/AX88178/AX88772 10/100/Gigabit USB Ethernet device
+.It Xr axen 4
+ASIX Electronics AX88178a/AX88179 10/100/Gigabit USB Ethernet device
.It Xr cdce 4
USB Communication Device Class Ethernet device
.It Xr cue 4
diff -r cc9e200fb57a -r 97c2f48907d0 sys/arch/amd64/conf/GENERIC
--- a/sys/arch/amd64/conf/GENERIC Sat Oct 26 08:37:58 2013 +0000
+++ b/sys/arch/amd64/conf/GENERIC Sat Oct 26 09:16:19 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.380 2013/10/23 17:22:49 matt Exp $
+# $NetBSD: GENERIC,v 1.381 2013/10/26 09:16:20 nonaka Exp $
#
# GENERIC machine description file
#
@@ -22,7 +22,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "GENERIC-$Revision: 1.380 $"
+#ident "GENERIC-$Revision: 1.381 $"
maxusers 64 # estimated number of users
@@ -915,6 +915,7 @@
# USB Ethernet adapters
aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters
axe* at uhub? port ? # ASIX AX88172 based adapters
+axen* at uhub? port ? # ASIX AX88178a/AX88179 based adapters
cdce* at uhub? port ? # CDC, Ethernet Networking Control Model
cue* at uhub? port ? # CATC USB-EL1201A based adapters
kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters
diff -r cc9e200fb57a -r 97c2f48907d0 sys/arch/i386/conf/ALL
--- a/sys/arch/i386/conf/ALL Sat Oct 26 08:37:58 2013 +0000
+++ b/sys/arch/i386/conf/ALL Sat Oct 26 09:16:19 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ALL,v 1.363 2013/09/14 00:42:21 jakllsch Exp $
+# $NetBSD: ALL,v 1.364 2013/10/26 09:16:20 nonaka Exp $
# From NetBSD: GENERIC,v 1.787 2006/10/01 18:37:54 bouyer Exp
#
# ALL machine description file
@@ -17,7 +17,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "ALL-$Revision: 1.363 $"
+#ident "ALL-$Revision: 1.364 $"
maxusers 64 # estimated number of users
@@ -1293,6 +1293,7 @@
# USB Ethernet adapters
aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters
axe* at uhub? port ? # ASIX AX88172 based adapters
+axen* at uhub? port ? # ASIX AX88178a/AX88179 based adapters
cdce* at uhub? port ? # CDC, Ethernet Networking Control Model
cue* at uhub? port ? # CATC USB-EL1201A based adapters
kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters
diff -r cc9e200fb57a -r 97c2f48907d0 sys/arch/i386/conf/GENERIC
--- a/sys/arch/i386/conf/GENERIC Sat Oct 26 08:37:58 2013 +0000
+++ b/sys/arch/i386/conf/GENERIC Sat Oct 26 09:16:19 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.1097 2013/10/23 17:26:08 matt Exp $
+# $NetBSD: GENERIC,v 1.1098 2013/10/26 09:16:20 nonaka Exp $
#
# GENERIC machine description file
#
@@ -22,7 +22,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "GENERIC-$Revision: 1.1097 $"
+#ident "GENERIC-$Revision: 1.1098 $"
maxusers 64 # estimated number of users
@@ -1233,6 +1233,7 @@
# USB Ethernet adapters
aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters
axe* at uhub? port ? # ASIX AX88172 based adapters
+axen* at uhub? port ? # ASIX AX88178a/AX88179 based adapters
cdce* at uhub? port ? # CDC, Ethernet Networking Control Model
cue* at uhub? port ? # CATC USB-EL1201A based adapters
kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters
diff -r cc9e200fb57a -r 97c2f48907d0 sys/dev/usb/files.usb
--- a/sys/dev/usb/files.usb Sat Oct 26 08:37:58 2013 +0000
+++ b/sys/dev/usb/files.usb Sat Oct 26 09:16:19 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files.usb,v 1.129 2013/05/28 12:03:26 kiyohara Exp $
+# $NetBSD: files.usb,v 1.130 2013/10/26 09:16:20 nonaka Exp $
#
# Config file and device description for machine-independent USB code.
# Included by ports that need it. Ports that use it must provide
@@ -284,6 +284,11 @@
attach axe at usbdevif
file dev/usb/if_axe.c axe
Home |
Main Index |
Thread Index |
Old Index