History log of /src/sys/dev/usb/umodem_common.c |
Revision | | Date | Author | Comments |
1.36 |
| 31-Jul-2022 |
mlelstv | Compute a unique port number from interface index.
|
1.35 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.34 |
| 24-Apr-2021 |
thorpej | branches: 1.34.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.33 |
| 12-Apr-2020 |
simonb | branches: 1.33.4; Add uxrcom driver for Exar XR21V141x USB serial adapters. Based in part on the OpenBSD single-port XR21V1410 uxrcom driver, but adds support for multi-port chipsets and uses the common umodem framework instead of being a standalone driver.
Thanks to skrll@ for much USB clue and mrg@ for financing the development of this driver.
|
1.32 |
| 14-Mar-2020 |
christos | branches: 1.32.2; revert the 0x% -> %# change for fixed width formats pointed out by uwe.
|
1.31 |
| 13-Mar-2020 |
christos | PR/55068: sc.dying: Fix printf formats: - no %s/%p for kernel log - 0x% -> %# - always %j for kernel log
|
1.30 |
| 09-May-2019 |
mrg | branches: 1.30.2; clean up ucom parents some more: - it's always "bool sc_dying" now, with true/false - heavy use of static functions - remove all ucom parent ca_activate callbacks. they're never called. - callbacks should generally do little to nothing if sc_dying is set - open resources should be released in detach after setting sc_dying - don't complain about usbd_abort_pipe() or usbd_close_pipe() failure - when releasing resources, zero the softc member as well - remove ucom_methods members no longer destined to be filled in - generally, DPRINTF() before sc_dying short circuit - use EIO when dying, not ENXIO or 0 - add some ucom_open() callbacks that simply return EIO if dying
|
1.29 |
| 06-May-2019 |
mrg | revert most of:
>fix umodem(4) detach: > >- ucom(4) needs kpreempt disabled around softint_schedule() >- switch a copied printf() to aprint_error_dev() >- use static normally in umodem_common.c >- remove unused sc_openings in softc, convert sc_dying to real bool >- add sc_refcnt, sc_lock and sc_detach_cv to softc. usage is: > - sc_dying is protected by sc_lock > - sc_detach_cv is matched with sc_lock for cv operations > - sc_refcnt is increased in open and decreased in close, any time > it is decreased, it is checked for less than zero, and a broadcast > performed on sc_detach_cv. detach waits for sc_refcnt. >- umodem_param() and umodem_set() check for sc_dying > >this fixes pullout out an open ucom@umodem. > >@skrll. > >XXX: pullup
it only fixes the issue by chance (slightly delays, which allows task to run, but there is no guarantee. real fix is incoming for all ucom parents.
|
1.28 |
| 04-May-2019 |
mrg | clean up ucom / ucom-parent interface slightly:
- document what the ucom_methods{} callbacks argument are and that they are all optional. - remove almost all methods being assigned to NULL, as they are all C99 initialisers and thus don't need NULL assignments. - ucom_get_status() callback always has lsr/msr pointers as valid. remove all tests for not NULL in these functions.
|
1.27 |
| 20-Apr-2019 |
mrg | fix umodem(4) detach:
- ucom(4) needs kpreempt disabled around softint_schedule() - switch a copied printf() to aprint_error_dev() - use static normally in umodem_common.c - remove unused sc_openings in softc, convert sc_dying to real bool - add sc_refcnt, sc_lock and sc_detach_cv to softc. usage is: - sc_dying is protected by sc_lock - sc_detach_cv is matched with sc_lock for cv operations - sc_refcnt is increased in open and decreased in close, any time it is decreased, it is checked for less than zero, and a broadcast performed on sc_detach_cv. detach waits for sc_refcnt. - umodem_param() and umodem_set() check for sc_dying
this fixes pullout out an open ucom@umodem.
@skrll.
XXX: pullup
|
1.26 |
| 04-Jan-2019 |
tih | The availability of status change notification messages for a umodem device is not an error. Report its presence if booting in verbose mode (-v).
|
1.25 |
| 25-Nov-2016 |
skrll | branches: 1.25.8; 1.25.14; 1.25.16; +#include "opt_usb.h"
|
1.24 |
| 07-Jul-2016 |
msaitoh | branches: 1.24.2; KNF. Remove extra spaces. No functional change.
|
1.23 |
| 23-Apr-2016 |
skrll | Merge nick-nhusb
- API / infrastructure changes to support memory management changes. - Memory management improvements and bug fixes. - HCDs should now be MP safe - conversion to KERNHIST based debug - FS/LS isoc support on ehci(4). - conversion to kmem(9) - Some USB 3 support - mostly from Takahiro HAYASHI (t-hash). - interrupt transfers now get proper DMA operations - general bug fixes - kern/48308 - uhub status notification improvements - umass(4) probe fix (applied to HEAD already) - ohci(4) short transfer fix
|
1.22 |
| 03-Nov-2010 |
dyoung | branches: 1.22.20; 1.22.36; 1.22.38; 1.22.42; Stop using the compatibility macros USB_ATTACH(), USB_DETACH(), USB_MATCH(), et cetera. These files produce the same assembly (according to objdump -d) before and after the change
|
1.21 |
| 01-Oct-2010 |
christos | from Anon Ymous:
Clear the any endpoint stall in the interrupt handler. All other drivers do this and I am pretty sure we need to as well, though I have yet to see a stall in the handler.
|
1.20 |
| 01-Oct-2010 |
christos | From Anon Ymous:
Add support for the Zoom 3095 USB Fax Modem. There are some problems with this modem:
1) The CS descriptors were placed after all other descriptors rather than in the Control Interface. This is true in both configurations and is the issue this patch deals with.
2) Modem audio is not done on the modem. There is a second configuration with an extra interface (3 interfaces) which presumably is for handling audio. This patch does not support that.
3) The interrupts are raised a bit slowly. This means that pppd(8) needs to wait a bit before trying to read from the link (i.e., just before the get_input() loop in src/dist/pppd/pppd/main.c line 547). If you don't wait, then DCD will not be detected high before that first read and get_input() will drop the line. This is not a problem if you use the "local" option to pppd(8) and ignore DCD, but that is less than desirable.
4) You apparently have to toggle "RSDL (DCD) option"[1] when you initialize the modem or you will never see a second DCD high interrupt when redialing after a disconnect. Without this the pppd(8) "persist" mode will not work. Presumably, some extra initialization is missing from the driver for this chipset.
[1] Send the AT commands: AT&C0 followed by AT&C1 - doing it in one command doesn't work. The AT commands for this modem are at: http://www.zoom.com/documentation/dial_up/3095F_ATcommands.pdf
|
1.19 |
| 20-Sep-2010 |
christos | Use the control (not data) interface descriptor when looking at the control interface endpoints! (from Anon Ymous)
|
1.18 |
| 27-Jun-2010 |
kardel | add quirk for CDC-ACM devices that do not have a CDC UNION interface descriptor. idea gleened from Linux cdc-acm implementation (which has a long list of these devices) first tested/added device is MTK GPS receiver.
|
1.17 |
| 12-Nov-2009 |
dyoung | branches: 1.17.2; 1.17.4; Simplify activation hooks. (sc_dying must die!)
|
1.16 |
| 23-Sep-2009 |
plunky | fix up USB drivers printing of autoconf information
1. expand the USB_ATTACH_SETUP macro (requested by jmcneill)
2. reorder the attach function so that the first thing it does is print newlines.
3. after this, we can call usbd_devinfo_alloc(), which polls the device allowing a context switch, and aprint_normal() the device information.
this avoids problems where autoconf messages are getting mixed up.
|
1.15 |
| 24-May-2008 |
cube | Split device_t and softc for all USB device drivers, and related cosmetic changes.
Matthias Drochner kindly reviewed this patch, and tested ums, ubt, uaudio and ral. I tested umass myself.
|
1.14 |
| 28-Apr-2008 |
martin | branches: 1.14.2; Remove clause 3 and 4 from TNF licenses
|
1.13 |
| 18-Feb-2008 |
dyoung | branches: 1.13.6; 1.13.8; 1.13.10; Use device_t and its accessor functions.
Register _childdetached methods with drivers that attach children. Wait to set child references to NULL there, instead of doing that in the detach method.
Replace many uses of USB_DECLARE_DRIVER() with CFATTACH_DECL2().
|
1.12 |
| 13-Mar-2007 |
drochner | branches: 1.12.12; 1.12.18; Introduce different autoconf interface attributes for USB drivers matching (and handling) a whole device and those which match an interface only. This will allow to enforce some rules, eg that the former don't use interface information for matching or that the latter don't modify global device state. The previous way left too much freedom do the drivers which led to inconsistencies and abuse. For now, I've not changed locators and submatch rules, this will happen later. There should not be any change in behaviour, except in the case of some drivers which did behave inconsistently: if_atu, if_axe, uep: matched the configured device in the interface stage, but did configuration again. I've converted them to match in the device stage. ustir, utoppy: matched in the interface stage, but only against vendor/device information, and used any configuration/interface without checking. Changed to match in device stage, and added some simple code to configure and use the first interface. If you have one of those devices, please test!
|
1.11 |
| 04-Mar-2007 |
christos | branches: 1.11.2; 1.11.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.10 |
| 29-Jan-2007 |
hubertf | branches: 1.10.2; 1.10.6; Remove more duplicate headers. Patch by Slava Semushin <slava.semushin@gmail.com>
Again, this was tested by comparing obj files from a pristine and a patched source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs, src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers were detected in 'objdump -d' output.
|
1.9 |
| 16-Nov-2006 |
christos | __unused removal on arguments; approved by core.
|
1.8 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.7 |
| 07-Jun-2006 |
smb | branches: 1.7.6; 1.7.8; Increase the size of UMODEMIBUFSIZE and UMODEMOBUFSIZE. These are the USB input and output buffer sizes; the previous values were fine for dialup modems, but seriously limited the speed of some high-speed wireless devices that appear to the system as a umodem.
|
1.6 |
| 11-Dec-2005 |
christos | branches: 1.6.4; 1.6.8; 1.6.14; merge ktrace-lwp.
|
1.5 |
| 30-May-2005 |
christos | branches: 1.5.2; 1.5.4; 1.5.10; 1.5.12; - const poisoning - eliminate variable shadowing
|
1.4 |
| 11-May-2005 |
augustss | Don't keep the devinfo string on the stack, instead use malloc/free. This should cure some rare stack overflows.
|
1.3 |
| 15-Apr-2005 |
itohy | branches: 1.3.2; 1.3.4; Fix function name in debug messages. White space police.
|
1.2 |
| 15-Apr-2005 |
itohy | If CM descriptor is found, use the data interface in it; if CM descriptor is NOT found but UNION descriotor is found, use the data interface in it. Do not require CM or ACM descriptors as long as the data interface is found.
Should fix NetBSD PR #29754 by rivo nurges.
|
1.1 |
| 15-Apr-2005 |
itohy | Split common modem part of umodem.c to umodem_common.c and umodemvar.h, to be shared with other umodem-like drivers.
|
1.3.4.2 |
| 29-Apr-2005 |
kent | sync with -current
|
1.3.4.1 |
| 15-Apr-2005 |
kent | file umodem_common.c was added on branch kent-audio2 on 2005-04-29 11:29:18 +0000
|
1.3.2.4 |
| 17-Apr-2005 |
tron | Pull up revision 1.3 (requested by itohy in ticket #160): Fix function name in debug messages. White space police.
|
1.3.2.3 |
| 17-Apr-2005 |
tron | Pull up revision 1.2 (requested by itohy in ticket #160): If CM descriptor is found, use the data interface in it; if CM descriptor is NOT found but UNION descriotor is found, use the data interface in it. Do not require CM or ACM descriptors as long as the data interface is found. Should fix NetBSD PR #29754 by rivo nurges.
|
1.3.2.2 |
| 17-Apr-2005 |
tron | Pull up revision 1.1 (requested by itohy in ticket #160): Split common modem part of umodem.c to umodem_common.c and umodemvar.h, to be shared with other umodem-like drivers.
|
1.3.2.1 |
| 15-Apr-2005 |
tron | file umodem_common.c was added on branch netbsd-3 on 2005-04-17 10:28:16 +0000
|
1.5.12.2 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.5.12.1 |
| 30-May-2005 |
skrll | file umodem_common.c was added on branch ktrace-lwp on 2005-11-10 14:08:06 +0000
|
1.5.10.2 |
| 26-Oct-2005 |
jmc | Pullup (via patch) requested in ticket #5754 by itohy
Provide a backport for ukyopon(4) and pullup umodem(4) updates.
|
1.5.10.1 |
| 30-May-2005 |
jmc | file umodem_common.c was added on branch netbsd-1-6 on 2005-10-26 22:16:27 +0000
|
1.5.4.2 |
| 21-Jul-2005 |
riz | Pull up new file (revisions 1.1-1.3 via patch) (requested by itohy in ticket #1430): 1.1: Split common modem part of umodem.c to umodem_common.c and umodemvar.h, to be shared with other umodem-like drivers.
1.2: If CM descriptor is found, use the data interface in it; if CM descriptor is NOT found but UNION descriotor is found, use the data interface in it. Do not require CM or ACM descriptors as long as the data interface is found. Should fix NetBSD PR #29754 by rivo nurges.
1.3: Fix function name in debug messages. White space police.
|
1.5.4.1 |
| 30-May-2005 |
riz | file umodem_common.c was added on branch netbsd-2 on 2005-07-21 19:26:48 +0000
|
1.5.2.5 |
| 27-Feb-2008 |
yamt | sync with head.
|
1.5.2.4 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.5.2.3 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.5.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.5.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.6.14.1 |
| 19-Jun-2006 |
chap | Sync with head.
|
1.6.8.1 |
| 26-Jun-2006 |
yamt | sync with head.
|
1.6.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.7.8.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.7.8.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.7.6.2 |
| 01-Feb-2007 |
ad | Sync with head.
|
1.7.6.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.10.6.2 |
| 18-Jun-2007 |
itohy | Pullup 1.12 (attach driver per interface) with #ifdef USB_USE_IFATTACH.
|
1.10.6.1 |
| 17-Jun-2007 |
itohy | Pullup 1.11 in a different way.
|
1.10.2.2 |
| 24-Mar-2007 |
yamt | sync with head.
|
1.10.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.11.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.11.2.1 |
| 13-Mar-2007 |
ad | Sync with head.
|
1.12.18.1 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.12.12.1 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.13.10.5 |
| 09-Oct-2010 |
yamt | sync with head
|
1.13.10.4 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.13.10.3 |
| 11-Mar-2010 |
yamt | sync with head
|
1.13.10.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.13.10.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.13.8.2 |
| 04-Jun-2008 |
yamt | sync with head
|
1.13.8.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.13.6.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.14.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.17.4.2 |
| 05-Mar-2011 |
rmind | sync with head
|
1.17.4.1 |
| 03-Jul-2010 |
rmind | sync with head
|
1.17.2.3 |
| 06-Nov-2010 |
uebayasi | Sync with HEAD.
|
1.17.2.2 |
| 22-Oct-2010 |
uebayasi | Sync with HEAD (-D20101022).
|
1.17.2.1 |
| 17-Aug-2010 |
uebayasi | Sync with HEAD.
|
1.22.42.2 |
| 26-Jan-2017 |
skrll | Sync with HEAD/nhusb
|
1.22.42.1 |
| 06-Sep-2016 |
skrll | First pass at netbsd-7 updated with USB code from HEAD
|
1.22.38.8 |
| 05-Dec-2016 |
skrll | Sync with HEAD
|
1.22.38.7 |
| 09-Jul-2016 |
skrll | Sync with HEAD
|
1.22.38.6 |
| 16-Apr-2016 |
skrll | Prefix ucom_attach_args struct members with ucaa_ and rename variables for consistency.
No functional change.
|
1.22.38.5 |
| 21-Mar-2015 |
skrll | Add prefixes to attach_arg structure member names. No functional change.
|
1.22.38.4 |
| 19-Mar-2015 |
skrll | Do the same as OpenBSD and get rid of the *_handle typedefs and use plain structures insteads
|
1.22.38.3 |
| 06-Dec-2014 |
skrll | KNF. Remove argument name from function declarations.
No functional change.
|
1.22.38.2 |
| 05-Dec-2014 |
skrll | KNF. Remove ( ) from return statements.
|
1.22.38.1 |
| 30-Nov-2014 |
skrll | Use C99 types. u_int{8,16,32,64}_t to uint{8,16,32,64}_t.
No functional change.
|
1.22.36.1 |
| 05-Apr-2017 |
snj | Pull up following revision(s) (requested by skrll in ticket #1395): share/man/man4/axe.4: netbsd-7-nhusb share/man/man4/axen.4: netbsd-7-nhusb share/man/man4/cdce.4: netbsd-7-nhusb share/man/man4/uaudio.4: netbsd-7-nhusb share/man/man4/ucom.4: netbsd-7-nhusb share/man/man4/uep.4: netbsd-7-nhusb share/man/man4/urtw.4: netbsd-7-nhusb share/man/man4/usb.4: netbsd-7-nhusb share/man/man4/uyap.4: netbsd-7-nhusb share/man/man4/xhci.4: netbsd-7-nhusb share/man/man9/usbdi.9: netbsd-7-nhusb sys/arch/amd64/conf/ALL: netbsd-7-nhusb sys/arch/amd64/conf/GENERIC: netbsd-7-nhusb sys/arch/amiga/dev/slhci_zbus.c: netbsd-7-nhusb sys/arch/arm/allwinner/awin_otg.c: netbsd-7-nhusb sys/arch/arm/allwinner/awin_usb.c: netbsd-7-nhusb sys/arch/arm/amlogic/amlogic_dwctwo.c: netbsd-7-nhusb sys/arch/arm/at91/at91ohci.c: netbsd-7-nhusb sys/arch/arm/broadcom/bcm2835_dwctwo.c: netbsd-7-nhusb sys/arch/arm/broadcom/bcm53xx_usb.c: netbsd-7-nhusb sys/arch/arm/ep93xx/epohci.c: netbsd-7-nhusb sys/arch/arm/gemini/obio_ehci.c: netbsd-7-nhusb sys/arch/arm/imx/files.imx23: netbsd-7-nhusb sys/arch/arm/imx/imxusb.c: netbsd-7-nhusb sys/arch/arm/imx/imxusbreg.h: netbsd-7-nhusb sys/arch/arm/omap/obio_ohci.c: netbsd-7-nhusb sys/arch/arm/omap/omap3_ehci.c: netbsd-7-nhusb sys/arch/arm/omap/omapl1x_ohci.c: netbsd-7-nhusb sys/arch/arm/omap/tiotg.c: netbsd-7-nhusb sys/arch/arm/s3c2xx0/ohci_s3c24x0.c: netbsd-7-nhusb sys/arch/arm/samsung/exynos_usb.c: netbsd-7-nhusb sys/arch/arm/xscale/pxa2x0_ohci.c: netbsd-7-nhusb sys/arch/arm/zynq/zynq_usb.c: netbsd-7-nhusb sys/arch/hpcarm/dev/nbp_slhci.c: netbsd-7-nhusb sys/arch/hpcmips/dev/plumohci.c: netbsd-7-nhusb sys/arch/i386/conf/ALL: netbsd-7-nhusb sys/arch/i386/conf/GENERIC: netbsd-7-nhusb sys/arch/i386/pci/gcscehci.c: netbsd-7-nhusb sys/arch/luna68k/conf/GENERIC: netbsd-7-nhusb sys/arch/mips/adm5120/dev/ahci.c: netbsd-7-nhusb sys/arch/mips/adm5120/dev/ahcivar.h: netbsd-7-nhusb sys/arch/mips/alchemy/dev/ohci_aubus.c: netbsd-7-nhusb sys/arch/mips/atheros/dev/ehci_arbus.c: netbsd-7-nhusb sys/arch/mips/atheros/dev/ohci_arbus.c: netbsd-7-nhusb sys/arch/mips/conf/files.adm5120: netbsd-7-nhusb sys/arch/mips/ralink/ralink_ehci.c: netbsd-7-nhusb sys/arch/mips/ralink/ralink_ohci.c: netbsd-7-nhusb sys/arch/mips/rmi/rmixl_ehci.c: netbsd-7-nhusb sys/arch/mips/rmi/rmixl_ohci.c: netbsd-7-nhusb sys/arch/playstation2/dev/ohci_sbus.c: netbsd-7-nhusb sys/arch/powerpc/booke/dev/pq3ehci.c: netbsd-7-nhusb sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c: netbsd-7-nhusb sys/arch/x68k/dev/slhci_intio.c: netbsd-7-nhusb sys/conf/files: netbsd-7-nhusb sys/dev/cardbus/ehci_cardbus.c: netbsd-7-nhusb sys/dev/cardbus/ohci_cardbus.c: netbsd-7-nhusb sys/dev/cardbus/uhci_cardbus.c: netbsd-7-nhusb sys/dev/ic/sl811hs.c: netbsd-7-nhusb sys/dev/ic/sl811hsvar.h: netbsd-7-nhusb sys/dev/isa/slhci_isa.c: netbsd-7-nhusb sys/dev/marvell/ehci_mv.c: netbsd-7-nhusb sys/dev/pci/ehci_pci.c: netbsd-7-nhusb sys/dev/pci/ohci_pci.c: netbsd-7-nhusb sys/dev/pci/uhci_pci.c: netbsd-7-nhusb sys/dev/pci/xhci_pci.c: netbsd-7-nhusb sys/dev/pcmcia/slhci_pcmcia.c: netbsd-7-nhusb sys/dev/usb/Makefile.usbdevs: netbsd-7-nhusb sys/dev/usb/TODO: netbsd-7-nhusb sys/dev/usb/TODO.usbmp: netbsd-7-nhusb sys/dev/usb/aubtfwl.c: netbsd-7-nhusb sys/dev/usb/auvitek.c: netbsd-7-nhusb sys/dev/usb/auvitek_audio.c: netbsd-7-nhusb sys/dev/usb/auvitek_dtv.c: netbsd-7-nhusb sys/dev/usb/auvitek_i2c.c: netbsd-7-nhusb sys/dev/usb/auvitek_video.c: netbsd-7-nhusb sys/dev/usb/auvitekvar.h: netbsd-7-nhusb sys/dev/usb/ehci.c: netbsd-7-nhusb sys/dev/usb/ehcireg.h: netbsd-7-nhusb sys/dev/usb/ehcivar.h: netbsd-7-nhusb sys/dev/usb/emdtv.c: netbsd-7-nhusb sys/dev/usb/emdtv_dtv.c: netbsd-7-nhusb sys/dev/usb/emdtv_ir.c: netbsd-7-nhusb sys/dev/usb/emdtvvar.h: netbsd-7-nhusb sys/dev/usb/ezload.c: netbsd-7-nhusb sys/dev/usb/ezload.h: netbsd-7-nhusb sys/dev/usb/files.usb: netbsd-7-nhusb sys/dev/usb/hid.c: netbsd-7-nhusb sys/dev/usb/hid.h: netbsd-7-nhusb sys/dev/usb/if_athn_usb.c: netbsd-7-nhusb sys/dev/usb/if_athn_usb.h: netbsd-7-nhusb sys/dev/usb/if_atu.c: netbsd-7-nhusb sys/dev/usb/if_atureg.h: netbsd-7-nhusb sys/dev/usb/if_aue.c: netbsd-7-nhusb sys/dev/usb/if_auereg.h: netbsd-7-nhusb sys/dev/usb/if_axe.c: netbsd-7-nhusb sys/dev/usb/if_axen.c: netbsd-7-nhusb sys/dev/usb/if_axenreg.h: netbsd-7-nhusb sys/dev/usb/if_axereg.h: netbsd-7-nhusb sys/dev/usb/if_cdce.c: netbsd-7-nhusb sys/dev/usb/if_cdcereg.h: netbsd-7-nhusb sys/dev/usb/if_cue.c: netbsd-7-nhusb sys/dev/usb/if_cuereg.h: netbsd-7-nhusb sys/dev/usb/if_kue.c: netbsd-7-nhusb sys/dev/usb/if_kuereg.h: netbsd-7-nhusb sys/dev/usb/if_otus.c: netbsd-7-nhusb sys/dev/usb/if_otusvar.h: netbsd-7-nhusb sys/dev/usb/if_rum.c: netbsd-7-nhusb sys/dev/usb/if_rumreg.h: netbsd-7-nhusb sys/dev/usb/if_rumvar.h: netbsd-7-nhusb sys/dev/usb/if_run.c: netbsd-7-nhusb sys/dev/usb/if_runvar.h: netbsd-7-nhusb sys/dev/usb/if_smsc.c: netbsd-7-nhusb sys/dev/usb/if_smscreg.h: netbsd-7-nhusb sys/dev/usb/if_smscvar.h: netbsd-7-nhusb sys/dev/usb/if_udav.c: netbsd-7-nhusb sys/dev/usb/if_udavreg.h: netbsd-7-nhusb sys/dev/usb/if_upgt.c: netbsd-7-nhusb sys/dev/usb/if_upgtvar.h: netbsd-7-nhusb sys/dev/usb/if_upl.c: netbsd-7-nhusb sys/dev/usb/if_ural.c: netbsd-7-nhusb sys/dev/usb/if_uralreg.h: netbsd-7-nhusb sys/dev/usb/if_uralvar.h: netbsd-7-nhusb sys/dev/usb/if_url.c: netbsd-7-nhusb sys/dev/usb/if_urlreg.h: netbsd-7-nhusb sys/dev/usb/if_urndis.c: netbsd-7-nhusb sys/dev/usb/if_urndisreg.h: netbsd-7-nhusb sys/dev/usb/if_urtw.c: netbsd-7-nhusb sys/dev/usb/if_urtwn.c: netbsd-7-nhusb sys/dev/usb/if_urtwn_data.h: netbsd-7-nhusb sys/dev/usb/if_urtwnreg.h: netbsd-7-nhusb sys/dev/usb/if_urtwnvar.h: netbsd-7-nhusb sys/dev/usb/if_urtwreg.h: netbsd-7-nhusb sys/dev/usb/if_zyd.c: netbsd-7-nhusb sys/dev/usb/if_zydreg.h: netbsd-7-nhusb sys/dev/usb/irmce.c: netbsd-7-nhusb sys/dev/usb/moscom.c: netbsd-7-nhusb sys/dev/usb/motg.c: netbsd-7-nhusb sys/dev/usb/motgvar.h: netbsd-7-nhusb sys/dev/usb/ohci.c: netbsd-7-nhusb sys/dev/usb/ohcireg.h: netbsd-7-nhusb sys/dev/usb/ohcivar.h: netbsd-7-nhusb sys/dev/usb/pseye.c: netbsd-7-nhusb sys/dev/usb/slurm.c: netbsd-7-nhusb sys/dev/usb/stuirda.c: netbsd-7-nhusb sys/dev/usb/u3g.c: netbsd-7-nhusb sys/dev/usb/uark.c: netbsd-7-nhusb sys/dev/usb/uatp.c: netbsd-7-nhusb sys/dev/usb/uaudio.c: netbsd-7-nhusb sys/dev/usb/uberry.c: netbsd-7-nhusb sys/dev/usb/ubsa.c: netbsd-7-nhusb sys/dev/usb/ubsa_common.c: netbsd-7-nhusb sys/dev/usb/ubsavar.h: netbsd-7-nhusb sys/dev/usb/ubt.c: netbsd-7-nhusb sys/dev/usb/uchcom.c: netbsd-7-nhusb sys/dev/usb/ucom.c: netbsd-7-nhusb sys/dev/usb/ucomvar.h: netbsd-7-nhusb sys/dev/usb/ucycom.c: netbsd-7-nhusb sys/dev/usb/udl.c: netbsd-7-nhusb sys/dev/usb/udl.h: netbsd-7-nhusb sys/dev/usb/udsbr.c: netbsd-7-nhusb sys/dev/usb/udsir.c: netbsd-7-nhusb sys/dev/usb/uep.c: netbsd-7-nhusb sys/dev/usb/uftdi.c: netbsd-7-nhusb sys/dev/usb/uftdireg.h: netbsd-7-nhusb sys/dev/usb/ugen.c: netbsd-7-nhusb sys/dev/usb/ugensa.c: netbsd-7-nhusb sys/dev/usb/uhci.c: netbsd-7-nhusb sys/dev/usb/uhcireg.h: netbsd-7-nhusb sys/dev/usb/uhcivar.h: netbsd-7-nhusb sys/dev/usb/uhid.c: netbsd-7-nhusb sys/dev/usb/uhidev.c: netbsd-7-nhusb sys/dev/usb/uhidev.h: netbsd-7-nhusb sys/dev/usb/uhmodem.c: netbsd-7-nhusb sys/dev/usb/uhso.c: netbsd-7-nhusb sys/dev/usb/uhub.c: netbsd-7-nhusb sys/dev/usb/uipad.c: netbsd-7-nhusb sys/dev/usb/uipaq.c: netbsd-7-nhusb sys/dev/usb/uirda.c: netbsd-7-nhusb sys/dev/usb/uirdavar.h: netbsd-7-nhusb sys/dev/usb/ukbd.c: netbsd-7-nhusb sys/dev/usb/ukbdmap.c: netbsd-7-nhusb sys/dev/usb/ukyopon.c: netbsd-7-nhusb sys/dev/usb/ukyopon.h: netbsd-7-nhusb sys/dev/usb/ulpt.c: netbsd-7-nhusb sys/dev/usb/umass.c: netbsd-7-nhusb sys/dev/usb/umass_isdata.c: netbsd-7-nhusb sys/dev/usb/umass_isdata.h: netbsd-7-nhusb sys/dev/usb/umass_quirks.c: netbsd-7-nhusb sys/dev/usb/umass_quirks.h: netbsd-7-nhusb sys/dev/usb/umass_scsipi.c: netbsd-7-nhusb sys/dev/usb/umass_scsipi.h: netbsd-7-nhusb sys/dev/usb/umassvar.h: netbsd-7-nhusb sys/dev/usb/umcs.c: netbsd-7-nhusb sys/dev/usb/umct.c: netbsd-7-nhusb sys/dev/usb/umidi.c: netbsd-7-nhusb sys/dev/usb/umidi_quirks.c: netbsd-7-nhusb sys/dev/usb/umidi_quirks.h: netbsd-7-nhusb sys/dev/usb/umodem.c: netbsd-7-nhusb sys/dev/usb/umodem_common.c: netbsd-7-nhusb sys/dev/usb/umodemvar.h: netbsd-7-nhusb sys/dev/usb/ums.c: netbsd-7-nhusb sys/dev/usb/uplcom.c: netbsd-7-nhusb sys/dev/usb/urio.c: netbsd-7-nhusb sys/dev/usb/urio.h: netbsd-7-nhusb sys/dev/usb/usb.c: netbsd-7-nhusb sys/dev/usb/usb.h: netbsd-7-nhusb sys/dev/usb/usb_mem.c: netbsd-7-nhusb sys/dev/usb/usb_mem.h: netbsd-7-nhusb sys/dev/usb/usb_quirks.c: netbsd-7-nhusb sys/dev/usb/usb_quirks.h: netbsd-7-nhusb sys/dev/usb/usb_subr.c: netbsd-7-nhusb sys/dev/usb/usbdevices.config: netbsd-7-nhusb sys/dev/usb/usbdevs: netbsd-7-nhusb sys/dev/usb/usbdevs.h: netbsd-7-nhusb sys/dev/usb/usbdevs_data.h: netbsd-7-nhusb sys/dev/usb/usbdi.c: netbsd-7-nhusb sys/dev/usb/usbdi.h: netbsd-7-nhusb sys/dev/usb/usbdi_util.c: netbsd-7-nhusb sys/dev/usb/usbdi_util.h: netbsd-7-nhusb sys/dev/usb/usbdivar.h: netbsd-7-nhusb sys/dev/usb/usbhid.h: netbsd-7-nhusb sys/dev/usb/usbhist.h: netbsd-7-nhusb sys/dev/usb/usbroothub.c: netbsd-7-nhusb sys/dev/usb/usbroothub.h: netbsd-7-nhusb sys/dev/usb/usbroothub_subr.c: delete sys/dev/usb/usbroothub_subr.h: delete sys/dev/usb/uscanner.c: netbsd-7-nhusb sys/dev/usb/uslsa.c: netbsd-7-nhusb sys/dev/usb/usscanner.c: netbsd-7-nhusb sys/dev/usb/ustir.c: netbsd-7-nhusb sys/dev/usb/uthum.c: netbsd-7-nhusb sys/dev/usb/utoppy.c: netbsd-7-nhusb sys/dev/usb/uts.c: netbsd-7-nhusb sys/dev/usb/uvideo.c: netbsd-7-nhusb sys/dev/usb/uvisor.c: netbsd-7-nhusb sys/dev/usb/uvscom.c: netbsd-7-nhusb sys/dev/usb/uyap.c: netbsd-7-nhusb sys/dev/usb/uyap_firmware.h: netbsd-7-nhusb sys/dev/usb/uyurex.c: netbsd-7-nhusb sys/dev/usb/x1input_rdesc.h: netbsd-7-nhusb sys/dev/usb/xhci.c: netbsd-7-nhusb sys/dev/usb/xhcireg.h: netbsd-7-nhusb sys/dev/usb/xhcivar.h: netbsd-7-nhusb sys/dev/usb/xinput_rdesc.h: netbsd-7-nhusb sys/external/bsd/common/conf/files.linux: netbsd-7-nhusb sys/external/bsd/common/include/linux/err.h: netbsd-7-nhusb sys/external/bsd/common/include/linux/kernel.h: netbsd-7-nhusb sys/external/bsd/common/include/linux/workqueue.h: netbsd-7-nhusb sys/external/bsd/common/linux/linux_work.c: netbsd-7-nhusb sys/external/bsd/drm2/dist/drm/radeon/atombios_encoders.c: netbsd-7-nhusb sys/external/bsd/drm2/dist/drm/radeon/radeon_legacy_encoders.c: netbsd-7-nhusb sys/external/bsd/drm2/drm/files.drmkms: netbsd-7-nhusb sys/external/bsd/drm2/i915drm/files.i915drmkms: netbsd-7-nhusb sys/external/bsd/drm2/include/linux/err.h: delete sys/external/bsd/drm2/include/linux/workqueue.h: delete sys/external/bsd/drm2/linux/files.drmkms_linux: netbsd-7-nhusb sys/external/bsd/drm2/linux/linux_work.c: delete sys/external/bsd/dwc2/dwc2.c: netbsd-7-nhusb sys/external/bsd/dwc2/dwc2.h: netbsd-7-nhusb sys/external/bsd/dwc2/dwc2var.h: netbsd-7-nhusb sys/external/bsd/dwc2/dwctwo2netbsd: netbsd-7-nhusb sys/external/bsd/dwc2/conf/files.dwc2: netbsd-7-nhusb sys/external/bsd/dwc2/dist/dwc2_core.c: netbsd-7-nhusb sys/external/bsd/dwc2/dist/dwc2_core.h: netbsd-7-nhusb sys/external/bsd/dwc2/dist/dwc2_coreintr.c: netbsd-7-nhusb sys/external/bsd/dwc2/dist/dwc2_hcd.c: netbsd-7-nhusb sys/external/bsd/dwc2/dist/dwc2_hcd.h: netbsd-7-nhusb sys/external/bsd/dwc2/dist/dwc2_hcdddma.c: netbsd-7-nhusb sys/external/bsd/dwc2/dist/dwc2_hcdintr.c: netbsd-7-nhusb sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c: netbsd-7-nhusb sys/external/bsd/dwc2/dist/dwc2_hw.h: netbsd-7-nhusb sys/modules/drmkms_linux/Makefile: netbsd-7-nhusb sys/modules/i915drmkms/Makefile: netbsd-7-nhusb sys/rump/dev/lib/libugenhc/ugenhc.c: netbsd-7-nhusb sys/rump/dev/lib/libusb/Makefile: netbsd-7-nhusb sys/rump/dev/lib/libusb/USB.ioconf: netbsd-7-nhusb sys/rump/dev/lib/libusb/usb_at_ugenhc.c: delete sys/rump/dev/lib/libusb/opt/opt_usb.h: delete sys/rump/dev/lib/libusb/opt/opt_usbverbose.h: delete sys/sys/mbuf.h: netbsd-7-nhusb usr.sbin/usbdevs/usbdevs.8: netbsd-7-nhusb usr.sbin/usbdevs/usbdevs.c: netbsd-7-nhusb Merge netbsd-7-nhusb: - API / infrastructure changes to support memory management changes. - Memory management improvements and bug fixes. - HCDs should now be MP safe - conversion to KERNHIST based debug - FS/LS isoc support on ehci(4). - conversion to kmem(9) - Some USB 3 support - mostly from Takahiro HAYASHI (t-hash). - interrupt transfers now get proper DMA operations - general bug fixes - kern/48308 - uhub status notification improvements - umass(4) probe fix (applied to HEAD already) - ohci(4) short transfer fix - Change the SOFTINT level from NET to SERIAL for the USB softint handler. This gives the callback a chance of running when another softint handler at SOFTINT_NET has blocked holding a lock, e.g. softnet_lock and most of the network stack. - kern/49065 - ifconfig tun0 ... sequence locks up system / lockup: softnet_lock held across usb xfr - kern/50491 - unkillable wait in usbd_transfer while using usmsc0 on raspberry pi 2 - kern/51395 - USB Ethernet makes xhci hang - Various improvements to slhci(4) - Various improvements to dwc2(4)
|
1.22.20.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.24.2.1 |
| 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.25.16.2 |
| 21-Apr-2020 |
martin | Sync with HEAD
|
1.25.16.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.25.14.1 |
| 18-Jan-2019 |
pgoyette | Synch with HEAD
|
1.25.8.2 |
| 07-May-2019 |
martin | Backout the following changes (requested by mrg in ticket #1240):
sys/dev/usb/umodem_common.c: revision 1.27 sys/dev/usb/umodemvar.h: revision 1.10 sys/dev/usb/ucom.c: revision 1.122
fix umodem(4) detach. There are different fixes upcoming.
|
1.25.8.1 |
| 22-Apr-2019 |
martin | Pull up following revision(s) (requested by mrg in ticket #1240):
sys/dev/usb/umodem_common.c: revision 1.27 sys/dev/usb/umodemvar.h: revision 1.10 sys/dev/usb/ucom.c: revision 1.122
fix umodem(4) detach:
- ucom(4) needs kpreempt disabled around softint_schedule() - switch a copied printf() to aprint_error_dev() - use static normally in umodem_common.c - remove unused sc_openings in softc, convert sc_dying to real bool - add sc_refcnt, sc_lock and sc_detach_cv to softc. usage is: - sc_dying is protected by sc_lock - sc_detach_cv is matched with sc_lock for cv operations - sc_refcnt is increased in open and decreased in close, any time it is decreased, it is checked for less than zero, and a broadcast performed on sc_detach_cv. detach waits for sc_refcnt. - umodem_param() and umodem_set() check for sc_dying
this fixes pullout out an open ucom@umodem.
@skrll.
XXX: pullup
|
1.30.2.1 |
| 12-Apr-2020 |
martin | Pull up following revision(s) (requested by simonb in ticket #828):
share/man/man4/uxrcom.4: revision 1.1 distrib/sets/lists/man/mi: revision 1.1687 share/man/man4/uxrcom.4: revision 1.2 share/man/man4/ucom.4: revision 1.28 sys/dev/usb/uxrcom.c: revision 1.1 sys/dev/usb/umodem.c: revision 1.74 sys/dev/usb/umodem_common.c: revision 1.33 sys/dev/usb/ukyopon.c: revision 1.26 sys/dev/usb/files.usb: revision 1.173 share/man/man4/Makefile: revision 1.704 sys/dev/usb/usbdevs: revision 1.781 sys/dev/usb/usbdevices.config: revision 1.38
Add uxrcom driver for Exar XR21V141x USB serial adapters. Based in part on the OpenBSD single-port XR21V1410 uxrcom driver, but adds support for multi-port chipsets and uses the common umodem framework instead of being a standalone driver.
Thanks to skrll@ for much USB clue and mrg@ for financing the development of this driver.
Add NetBSD CVS tag.
|
1.32.2.1 |
| 20-Apr-2020 |
bouyer | Sync with HEAD
|
1.33.4.2 |
| 22-Mar-2021 |
thorpej | Audit CFARG_IATTR in config_found() calls, and remove it in situations where the interface attribute is not ambiguous.
|
1.33.4.1 |
| 22-Mar-2021 |
thorpej | Mechanical conversion of config_found_sm_loc() -> config_found(). CFARG_IATTR usage needs to be audited.
|
1.34.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|