summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhid.c
Commit message (Collapse)AuthorAgeFilesLines
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Include fcntl.hphk2004-12-221-2/+2
| | | | | Check O_NONBLOCK instead of IO_NDELAY Don't include vnode.h
* Add sys/uio.h explicitly, and move sys/vnode.h include to be moreimp2004-12-131-1/+2
| | | | | | | alphabetical. # vnode.h should not be included here, but it is required for proper decoding # of the flags args. This may change in the future...
* Don't use matchlvl attach arg. It seems to be not initializedtakawata2004-10-091-0/+3
| | | | in FreeBSD probe mechanism.
* 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
|
* Our softc has no sc_hdev, but a sc_dev. This in turn has no directle2004-06-261-18/+0
| | | | | | sc_parent, so back out the previous commit, as it breaks the build. If there's a pointy hat left, pass it on.
* MFNetBSD.le2004-06-261-0/+18
| | | | | | | | | | | | | | | | | | | | | | uhid.c (1.61), author: jdolecek add support for USB_GET_DEVICEINFO and USB_GET_STRING_DESC ioctls, with same meaning as for ugen(4) usbdi_util.h (1.29), usb_quirks.c (1.50), uhid.c (1.62), ugen.c (1.68), usb_subr.c (1.114) author: mycroft Yes, some devices return incorrect lengths in their string descriptors. Rather than losing, do what Windows does: just request the maximum size, and allow a shorter response. Obsoletes the need for UQ_NO_STRINGS, and therefore these "quirks" are removed. usb_subr.c (1.116), author: mycroft In the "seemed like a good idea until I found the fatal flaw" department... Attempting to read a maximum-size string descriptor causes my kue device to go completely apeshit. So, go back to the original method, but allow the device to return a shorter string than it claimed. Obtained from: NetBSD
* Do the dreaded s/dev_t/struct cdev */phk2004-06-161-7/+7
| | | | Bump __FreeBSD_version accordingly.
* Update URL to HID spec.le2004-05-231-1/+1
| | | | Obtained from: NetBSD
* Device megapatch 4/6:phk2004-02-211-0/+2
| | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
* Device megapatch 1/6:phk2004-02-211-2/+0
| | | | | | | Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number.
* - Implement selwakeuppri() which allows raising the priority of atanimura2003-11-091-1/+1
| | | | | | | | | | | | | thread being waken up. The thread waken up can run at a priority as high as after tsleep(). - Replace selwakeup()s with selwakeuppri()s and pass appropriate priorities. - Add cv_broadcastpri() which raises the priority of the broadcast threads. Used by selwakeuppri() if collision occurs. Not objected in: -arch, -current
* Make it easier to run this code on RELENG_4.joe2003-10-041-2/+8
| | | | Submitted by: luoqi
* I don't know from where the notion that device driver should orphk2003-09-281-6/+0
| | | | | | | | | | | | | | even could call VOP_REVOKE() on vnodes associated with its dev_t's has originated, but it stops right here. If there are things people belive destroy_dev() needs to learn how to do, please tell me about it, preferably with a reproducible test case. Include <sys/uio.h> in bluetooth code rather than rely on <sys/vnode.h> to do so. The fact that some of the USB code needs to include <sys/vnode.h> still disturbs me greatly, but I do not have time to chase that.
* Fix the cdevsw compatibility for -stable.joe2003-08-251-1/+1
|
* Use __FBSDID().obrien2003-08-241-1/+3
| | | | Also some minor style cleanups.
* Make note that we already have these NetBSD patches.joe2003-07-141-1/+1
|
* MFNetBSD:joe2003-07-141-1/+4
| | | | | | date: 2002/09/23 05:51:20; author: simonb; Remove breaks after returns, unreachable returns and returns after returns(!).
* WARNING: white space diffjmg2003-07-041-10/+10
| | | | | | 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.
* Set pointers to NULL after free() to prevent multiple free().mdodd2003-06-251-0/+3
| | | | | PR: kern/48808 Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru>
* At least pretend to handle USB_GET_REPORT_ID.mdodd2003-04-091-0/+4
|
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-031-13/+8
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* 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
* MFNetBSD: uhid.c (1.45), ums.c (1.49), usbdi_util.c (1.35), usbdi_util.h (1.23)joe2002-04-071-2/+2
| | | | | date: 2001/10/26 17:58:21; author: augustss; s/usbd_alloc_report_desc/usbd_read_report_desc/
* MFNetBSD:joe2002-04-071-3/+3
| | | | | | revision 1.44 date: 2001/09/15 16:16:28; author: yamt; state: Exp; lines: +3 -3 correct debug messages.
* MFNetBSD: uhid.c (1.42 & 1.43), ugraphire_rdesc.h (1.1)joe2002-04-071-3/+24
| | | | | | | | | | | | | date: 2000/12/29 01:47:49; author: augustss; Supply our own report descriptor (from Nick Hibma) for the Wacom Graphire. The descriptor it reports is broken. XXX Not tested, because I don't have the device. date: 2001/08/15 00:06:49; author: augustss; state: Exp; lines: +3 -1 If there was a vendor+product locator match return a higher match value. Rationale, if you have a device (e.g., a mouse) with a more specific driver but want to recognize it with the more generic driver you can do that by supplying vendor and product locators for the generic one.
* MFNetBSD:joe2002-04-011-3/+4
| | | | | | | revision 1.40 date: 2000/10/10 12:37:01; author: augustss; state: Exp; lines: +4 -3 Don't free unallocated pointer in detach (can happen if detach happens before attach has finished).
* Use ANSI prototypes and declarations.joe2002-04-011-50/+13
| | | | Update $NetBSD$ idents to better reflect reality.
* Be more specific about when block major numbers disappeared fromjoe2002-03-111-1/+1
| | | | the cdev switch.
* Prefix structure members to protect them against clashes with eg.alfred2002-02-201-7/+7
| | | | | | | | | c++ keywords. This keeps us in sync with NetBSD because they actually committed my delta first. Ok'd by: lennard
* Re-add bmaj to the cdevsw's, but don't compile it in on -current.joe2002-02-151-0/+3
| | | | | This makes the code more portable between -current, -stable and the other BSDs.
* Sync with NetBSD:joe2002-01-021-1/+1
| | | | | | date: 2000/02/29 21:37:01; author: augustss; state: Exp; Distinguish between device and interface classes. (I finally found a document that said that they were different.)
* NetBSD have introduced usb_proc_ptr for us (they'll be needing it soon too)joe2002-01-021-15/+15
| | | | to hide the distinction between struct proc and struct thread.
* KSE Milestone 2julian2001-09-121-15/+15
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Only clear endpoint stall if status was USBD_STALLED.n_hibma2001-09-021-1/+2
| | | | | This avoids panicing the system by unplugging a hub. The interrupt transfer would sometimes arrive after the driver had been removed.
* Don't free memory that has been freed already.n_hibma2001-06-301-2/+0
| | | | | | | | Null the pointer after freeing the memory. PR: 27370 Submitted by: Alec Barea <alec@barea.org> MFC after: 5 days
* Undo part of the tangle of having sys/lock.h and sys/mutex.h included inmarkm2001-05-011-0/+2
| | | | | | | | | | | other "system" header files. Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys/lockmgr.h form kernel .c files. Sort sys/*.h includes where possible in affected files. OK'ed by: bde (with reservations)
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-261-1/+0
| | | | the bit-bucket.
* Grab the process lock while calling psignal and before calling psignal.jhb2001-03-071-0/+2
|
* select() DKI is now in <sys/selinfo.h>.wollman2001-01-091-0/+4
|
* Remove unneeded includes (phk)n_hibma2000-10-101-2/+1
|
* Remove __P prototypes to reduce diffs between the NetBSD and FreeBSDn_hibma2000-07-171-6/+6
| | | | versions.
* Sync with NetBSD:n_hibma2000-05-141-7/+70
| | | | | | Add USB_SET_REPORT ioctl. Add FIOASYNC, TIOCSPGRP ioctl. Change some debugging output
* Change Lennart's e-mail address.n_hibma2000-05-141-1/+1
|
* OpenBSD has a broken debugger that does not grok static. Use an_hibma2000-04-031-5/+5
| | | | | | #define Static static that the OpenBSD folks can define it to be empty if they like.
OpenPOWER on IntegriCloud