diff options
| author | mrg <mrg@NetBSD.org> | 2019-07-31 09:13:16 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2019-07-31 09:13:16 +0000 |
| commit | 64c9e555f72bc31827774ecfaebda656ab3906cd (patch) | |
| tree | a5e35357106ed8691df52d2423a2b1d68ac4d1d0 /sys/modules/Makefile | |
| parent | eae4c267a0d6e4b9aa1ca6f2d5845368d98dee45 (diff) | |
introduce a library of common code / backends to share code between
USB ethernet drivers.
usbnet.h introduces a new set of APIs to provide common solutions
for these driver features:
- USB endpoint pipe handling
- rx and tx chain handling
- generic handlers or support for several struct ifnet callbacks
- MII bus locking
- interrupt handling
- partial autoconf handling: much of attach, and detach/activate
can use common versions directly.
currently, only axen(4) and cdce(4) are converted. the reductions
in these drivers are quite significant: if_cdce.c is reduced from
1000 lines to 320 lines, and if_axen is reduced from 1902 lines
to 1021 lines.
add a "usbnet" module and make the if_axen module depend upon it.
Diffstat (limited to 'sys/modules/Makefile')
| -rw-r--r-- | sys/modules/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 6c242d82340..7b5d10823a7 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.222 2019/06/20 03:31:29 pgoyette Exp $ +# $NetBSD: Makefile,v 1.223 2019/07/31 09:13:16 mrg Exp $ .include <bsd.own.mk> @@ -163,6 +163,7 @@ SUBDIR+= udf SUBDIR+= ufs SUBDIR+= umap SUBDIR+= union +SUBDIR+= usbnet SUBDIR+= usbverbose SUBDIR+= vcoda SUBDIR+= v7fs |
