summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/udbp.c
Commit message (Collapse)AuthorAgeFilesLines
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Tweak the compatibility macros a little so that the device printing isimp2004-08-151-3/+1
| | | | moved into them.
* MFp4: First batch of dev/usb/usbdevs.h -> usbdevs.h changes.imp2004-06-271-1/+1
|
* Convert Netgraph to use mbuf tags to pass its meta information around.julian2004-06-251-6/+6
| | | | | | | | Thanks to Sam for importing tags in a way that allowed this to be done. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Also allow the sr and ar drivers to create netgraph versions of their modules. Document the change to the ksocket node.
* Switch to using C99 sparse initialisers for the type methods array.julian2004-05-291-12/+10
| | | | | | | | Should make no binary difference. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Reviewed by: Harti Brandt <harti@freebsd.org> MFC after: 1 week
* Use __FBSDID().obrien2003-08-241-1/+3
| | | | Also some minor style cleanups.
* add missing machine/bus.h headers that are now necessary because of thejmg2003-07-161-0/+1
| | | | bus_dma addition.
* WARNING: white space diffjmg2003-07-041-12/+12
| | | | | | This code reduces the number of trailing white space to be more in line w/ NetBSD. I don't regenerate usbdevs, saving that for when it really changes.
* Add module dependency. This makes udbp.ko to be loaded.takawata2003-03-151-0/+1
|
* Back out M_* changes, per decision of the TRB.imp2003-02-191-2/+2
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-2/+2
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Use the hw.usb sysctl tree instead of debug.usb.joe2002-08-081-1/+2
| | | | Requested by: imp
* Replace the FOO_DEBUG definitions with USB_DEBUG, and switch thejoe2002-07-311-2/+2
| | | | | | debugging levels to off by default. Now that debug levels can be tweaked by sysctl we don't need to go through hoops to get the different usb parts to produce debug data.
* Get bored with hard coded debug level variables and introduce a debug.usbjoe2002-07-311-0/+3
| | | | | | sysctl tree for tweaking them real-time. Reviewed by: iedowse
* Should have been part of recent commit:alfred2002-06-011-3/+3
| | | | | | | | Fix GCC warnings caused by initializing a zero length array. In the process, simply things a bit by getting rid of 'struct ng_parse_struct_info' which was useless because it only contained one field. But now I'm unbreaking compilation by adjusting these files to the recent netgraph change.
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-2/+3
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* select() DKI is now in <sys/selinfo.h>.wollman2001-01-091-0/+4
|
* Part 2 of the netgraph rewrite.julian2001-01-081-21/+28
| | | | | | This is mostly cosmetic changes, (though I caught a bug or two while makeing them) Reviewed by: archie@freebsd.org
* Rewrite of netgraph to start getting ready for SMP.julian2001-01-061-30/+41
| | | | | | | | This version is functional and is aproaching solid.. notice I said APROACHING. There are many node types I cannot test I have tested: echo hole ppp socket vjc iface tee bpf async tty The rest compile and "Look" right. More changes to follow. DEBUGGING is enabled in this code to help if people have problems.
* Divorce the kernel binary ABI version number from the messagejulian2000-12-181-1/+1
| | | | | | | | | format version number. (userland programs should not need to be recompiled when the netgraph kernel internal ABI is changed. Also fix modules that don;t handle the fact that a caller may not supply a return message pointer. (benign at the moment because the calling code checks, but that will change)
* remove unused variablejulian2000-12-121-1/+0
|
* Reviewed by: Archie@freebsd.orgjulian2000-12-121-4/+4
| | | | | | | | | | | | | This clears out my outstanding netgraph changes. There is a netgraph change of design in the offing and this is to some extent a superset of soem of the new functionality and some of the old functionality that may be removed. This code works as before, but allows some new features that I want to work with and evaluate. It is the basis for a version of netgraph with integral locking for SMP use. This is running on my test machine with no new problems :-)
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-251-13/+10
| | | | | | | | | | | | | | 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.
* Remove unneeded #include <sys/proc.h> lines.phk2000-10-291-1/+0
|
* Remove __P prototypes to reduce diffs between the NetBSD and FreeBSDn_hibma2000-07-171-6/+6
| | | | versions.
* Add the Prolific PL2301 and PL2302 Link cables.n_hibma2000-05-071-0/+5
| | | | Submitted by: Dirk van Gulik <dirkx@webweaving.org>
* We match on vendor/product so return the fact that udbp is vendor/productn_hibma2000-05-071-1/+1
| | | | specific.
* More static -> Static to keep OpenBSD happy.n_hibma2000-05-071-26/+26
|
* The USB double bulk pipe driver (Host to host cables). Currently theren_hibma2000-05-011-0/+814
are two supported chips, the NetChip 1080 (only prototypes available) and the EzLink cable. Any other cable should be supported however as they are all very much alike (there is a difference between them wrt performance). It uses Netgraph. This driver was mostly written by Doug Ambrisko and Julian Elischer and I would like to thank Whistle for yet another contribution. And my aplogies to them for me sitting on the driver for so long (2 months). Also, many thanks to Reid Augustin from NetChip for providing me with a prototype of their 1080 chip. Be aware of the fact that this driver is very immature and has only been tested very lightly. If someone feels like learning about Netgraph however this is an excellent driver to start playing with.
OpenPOWER on IntegriCloud