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/dev/microcode/tools/array2bin.c | |
| 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/dev/microcode/tools/array2bin.c')
0 files changed, 0 insertions, 0 deletions
