sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
show more ...
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.Special thanks to Wind River for providing access to "The Duke ofHighlander" tool: an older (2014) run over FreeBSD tree was useful as astarting point.
Add Prolific PL27A1 USB 3.0 Host-Host device to udbp(4).Tested with a Plugable cable in VirtualBox against Linux 4.11.MFC after: 2 weeks
Add support for ThingM blink(1) notification LED to uled(4).
Allow udbp(4) to claim Belkin "Windows Easy Transfer Cable" for Netgraph use.These have been tested back-to-back with Linux 3.x and a similar attachmentat the other end; a CDC EEM-like encapsulati
Allow udbp(4) to claim Belkin "Windows Easy Transfer Cable" for Netgraph use.These have been tested back-to-back with Linux 3.x and a similar attachmentat the other end; a CDC EEM-like encapsulation can be used for emulatedEthernet over udbp(4) with ng_ether.
dev/usb: minor spelling fixes in comments.No functional change.Reviewed by: hselasky
Create a USB_PNP_INFO and use it to export the existing PNPtables. Some drivers needed some slight re-arrangement of declarationsto accommodate this. Change the USB pnp tables slightly to allowbet
Create a USB_PNP_INFO and use it to export the existing PNPtables. Some drivers needed some slight re-arrangement of declarationsto accommodate this. Change the USB pnp tables slightly to allowbetter compatibility with the system by moving linux driver info fromstart of each entry to the end. All other PNP tables in the systemhave the per-device flags and such at the end of the elements ratherthat at the beginning.Differential Review: https://reviews.freebsd.org/D3458
Import ugold driver from OpenBSD supporting digital USB temperaturemeters. The driver is currently not part of the default kernel build.Obtained from: OpenBSDMFC after: 2 weeks
In order to reduce use of M_EXT outside of the mbuf allocator andsocket-buffer implementations, introduce a return value for MCLGET()(and m_cljget() that underlies it) to allow the caller to avoid
In order to reduce use of M_EXT outside of the mbuf allocator andsocket-buffer implementations, introduce a return value for MCLGET()(and m_cljget() that underlies it) to allow the caller to avoid testingM_EXT itself. Update all callers to use the return value.With this change, very few network device drivers remain aware ofM_EXT; the primary exceptions lie in mbuf-chain pretty printers fordebugging, and in a few cases, custom mbuf and cluster allocationimplementations.NB: This is a difficult-to-test change as it touches many drivers forwhich I don't have physical devices. Instead we've gone for intensivereview, but further post-commit review would definitely be appreciatedto spot errors where changes could not easily be made mechanically,but were largely mechanical in nature.Differential Revision: https://reviews.freebsd.org/D1440Reviewed by: adrian, bz, gnnSponsored by: EMC / Isilon Storage Division
Make a bunch of USB debug SYSCTLs tunable, so that their value(s) canbe set before the USB device(s) are probed.
Fix some extra whitespace noticed when reviewing git diffs.
The USB LED driver for the Dream Cheeky WebMail Notifier.Reviewed by: hselasky
Add new USB ID.MFC after: 1 weekSubmitted by: Bruce Simpson <[email protected]>
Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on device_method_t arraysReviewed by: cognetApproved by: cognet
Mechanically substitute flags from historic mbuf allocator withmalloc(9) flags in sys/dev.
Fix compiler warnings, mostly signed issues,when USB modules are compiled with WARNS=9.MFC after: 1 weeks
Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.The SYSCTL_NODE macro defines a list that stores all child-elements ofthat node. If there's no SYSCTL_DECL macro anywhere else,
Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.The SYSCTL_NODE macro defines a list that stores all child-elements ofthat node. If there's no SYSCTL_DECL macro anywhere else, there's noreason why it shouldn't be static.
- Export more USB device ID's.MFC after: 3 days
Remove unneeded includes of <sys/linker_set.h>. Other headers that useit internally contain nested includes.Reviewed by: bde
Add missing MODULE_VERSION() definitions, this resolves problems aroundduplicate module loads.PR: usb/125736Submitted by: danger, mmReviewed by: hselasky
Change USB_DEBUG to #ifdef and allow it to be turned off. Previously this hadthe illusion of a tunable setting but was always turned on regardless.MFC after: 1 week
- FIFO's are always opened separately in read and write direction even if the actual device is opened for read and write. Fix fflags check so that the UFM and URIO drivers work.Repor
- FIFO's are always opened separately in read and write direction even if the actual device is opened for read and write. Fix fflags check so that the UFM and URIO drivers work.Reported by: Krassimir SlavchevSubmitted by: hps
- Make struct usb_xfer opaque so that drivers can not access the internals- Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h
s/usb2_/usb_|usbd_/ on all function names for the USB stack.
s/usb2_/usb_/ on all typedefs for the USB stack.
12