freebsd-dev/sys/dev/usb
Jonathan Lemon df5e198723 Lock down the network interface queues. The queue mutex must be obtained
before adding/removing packets from the queue.  Also, the if_obytes and
if_omcasts fields should only be manipulated under protection of the mutex.

IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on
the queue.  An IF_LOCK macro is provided, as well as the old (mutex-less)
versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which
needs them, but their use is discouraged.

Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF,
which takes care of locking/enqueue, and also statistics updating/start
if necessary.
2000-11-25 07:35:38 +00:00
..
devlist2h.awk Add usbdevs and friends. 1999-11-18 18:02:44 +00:00
FILES Add umass.c 2000-01-27 23:19:14 +00:00
hid.c Remove __P prototypes to reduce diffs between the NetBSD and FreeBSD 2000-07-17 18:41:20 +00:00
hid.h Remove __P prototypes to reduce diffs between the NetBSD and FreeBSD 2000-07-17 18:41:20 +00:00
if_aue.c Close PR #21078: the aue driver was not correctly programming the 2000-11-01 18:26:36 +00:00
if_auereg.h Convert the USB ethernet drivers to use mutexes. Also convert 2000-10-24 22:38:54 +00:00
if_cue.c Convert the USB ethernet drivers to use mutexes. Also convert 2000-10-24 22:38:54 +00:00
if_cuereg.h Convert the USB ethernet drivers to use mutexes. Also convert 2000-10-24 22:38:54 +00:00
if_kue.c Add a forgotten mutex_exit()/KUE_UNLOCK() to kue_init(). 2000-11-23 05:58:48 +00:00
if_kuereg.h Convert the USB ethernet drivers to use mutexes. Also convert 2000-10-24 22:38:54 +00:00
kue_fw.h OpenBSD has a broken debugger that does not grok static. Use a 2000-04-03 20:58:30 +00:00
Makefile.usbdevs Make the makefile work properly. 2000-03-15 22:13:50 +00:00
ohci_pci.c Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ing 2000-10-29 14:54:55 +00:00
ohci.c Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
ohcireg.h Change Lennart's e-mail address. 2000-05-14 16:43:10 +00:00
ohcivar.h Remove __P prototypes to reduce diffs between the NetBSD and FreeBSD 2000-07-17 18:41:20 +00:00
rio500_usb.h Update the urio driver. It now works on NetBSD and OpenBSD as well. 2000-04-08 17:02:13 +00:00
udbp.c Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
udbp.h The USB double bulk pipe driver (Host to host cables). Currently there 2000-05-01 22:48:23 +00:00
ugen.c Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
uhci_pci.c Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ing 2000-10-29 14:54:55 +00:00
uhci.c Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ing 2000-10-29 14:54:55 +00:00
uhcireg.h Change Lennart's e-mail address. 2000-05-14 16:43:10 +00:00
uhcivar.h Save and restore the registers SOF and FRAMENUMBER on suspend. In some 2000-08-07 00:04:53 +00:00
uhid.c Remove unneeded includes (phk) 2000-10-10 10:56:53 +00:00
uhub.c Sync with NetBSD: 2000-10-16 17:40:59 +00:00
ukbd.c Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
ulpt.c Fix for powering off a HP DJ950C during printing. As stated by Ian: 2000-11-07 10:50:34 +00:00
umass.c Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
umodem.c Make the Ricochet modems work through the USB interface. 2000-11-01 17:35:57 +00:00
ums.c Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
urio.c Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
usb_ethersubr.c Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
usb_ethersubr.h Pull my head out of my ass and actually make the tx netisr stuff work right. 2000-01-14 01:36:16 +00:00
usb_if.m * Factor out the object system from new-bus so that it can be used by 2000-04-08 14:17:18 +00:00
usb_mem.h Remove __P prototypes to reduce diffs between the NetBSD and FreeBSD 2000-07-17 18:41:20 +00:00
usb_port.h Finally make the module dependencies work. kern_linker.c now allows 2000-08-04 19:05:49 +00:00
usb_quirks.c AcerScan 320U's are braindead. Sometimes they do not return strings 2000-11-02 20:42:34 +00:00
usb_quirks.h Make the Ricochet modems work through the USB interface. 2000-11-01 17:35:57 +00:00
usb_subr.c Undo previous commit. <machine/clock.h> is needed for the prototype 2000-10-16 18:50:00 +00:00
usb.c Finally make the module dependencies work. kern_linker.c now allows 2000-08-04 19:05:49 +00:00
usb.h Don't check for ohci/uhci to be loaded, check for the usb module. 2000-09-02 10:17:58 +00:00
usbcdc.h Add more CDC defines. 2000-08-13 18:23:07 +00:00
usbdevs Sone -> Sony 2000-11-03 15:19:00 +00:00
usbdevs_data.h Regen. 2000-11-03 15:19:42 +00:00
usbdevs.h Regen. 2000-11-03 15:19:42 +00:00
usbdi_util.c Remove __P prototypes to reduce diffs between the NetBSD and FreeBSD 2000-07-17 18:41:20 +00:00
usbdi_util.h Remove __P prototypes to reduce diffs between the NetBSD and FreeBSD 2000-07-17 18:41:20 +00:00
usbdi.c Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ing 2000-10-29 14:54:55 +00:00
usbdi.h Remove __P prototypes to reduce diffs between the NetBSD and FreeBSD 2000-07-17 18:41:20 +00:00
usbdivar.h Remove __P prototypes to reduce diffs between the NetBSD and FreeBSD 2000-07-17 18:41:20 +00:00
usbhid.h Sync with NetBSD: 2000-10-16 17:45:27 +00:00
uscanner.c Set OPEN Flag on open. 2000-11-15 10:36:08 +00:00