summaryrefslogtreecommitdiffstats
path: root/sys/dev/bluetooth (follow)
Commit message (Collapse)AuthorAgeFilesLines
* "It's not the years, honey; it's the mileage."tedu2014-07-1110-3172/+0
| | | | | | bluetooth support doesn't work and isn't going anywhere. the current design is a dead end, and should not be the basis for any future support. general consensus says to whack it so as to not mislead the unwary.
* Fix bthub compilation by adding missing prototypes.pirofti2013-12-151-1/+4
| | | | Report and patch from Rafael Neves, thanks!
* Introduce a global interrupt-aware mutex protecting dataratchov2013-05-151-10/+8
| | | | | | | | | | | | | structures (including sound-card registers) from concurent access by syscall and interrupt code-paths. Since critical sections remain the same, calls to splraise/spllower can be safely replaced by calls to mtx_enter/mtx_leave with two exceptions: (1) mutexes are not reentrant (the inner splraise is thus removed), and (2) we're not allowed to sleep with a mutex (either msleep is used or the mutex is released before sleeping). ok and help from kettenis, a lot of work from armani
* M_WAITOK cleanup of two cases:mk2011-06-171-2/+3
| | | | | | | | | | | | | | | | 1) Allocating with M_WAITOK, checking for NULL, and calling panic() is pointless (malloc() will panic if it can't allocate) so remove the check and the call. 2) Allocating with M_WAITOK, checking for NULL, and then gracefully handling failure to allocate is pointless. Instead also pass M_CANFAIL so malloc() doesn't panic so we can actually handle it gracefully. 1) was done using Coccinelle. Input from oga. ok miod.
* Add TouchScreen support. Makes newer Gunze USB TouchScreen devices work.kettenis2011-03-041-2/+7
| | | | ok deraadt@
* - add a missing ioctl FWRITE checkjasper2010-08-291-1/+11
| | | | ok miod@
* Allow bthidev_output() to not grab the bt lock, to prevent lockmiod2010-08-053-11/+17
| | | | | | | recursion when trying to send commands from input callbacks. Makes the caps/num/scroll lock keys on btkbd correctly lit the leds instead of panic'ing. Noticed and fix tested by mlarkin@, "do whatever you want in bt" deraadt@
* Factorization of the bluetooth and usb hid input driver logic, to reduce codemiod2010-07-313-567/+57
| | | | | duplication and divergence. Thanks to mlarkin@ for bluetooth devices tests.
* add two new members to structs audio_encoding and audio_prinfo.jakemsr2010-07-151-2/+5
| | | | | | | | | | for both structs, the new members are 'bps' and 'msb', which describe the number of bytes per sample and data alignment in the sample, respectively. drivers must properly set these fields in the 'query_encoding', 'set_parameters' and 'get_default_params' hardware interface methods. discussed with ratchov, deraadt
* timeout_add -> timeout_add_msecblambert2010-07-021-5/+5
| | | | ok krw@
* User triggerable KASSERT()s and NULL dereferences in netbt setsockopt()s,guenther2009-11-211-5/+5
| | | | | | | found by Clement LECIGNE, localhost DoS everywhere. Also, don't leak the mbuf when the wrong level is used. ok claudio@, "just commit" deraadt@
* Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).grange2009-01-211-3/+3
| | | | | | No functional changes. ok krw@ miod@
* fixes to build; thanks ratchov@todd2008-11-251-5/+5
|
* fix: add output mixer classratchov2008-11-251-2/+10
|
* set parameters to native ones; don't setup emulation for nowratchov2008-11-251-21/+17
| | | | | to ease debugging ok uwe
* add BTDEV_NONEuwe2008-11-241-1/+2
|
* Import btsco(4) from NetBSD to work on ituwe2008-11-243-1/+1286
|
* Respond to incoming connections, not only after we initiated the first one.uwe2008-11-241-1/+2
| | | | | Someone must have fumbled with this line by accident while doing the original port of the driver.
* Sync bluetooth with NetBSDuwe2008-11-223-24/+78
|
* Second pass of simple timeout_add -> timeout_add_sec conversionsblambert2008-10-151-3/+3
| | | | | | | This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
* Sync Bluetooth HID drivers with NetBSD and adopt to our needs, as weuwe2008-02-246-94/+323
| | | | don't have problib
* - Add bthidev(4), from NetBSD.xsa2007-09-016-57/+904
| | | | | | | - Make btms(4) and btkbd(4) compile. - Removed remaining proplib NetBSD'sim Prodded a while ago by gwk@. Eyeballed by miod@.
* Missing $OpenBSD$ tag.xsa2007-07-271-0/+1
|
* Commiting for xsa@ who dosent want to for some reason. He has KNFed andgwk2007-07-275-0/+1104
| | | | | | | | de-proplibed some of the netbsd bluetooth drives for HID devices (mice and keyboards) they will however NOT BUILD YET as they lack the glue device bthidev and our replacement for the problib. no objections from uwe
* This shouldn't be needs-count -- especially because it breaks config.mk2007-07-231-2/+2
| | | | | | Revert it to needs-flag. Noticed by xsa.
* bthub needs-countmk2007-07-231-2/+2
|
* Some style/knf nits.mk2007-07-231-9/+7
| | | | Also, don't restrict to only opening dev minor 0.
* Add glue for a control device for bthub(4). Will be used to configuremk2007-07-232-4/+67
| | | | | | | | | device inquiry/discovery parameters, pairings, and what else might be needed. From discussion with gwk. MAKEDEV goo follows later. ok and lots of input from miod.
* Config file and machine-independent Bluetooth codeuwe2007-05-312-0/+69
ok gwk