summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
Commit message (Collapse)AuthorAgeFilesLines
* Grab the process lock while calling psignal and before calling psignal.jhb2001-03-072-2/+7
|
* Add an AUE device ID: USB_PRODUCT_MELCO_LUATX5peter2001-03-051-0/+1
| | | | Submitted by: Yoshihiko SARUMARU <mistral@imasy.or.jp>
* Disable the mutex locking calls. These do not work in their present formpeter2001-02-273-0/+15
| | | | | as the code calls the usb stack (which can sleep) while holding the driver lock. This leads to a deadlock.
* Change default devfs permissions to the ones in MAKEDEV.n_hibma2001-02-191-2/+2
| | | | Suggested by: rwatson
* Extend kqueue down to the device layer.jlemon2001-02-151-2/+3
| | | | Backwards compatible approach suggested by: peter
* Change and clean the mutex lock interface.bmilekic2001-02-093-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mtx_enter(lock, type) becomes: mtx_lock(lock) for sleep locks (MTX_DEF-initialized locks) mtx_lock_spin(lock) for spin locks (MTX_SPIN-initialized) similarily, for releasing a lock, we now have: mtx_unlock(lock) for MTX_DEF and mtx_unlock_spin(lock) for MTX_SPIN. We change the caller interface for the two different types of locks because the semantics are entirely different for each case, and this makes it explicitly clear and, at the same time, it rids us of the extra `type' argument. The enter->lock and exit->unlock change has been made with the idea that we're "locking data" and not "entering locked code" in mind. Further, remove all additional "flags" previously passed to the lock acquire/release routines with the exception of two: MTX_QUIET and MTX_NOSWITCH The functionality of these flags is preserved and they can be passed to the lock/unlock routines by calling the corresponding wrappers: mtx_{lock, unlock}_flags(lock, flag(s)) and mtx_{lock, unlock}_spin_flags(lock, flag(s)) for MTX_DEF and MTX_SPIN locks, respectively. Re-inline some lock acq/rel code; in the sleep lock case, we only inline the _obtain_lock()s in order to ensure that the inlined code fits into a cache line. In the spin lock case, we inline recursion and actually only perform a function call if we need to spin. This change has been made with the idea that we generally tend to avoid spin locks and that also the spin locks that we do have and are heavily used (i.e. sched_lock) do recurse, and therefore in an effort to reduce function call overhead for some architectures (such as alpha), we inline recursion for this case. Create a new malloc type for the witness code and retire from using the M_DEV type. The new type is called M_WITNESS and is only declared if WITNESS is enabled. Begin cleaning up some machdep/mutex.h code - specifically updated the "optimized" inlined code in alpha/mutex.h and wrote MTX_LOCK_SPIN and MTX_UNLOCK_SPIN asm macros for the i386/mutex.h as we presently need those. Finally, caught up to the interface changes in all sys code. Contributors: jake, jhb, jasone (in no particular order)
* Regen.n_hibma2001-02-062-2/+17
|
* Add a comment about the fact that adding an ID doesn't actually do anything.n_hibma2001-02-061-0/+15
|
* Convert if_multiaddrs from LIST to TAILQ so that it can be traversedphk2001-02-063-3/+3
| | | | | | backwards in the three drivers which want to do that. Reviewed by: mikeh
* Regen.n_hibma2001-02-052-5/+67
|
* Add some ids from NetBSD.n_hibma2001-02-051-2/+16
|
* Regen.n_hibma2001-02-052-2/+41
|
* * Correct a broken entryn_hibma2001-02-051-1/+2
| | | | | * Add the id for the Rio 800 USB. Submitted by: Wesley Morgan <morganw@chemikals.org>
* Another round of the <sys/queue.h> FOREACH transmogriffer.phk2001-02-041-2/+1
| | | | | Created with: sed(1) Reviewed by: md5(1)
* Mechanical change to use <sys/queue.h> macro API instead ofphk2001-02-041-1/+1
| | | | | | | fondling implementation details. Created with: sed(1) Reviewed by: md5(1)
* Use LIST_FOREACH() to traverse ifp->if_multiaddrs list, instead ofphk2001-02-033-6/+3
| | | | | | | <sys/queue.h> implementation details. Created with: /usr/sbin/sed Reviewed with: /sbin/md5
* Use suser(9) instead of checking p->p_ucred->cr_uid directly.jhb2001-01-231-1/+1
|
* Make intr_nesting_level per-process, rather than per-cpu. Setupjake2001-01-213-3/+3
| | | | | | | | interrupt threads to run with it always >= 1, so that malloc can detect M_WAITOK from "interrupt" context. This is also necessary in order to context switch from sched_ithd() directly. Reviewed By: peter
* Implement MTX_RECURSE flag for mtx_init().bmilekic2001-01-193-3/+6
| | | | | | | | | | | | | | | | | | | All calls to mtx_init() for mutexes that recurse must now include the MTX_RECURSE bit in the flag argument variable. This change is in preparation for an upcoming (further) mutex API cleanup. The witness code will call panic() if a lock is found to recurse but the MTX_RECURSE bit was not set during the lock's initialization. The old MTX_RECURSE "state" bit (in mtx_lock) has been renamed to MTX_RECURSED, which is more appropriate given its meaning. The following locks have been made "recursive," thus far: eventhandler, Giant, callout, sched_lock, possibly some others declared in the architecture-specific code, all of the network card driver locks in pci/, as well as some other locks in dev/ stuff that I've found to be recursive. Reviewed by: jhb
* Nikon E990 and Nomad MP3 player Ids.n_hibma2001-01-181-0/+8
| | | | Submitted by: pete@altadena.net
* Use PCPU_GET, PCPU_PTR and PCPU_SET to access all per-cpu variablesjake2001-01-103-3/+3
| | | | other then curproc.
* select() DKI is now in <sys/selinfo.h>.wollman2001-01-099-0/+36
|
* 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
* Add a quirk for drives that do not handle long inquiry data.n_hibma2001-01-081-22/+41
| | | | | | | | | Add the entry for the Yano U640MO-03 MO drive. (ifdef-0-ed out for now) Fix a hack were an original buffer was modified instead of copied (cmd[] -> (*rcmd)[]) Submitted by: Iwasa Kazmi <kzmi@ca2.so-net.ne.jp>
* Add the Synchronize command to umass_atapi_transform. It seems to workn_hibma2001-01-071-0/+1
| | | | unmodified for ATAPI type devices.
* Print the correct value in a debugging printf.n_hibma2001-01-071-1/+1
| | | | Submitted by: Iwasa Kazmi <kzmi@ca2.so-net.ne.jp>
* 1) Return the requestad length - the transferred length as the residue,n_hibma2001-01-071-4/+6
| | | | | | | | | | | | instead of the requested length. Otherwise all transfers look like 0 byte transfers to CAM. Submitted by: Iwasa Kazmi <kzmi@ca2.so-net.ne.jp> 2) Finalise the command in the case of CBI transfers with CCI (command completion interrupt). 3) Remove a redundant bzero of a buffer.
* 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.
* Bugfix: device_resume should be connected to bus_generic_resume notn_hibma2001-01-051-1/+1
| | | | | | *_suspend. Submitted by: kazu
* Readd the id removed by sheldon in the previous commit to uscanner.c.n_hibma2001-01-042-1/+2
| | | | Change the ID in if_aue.c to match the new name in usbdevs.h.
* UMASS_DEBUG implemented panic(9).n_hibma2001-01-042-0/+9
| | | | | PR: 24044 Submitted by: Mike Bristow <mike@urgle.com>
* Regen.n_hibma2001-01-042-17/+137
| | | | (Sorry for forgetting that).
* Revert rev 1.8, which broke the installkernel target.sheldonh2001-01-041-1/+0
|
* Add the Id of the Epson 1640 scanner.n_hibma2001-01-031-0/+1
| | | | Submitted by: Chris Shenton <chris@shenton.org>
* Add a few Ids. From NetBSD.n_hibma2001-01-031-4/+28
|
* Initialise rcmdlen.n_hibma2000-12-201-0/+1
| | | | Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
* 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 a couple of leftover unused variables.msmith2000-12-132-2/+0
|
* 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 :-)
* make sure we tear down the devnodes for the endpoints 1 and aboven_hibma2000-12-121-46/+74
| | | | when switching configuration.
* Remove a warning.n_hibma2000-12-081-1/+2
| | | | Reported by: phk
* Add Isochronus transfer mode support required byroger2000-12-071-13/+180
| | | | | | | | | | | | | | | | USB WebCams, using a patch from Peter Housel. With this change ugen, and with Peter's 'vid' program in ports/graphics/vid, we can capture single images from USB Cameras using the OmniVision OV511 chipset (including some models of the Creative WebCam 3) NetBSD merged in Peter's patch to their ugen.c file several months ago, so this brings us back in line. Submitted by: Peter Housel <housel@acm.org> http://members.home.com/housel/ Approved by: Nick Hibma
* Non functional change.roger2000-12-071-70/+21
| | | | | | | | | Change a few indentations to tabs. Change the functions to use ANSI sytle parameters. This lowers the diffs between our copy of ugen.c and NetBSD's copy Approved by: Nick Hibma
* We now have the ability to assign the correct IRQ when PNP-OS is turnednsayer2000-12-032-20/+0
| | | | | | | | on. So stop failing the attach if the IRQ is unassigned. With this patch, I can now boot with PNP-OS YES in my BIOS no differently than PNP-OS NO (which is a good thing since Windows hangs with PNP-OS NO). Obtained from: msmith
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-252-25/+12
| | | | | | | | | | | | | | 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.
* Add a forgotten mutex_exit()/KUE_UNLOCK() to kue_init().wpaul2000-11-231-1/+3
|
* Set OPEN Flag on open.n_hibma2000-11-151-3/+11
| | | | Make set_config(1) print warning message if it fails.
* Fix for powering off a HP DJ950C during printing. As stated by Ian:n_hibma2000-11-071-0/+5
| | | | | | | | | | | When the printer is turned off the pipe write will cause and error, which causes lpd to close the device and reopen it to clear the error. After a short while the device will disappear from the bus but lpd will have opened the ulpt0 port by then. ulpt_status will check for status without checking the sc->dying flag and panic the kernel when the device finally disappears from the bus. Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
* Regen.n_hibma2000-11-032-4/+4
|
OpenPOWER on IntegriCloud