summaryrefslogtreecommitdiff
path: root/sys/dev/bluetooth
AgeCommit message (Collapse)Author
2010-02-18Remove unnecessary line-feed.kiyohara
2009-08-21I had a complaint that it was difficult to reconnect a device afterplunky
system crashes and reboots and I wonder if the reason was that we were rejecting the connection for some reason. So, notify the console if that happens.
2009-05-12struct cfdata * -> cfdata_t, no functional changes intended.cegger
2009-05-07Introduce actions/requests to handle authorization for ppp(4), sl(4),elad
strip(4), btuart(4) and bcsp(4) network interfaces and devices. Mailing list reference: http://mail-index.netbsd.org/tech-kern/2009/04/27/msg004955.html
2009-04-26Authorizing actions from the generic scope using a device scope wrapperelad
is a big no-no. As painful as it is, use kauth_authorize_generic() for now.
2009-03-15ansify function definitionscegger
2009-01-11merge christos-time_tchristos
2008-09-09Redde Caesari quae sunt Caesaris. Or rather, in this particular case,cube
those that are Lennart's. Eventually there should only be one set of HID drivers.
2008-08-06Convert socket options code to use a sockopt structureplunky
instead of laying everything into an mbuf. approved by core
2008-06-23hold bt_lock when sending data via sco_send()plunky
2008-06-12use device_lookup_private to get softccegger
2008-06-10use new "defpseudodev" where appropriate, and remove dummy interfacedrochner
attribute definitions which were only to trick config(8)
2008-04-24Merge the socket locking patch:ad
- Socket layer becomes MP safe. - Unix protocols become MP safe. - Allows protocol processing interrupts to safely block on locks. - Fixes a number of race conditions. With much feedback from matt@ and plunky@.
2008-04-15some changes to serial bluetooth host controller interfacesplunky
btuartd(8) should be named btattach(8) for consistency with other parts of NetBSD make btattach(8) a single-use tool for less complexity device specicific initialisation (from btuart(4)) is carried out prior to activating the line discipline (in btattach(8)), which simplifies the API somewhat and means that the user tool and the kernel do not need to be kept in sync. btuart(4) driver is much reduced; naming is made consistent and all tsleep() and delay() are removed to userland
2008-03-28Use deviter API to search for child devices.plunky
As all identifying information is stored in the device properties, this removes the need for child devices to have a reserved area (struct btdev) in the softc, and bthub(4) does no longer need to have a softc at all.
2008-03-22remove unnecessary include fileplunky
2007-12-15__FUNCTION__ -> __func__perry
2007-12-03initialize loop variable as loop is not necessarily undertakenplunky
2007-12-02Print name of firmware on fail for firmware_open().kiyohara
2007-12-02Add support bgb2xx. (not test X-)kiyohara
Add configuration rate with ericsson. Change initialization at stlc2500. Obsolate BTUART_HCITYPE_BT2000C.
2007-11-28Clean up the way that bluetooth drivers attach to the bluetooth stack,plunky
to remove the frobbing that drivers must do in the hci_unit structure. - driver provides a static const interface descriptor - hci_unit is allocated by hci_attach() rather than part of softc - statistics are compiled by driver and provided on request - driver provides output methods and is responsible for output queue - stack provides input methods and is responsible for input queue - mutex is used to arbitrate device queue access
2007-11-28+ Use device_t.kiyohara
+ Increment rptr if send the ESCAPE char. + Use m_pkthdr.len for pktlen.
2007-11-12improve visibility of [dis]connected messagesplunky
2007-11-11convert device printf() usages to aprint_xxxx()plunky
2007-11-11bluetooth stack now keeps a device_t and passes it to device callbacks,plunky
update bcsp to new reality
2007-11-10use more device_t and device_xxx() accessorsplunky
make bluetooth stack keep device_t instead of softc pointer as device is not necessarily part of softc, and pass device_t to driver callbacks. hci_devname is no longer required.
2007-11-10Call ttyflush() with tty_lock held.ad
2007-11-07Merge from vmlocking:ad
- pool_cache changes. - Debugger/procfs locking fixes. - Other minor changes.
2007-11-03'struct callout' => callout_tplunky
don't use callout_reset() do use callout_destroy()
2007-11-03switch devices to using CFATTACH_DECL_NEW()plunky
softc no longer contains 'struct device' by default use 'device_t' instead of 'struct device *' use device_xxx() accessor functions remove casting of 'xxx_softc *' & 'struct device *' use aprint_xxx_dev() routines
2007-10-28remove unnecessary cast (shortens long line)plunky
2007-10-19machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.had
2007-10-14+ Add #ifdef DPRINTF{,N} before #undef.kiyohara
+ Initialize m_pkthdr.len, and increment if not escape charactor. + Call bcsp_start() if there is no transmitted packet. + Call m_adj() after debug print. + Reset the values of the Sequencing layer if link reset it.
2007-10-08Use the softint API.ad
2007-10-04Fix some bugs.kiyohara
* Cast to integer the 2nd args of m_adj(). * Move test/set flag BTF_XMIT to bcsp_start(). * The initialization of the array was clarified.
2007-10-02Use __packed rather than __attribute__ ((__packed__)).junyoung
2007-09-30Add bcsp(4). However, it is debuging state.kiyohara
2007-09-03No need to check the NULL, m_gethdr() calls always with M_WAIT.kiyohara
2007-08-15Remove BTUART_DEBUG.kiyohara
2007-07-23Remove printf for debugging.kiyohara
2007-07-09Merge some of the less invasive changes from the vmlocking branch:ad
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
2007-04-21Add 'service level' security for L2CAP and RFCOMM connections, followingplunky
the Linux (BlueZ) API. - L2CAP or RFCOMM connections can require the baseband radio link mode be any of: authenticated (devices are paired) encrypted (implies authentication) secured (encryption, plus generate new link key) - for sockets, the mode is set using setsockopt(2) and the socket connection will be aborted if the mode change fails. - mode settings will be applied during connection establishment, and for safety, we enter a wait state and will only proceed when the mode settings are successfuly set. - It is possible to change the mode on already open connections, but not possible to guarantee that data already queued (from either end) will not be delivered. (this is a feature, not a bug) - bthidev(4) and rfcomm_sppd(1) support "auth", "encrypt" and "secure" options - btdevctl(8) by default enables "auth" for HIDs, and "encrypt" for keyboards (which are required to support it)
2007-03-13remove extraneous whitespaceplunky
2007-03-12Not KAUTH_DEVICE_TTY_OPEN but KAUTH_GENERIC_ISSUSER is used.kiyohara
2007-03-06fix typoplunky
2007-03-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2007-02-20Install sys/dev/bluetooth/btuart.h.briggs
Descend into and build/install usr.sbin/btuartd. Install etc/rc.d/btuartd.
2007-02-20Supprot Bluetooth HCI UART (H4) driver and daemon.kiyohara
2006-11-16__unused removal on arguments; approved by core.christos
2006-11-12Tidy away wsmouse_input() abstractions and updateplunky
documentation to include the W direction.