freebsd-skq/sys/dev/usb
Gleb Smirnoff 7a79cebfba Replay r286410. Change KPI of how device drivers that provide wireless
connectivity interact with the net80211 stack.

Historical background: originally wireless devices created an interface,
just like Ethernet devices do. Name of an interface matched the name of
the driver that created. Later, wlan(4) layer was introduced, and the
wlanX interfaces become the actual interface, leaving original ones as
"a parent interface" of wlanX. Kernelwise, the KPI between net80211 layer
and a driver became a mix of methods that pass a pointer to struct ifnet
as identifier and methods that pass pointer to struct ieee80211com. From
user point of view, the parent interface just hangs on in the ifconfig
list, and user can't do anything useful with it.

Now, the struct ifnet goes away. The struct ieee80211com is the only
KPI between a device driver and net80211. Details:

- The struct ieee80211com is embedded into drivers softc.
- Packets are sent via new ic_transmit method, which is very much like
  the previous if_transmit.
- Bringing parent up/down is done via new ic_parent method, which notifies
  driver about any changes: number of wlan(4) interfaces, number of them
  in promisc or allmulti state.
- Device specific ioctls (if any) are received on new ic_ioctl method.
- Packets/errors accounting are done by the stack. In certain cases, when
  driver experiences errors and can not attribute them to any specific
  interface, driver updates ic_oerrors or ic_ierrors counters.

Details on interface configuration with new world order:
- A sequence of commands needed to bring up wireless DOESN"T change.
- /etc/rc.conf parameters DON'T change.
- List of devices that can be used to create wlan(4) interfaces is
  now provided by net.wlan.devices sysctl.

Most drivers in this change were converted by me, except of wpi(4),
that was done by Andriy Voskoboinyk. Big thanks to Kevin Lo for testing
changes to at least 8 drivers. Thanks to pluknet@, Oliver Hartmann,
Olivier Cochard, gjb@, mmoll@, op@ and lev@, who also participated in
testing.

Reviewed by:	adrian
Sponsored by:	Netflix
Sponsored by:	Nginx, Inc.
2015-08-27 08:56:39 +00:00
..
controller Fixes for HIGH speed ISOCHRONOUS traffic. HS ISOCHRONOUS traffic at 2015-08-15 12:06:15 +00:00
gadget
input
misc Import ugold driver from OpenBSD supporting digital USB temperature 2015-06-11 15:23:47 +00:00
net - Fix compilation after r285909 with USB_DEBUG defined. 2015-07-27 14:43:14 +00:00
quirk Add new USB quirk. 2015-06-07 15:47:58 +00:00
serial Return the current ftdi bitbang mode with the UFTDIIOC_GET_BITMODE ioctl. 2015-08-06 19:47:04 +00:00
storage
template Fix spelling. 2015-06-03 15:43:55 +00:00
video Put recycle pointer in own memory area which is not mmap'able. 2015-05-10 12:45:21 +00:00
wlan Replay r286410. Change KPI of how device drivers that provide wireless 2015-08-27 08:56:39 +00:00
ufm_ioctl.h
uftdiio.h Return the current ftdi bitbang mode with the UFTDIIOC_GET_BITMODE ioctl. 2015-08-06 19:47:04 +00:00
uled_ioctl.h
usb_bus.h Improve the realtime properties of USB transfers for embedded systems 2015-08-14 12:57:53 +00:00
usb_busdma.c
usb_busdma.h
usb_cdc.h
usb_compat_linux.c
usb_compat_linux.h
usb_controller.h
usb_core.c Remove no longer used allocation type. 2015-03-17 11:07:59 +00:00
usb_core.h
usb_debug.c
usb_debug.h
usb_dev.c Don't wait forever for USB data to be flushed. 2015-06-05 06:06:07 +00:00
usb_dev.h
usb_device.c Improve the realtime properties of USB transfers for embedded systems 2015-08-14 12:57:53 +00:00
usb_device.h
usb_dynamic.c
usb_dynamic.h
usb_endian.h
usb_error.c
usb_freebsd_loader.h
usb_freebsd.h
usb_generic.c
usb_generic.h
usb_handle_request.c
usb_hid.c
usb_hub.c Improve the realtime properties of USB transfers for embedded systems 2015-08-14 12:57:53 +00:00
usb_hub.h
usb_if.m
usb_ioctl.h Add USB MIDI template for USB device side mode. 2015-06-01 11:24:34 +00:00
usb_lookup.c
usb_mbuf.c
usb_mbuf.h
usb_msctest.c Add support for DYMO LabelWriter PnP. 2015-05-07 12:54:27 +00:00
usb_msctest.h Add support for DYMO LabelWriter PnP. 2015-05-07 12:54:27 +00:00
usb_parse.c
usb_pci.h
usb_pf.c Fix race in USB PF which can happen if we stop tracing exactly when 2015-08-15 09:00:36 +00:00
usb_pf.h
usb_process.c
usb_process.h Improve the realtime properties of USB transfers for embedded systems 2015-08-14 12:57:53 +00:00
usb_request.c
usb_request.h
usb_transfer.c Fix race in USB PF which can happen if we stop tracing exactly when 2015-08-15 09:00:36 +00:00
usb_transfer.h
usb_util.c
usb_util.h
usb.h Add definition of the ISOCHRONOUS endpoint usage bits. 2015-03-25 13:32:27 +00:00
usbdevs Import ugold driver from OpenBSD supporting digital USB temperature 2015-06-11 15:23:47 +00:00
usbdi_util.h
usbdi.h Improve the realtime properties of USB transfers for embedded systems 2015-08-14 12:57:53 +00:00
usbhid.h