summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/net/if_cdce.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r290441:hselasky2015-11-091-0/+1
| | | | | | | | | | Fix for unaligned IP-header. The mbuf length fields must be set before m_adj() is called else m_adj() will not always adjust the mbuf and an unaligned read exception can trigger inside the network stack. This can happen on platforms where unaligned reads are not supported. Adjust a length check to include the 2-byte ethernet alignment while at it.
* Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on ↵sbz2013-01-301-1/+1
| | | | | | | device_method_t arrays Reviewed by: cognet Approved by: cognet
* Mark 'ticks', 'time_second', and 'time_uptime' as volatile to prevent thejhb2013-01-281-1/+3
| | | | | | | compiler from caching their values in tight loops. Reviewed by: bde MFC after: 1 week
* Mechanically substitute flags from historic mbuf allocator withglebius2012-12-041-3/+3
| | | | malloc(9) flags in sys/dev.
* Fix compiler warnings, mostly signed issues,hselasky2012-04-021-11/+13
| | | | | | when USB modules are compiled with WARNS=9. MFC after: 1 weeks
* Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.ed2011-11-071-1/+1
| | | | | | The SYSCTL_NODE macro defines a list that stores all child-elements of that node. If there's no SYSCTL_DECL macro anywhere else, there's no reason why it shouldn't be static.
* - Move all USB device ID arrays into so-called sections,hselasky2011-06-241-2/+8
| | | | | | | | | | | | sorted according to the mode which they support: host, device or dual mode - Add generic tool to extract these data: tools/bus_autoconf Discussed with: imp Suggested by: Robert Millan <rmh@debian.org> PR: misc/157903 MFC after: 14 days
* Remove unneeded includes of <sys/linker_set.h>. Other headers that usejhb2011-01-111-1/+0
| | | | | | it internally contain nested includes. Reviewed by: bde
* USB network (NCM driver):hselasky2010-10-131-24/+118
| | | | | | | | | | | | | - 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)
* Fix setting of the rx_max and tx_max variables. If the expected buffer size isthompsa2010-09-021-4/+4
| | | | | | | greater than 65535 bytes then the CDC driver might not work as expected, which is not likely with the existing USB speeds. Submitted by: Hans Petter Selasky
* Change USB_DEBUG to #ifdef and allow it to be turned off. Previously this hadthompsa2010-04-221-1/+1
| | | | | | the illusion of a tunable setting but was always turned on regardless. MFC after: 1 week
* Fix dwSignature for NCM mode and add extra debug output.thompsa2009-12-091-6/+17
| | | | Submitted by: HPS
* Remove overuse of exclamation marks in kernel printfs, there mere fact athompsa2009-11-261-2/+2
| | | | | | message has been printed is enough to get someones attention. Also remove the line number for DPRINTF/DPRINTFN, it already prints the funtion name and a unique message.
* Correct offset calcluation for the NCM implementation.thompsa2009-10-151-18/+17
| | | | Submitted by: HPS
* Add basic support for USB Network Control Model (NCM) v1.0 to if_cdce.c.thompsa2009-09-281-26/+564
| | | | | | http://www.usb.org/developers/devclass_docs/NCM10.zip Submitted by: Hans Petter Selasky
* - fix CDC ethernet matching order so that the match flags get correct.alfred2009-08-241-3/+3
| | | | | | Reported by: Juergen Lock Submitted by: hps
* Sync to p4thompsa2009-06-271-1/+1
| | | | | | | | | - Add support for devices that handle set and clear stall in hardware. - Add missing get timestamp function - Add more xfer flags Submitted by: Hans Petter Selasky Approved by: re (kib)
* Fix a typeo in the frame len function to unbreak the build, make it shorterthompsa2009-06-231-1/+1
| | | | while I am here.
* - Make struct usb_xfer opaque so that drivers can not access the internalsthompsa2009-06-231-54/+75
| | | | - Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h
* Fix usb2_find_descriptor function name.thompsa2009-06-151-2/+2
|
* s/usb2_/usb_|usbd_/ on all function names for the USB stack.thompsa2009-06-151-38/+38
|
* s/usb2_/usb_/ on all typedefs for the USB stack.thompsa2009-05-291-11/+11
|
* s/usb2_/usb_/ on all C structs for the USB stack.thompsa2009-05-281-21/+21
|
* Rename the usb sysctl tree from hw.usb2.* back to hw.usb.*.thompsa2009-05-211-2/+2
| | | | Submitted by: Hans Petter Selasky
* - rename usb2_mode to usb_mode [1]thompsa2009-05-211-3/+3
| | | | | | - change variable types to use the enum Submitted by: Hans Petter Selasky [1]
* Remove USB shutdown methods from device drivers as its the host controllersthompsa2009-05-051-12/+0
| | | | | | | responsibility to detach the bus. PR: usb/133896 Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159909thompsa2009-04-051-50/+44
| | | | | | | | | | | | | - make usb2_power_mask_t 16-bit - remove "usb2_config_sub" structure from "usb2_config". To compensate for this "usb2_config" has a new field called "usb_mode" which select for which mode the current xfer entry is active. Options are: a) Device mode only b) Host mode only (default-by-zero) c) Both modes. This change was scripted using the following sed script: "s/\.mh\././g". - the standard packet size table in "usb_transfer.c" is now a function, hence the code for the function uses less memory than the table itself. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb @159430thompsa2009-03-201-1/+0
| | | | | | | | | | - Move tunable defines into usb_core.h and dependancy towards usb_defs.h - Leave hardcoded defines in "usb_defs.h". - Allow overriding all tunable defines. - Add more customisable typedefs. - Correct maximum device number. Submitted by: Hans Petter Selasky
* Move m_getcl() into its own function. This also fixes a bug where the m_adj forthompsa2009-03-081-4/+1
| | | | ETHER_ALIGN was having no effect since m_len had not been set.
* Rename the ushub device class back to uhub as it was in the old usb stack,thompsa2009-03-021-1/+1
| | | | | | moused(8) looks for "uhub/ums" to decide if needs to load the module. Reported by: Garrett Cooper
* Move the new USB stack into its new home.thompsa2009-02-231-0/+771
OpenPOWER on IntegriCloud