diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2010-10-13 22:04:55 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2010-10-13 22:04:55 +0000 |
commit | 7e05daae8f4a6cd5b8d952cc7310574429e2ab33 (patch) | |
tree | 95b964ac3dbb1c2e3d08f87cfad05c2981acd801 /sys/dev/usb/usb_cdc.h | |
parent | d4f5240abd4fc94ddf521ce8a60e0c763b4ddf31 (diff) | |
download | src-7e05daae8f4a6cd5b8d952cc7310574429e2ab33.tar.gz src-7e05daae8f4a6cd5b8d952cc7310574429e2ab33.zip |
USB network (NCM driver):
- correct the ethernet payload remainder which
must be post-offseted by -14 bytes instead of
0 bytes. This is not very clearly defined in the
NCM specification.
- add development feature about limiting the
maximum datagram count in each NCM payload.
- zero-pad alignment data
- add TX-interval tuning sysctl
Approved by: thompsa (mentor)
Notes
Notes:
svn path=/head/; revision=213809
Diffstat (limited to 'sys/dev/usb/usb_cdc.h')
-rw-r--r-- | sys/dev/usb/usb_cdc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_cdc.h b/sys/dev/usb/usb_cdc.h index c5a13f66509a..b8f59faeca6a 100644 --- a/sys/dev/usb/usb_cdc.h +++ b/sys/dev/usb/usb_cdc.h @@ -241,6 +241,7 @@ struct usb_ncm_func_descriptor { #define UCDC_NCM_CAP_ENCAP 0x04 #define UCDC_NCM_CAP_MAX_DATA 0x08 #define UCDC_NCM_CAP_CRCMODE 0x10 +#define UCDC_NCM_CAP_MAX_DGRAM 0x20 } __packed; /* Communications interface specific class request codes */ @@ -276,7 +277,7 @@ struct usb_ncm_parameters { uWord wNdpOutDivisor; uWord wNdpOutPayloadRemainder; uWord wNdpOutAlignment; - uWord wReserved26; + uWord wNtbOutMaxDatagrams; } __packed; /* Communications interface specific class notification codes */ |