The NetBSD Project

CVS log for src/sys/dev/bluetooth/bthidev.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / bluetooth

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.24 / (download) - annotate - [select for diffs], Thu Dec 20 11:17:47 2012 UTC (4 months, 4 weeks ago) by plunky
Branch: MAIN
CVS Tags: yamt-pagecache-base8, tls-maxphys-nbase, tls-maxphys-base, khorben-n900, agc-symver-base, agc-symver, HEAD
Changes since 1.23: +11 -7 lines
Diff to previous 1.23 (colored)

increase some diagnostics

Revision 1.23 / (download) - annotate - [select for diffs], Thu Dec 20 11:13:53 2012 UTC (4 months, 4 weeks ago) by plunky
Branch: MAIN
Changes since 1.22: +4 -3 lines
Diff to previous 1.22 (colored)

when no link-mode is specified, explicitly set a mode of (int)0
otherwise l2cap_setmode() will fail during connection setup

for bthidev.c, this fixes a problem with Microsoft Wedge Touch
mouse (which may not be able to authenticate)

for btmagic.c, include this fix in case somebody tries that

related to PR/47286

Revision 1.22 / (download) - annotate - [select for diffs], Tue Apr 3 09:32:53 2012 UTC (13 months, 2 weeks ago) by plunky
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.21: +6 -2 lines
Diff to previous 1.21 (colored)


register/deregister pmf(9) NULL handlers for bthub(4) and
bluetooth devices which attach there, to fix PR/39006

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jan 11 17:27:45 2012 UTC (16 months, 1 week ago) by plunky
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.20: +163 -74 lines
Diff to previous 1.20 (colored)

offset processing of input reports to a kernel thread, to avoid
locking issues when a child device needs to call back into the
Bluetooth stack (eg when caps-lock is pressed, and wskbd wants
to change a LED)

(as discussed with Radoslaw Kujawa)

Revision 1.20 / (download) - annotate - [select for diffs], Sat Dec 31 01:16:09 2011 UTC (16 months, 2 weeks ago) by rkujawa
Branch: MAIN
Changes since 1.19: +3 -4 lines
Diff to previous 1.19 (colored)

Fix panic triggered by pressing the caps lock key:
http://c0ff33.net/drop/bt_caps_panic.jpg

OK'd mrg.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Apr 28 06:13:51 2010 UTC (3 years ago) by plunky
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.18: +11 -2 lines
Diff to previous 1.18 (colored)

allow for vendor-id and product-id properties, passing them
through to child devices

Revision 1.18 / (download) - annotate - [select for diffs], Fri Aug 21 10:01:25 2009 UTC (3 years, 9 months ago) by plunky
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.17: +26 -8 lines
Diff to previous 1.17 (colored)

I had a complaint that it was difficult to reconnect a device after
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.

Revision 1.17 / (download) - annotate - [select for diffs], Tue May 12 12:10:46 2009 UTC (4 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-base
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

struct cfdata * -> cfdata_t, no functional changes intended.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Aug 6 15:01:23 2008 UTC (4 years, 9 months ago) by plunky
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: netbsd-5, jym-xensuspend
Changes since 1.15: +21 -13 lines
Diff to previous 1.15 (colored)

Convert socket options code to use a sockopt structure
instead of laying everything into an mbuf.

approved by core

Revision 1.15 / (download) - annotate - [select for diffs], Thu Apr 24 11:38:36 2008 UTC (5 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa, haad-dm
Changes since 1.14: +13 -25 lines
Diff to previous 1.14 (colored)

Merge the socket locking patch:

- 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@.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 28 21:17:37 2008 UTC (5 years, 1 month ago) by plunky
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.13: +2 -3 lines
Diff to previous 1.13 (colored)

Use deviter API to search for child devices.

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.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Nov 12 19:19:32 2007 UTC (5 years, 6 months ago) by plunky
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored)

improve visibility of [dis]connected messages

Revision 1.12 / (download) - annotate - [select for diffs], Sun Nov 11 12:59:04 2007 UTC (5 years, 6 months ago) by plunky
Branch: MAIN
Changes since 1.11: +21 -20 lines
Diff to previous 1.11 (colored)

convert device printf() usages to aprint_xxxx()

Revision 1.11 / (download) - annotate - [select for diffs], Sat Nov 3 18:24:01 2007 UTC (5 years, 6 months ago) by plunky
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.10: +5 -3 lines
Diff to previous 1.10 (colored)

'struct callout' => callout_t
don't use callout_reset()
do use callout_destroy()

Revision 1.10 / (download) - annotate - [select for diffs], Sat Nov 3 17:41:03 2007 UTC (5 years, 6 months ago) by plunky
Branch: MAIN
Changes since 1.9: +51 -59 lines
Diff to previous 1.9 (colored)

switch devices to using CFATTACH_DECL_NEW()
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

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jul 9 21:00:31 2007 UTC (5 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.8 / (download) - annotate - [select for diffs], Sat Apr 21 06:15:22 2007 UTC (6 years, 1 month ago) by plunky
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.7: +60 -2 lines
Diff to previous 1.7 (colored)

Add 'service level' security for L2CAP and RFCOMM connections, following
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)

Revision 1.7 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:48 2006 UTC (6 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, wrstuden-fixsa, vmlocking, netbsd-4, mjf-ufs-trans
Changes since 1.6: +12 -12 lines
Diff to previous 1.6 (colored)

__unused removal on arguments; approved by core.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Oct 12 01:30:55 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.5: +15 -11 lines
Diff to previous 1.5 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 4 19:23:59 2006 UTC (6 years, 7 months ago) by plunky
Branch: MAIN
Changes since 1.4: +7 -41 lines
Diff to previous 1.4 (colored)

Internally, use the service name as the identifier for matching

Revision 1.4 / (download) - annotate - [select for diffs], Tue Sep 12 18:18:01 2006 UTC (6 years, 8 months ago) by plunky
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9
Branch point for: yamt-splraiseipl
Changes since 1.3: +31 -12 lines
Diff to previous 1.3 (colored)

guard against a possible situation where the list of l2cap channels is changed
when the bluetooth code is not expecting it to be. During a disconnect, we can
detach the channel that is being disconnected, but its not really safe to detach
any others.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 10 15:45:56 2006 UTC (6 years, 8 months ago) by plunky
Branch: MAIN
Changes since 1.2: +78 -32 lines
Diff to previous 1.2 (colored)

update to bluetooth device attachment:

remove pseudo-device btdev(4) and inherent limitations

add bthub(4) which autoconfigures at bluetooth controllers as they
are enabled. bluetooth devices now attach here.

btdevctl(8) and its cache is updated to handle new semantics

etc/rc.d/btdevctl is updated to configure devices from a list
in /etc/bluetooth/btdevctl.conf

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 26 10:40:50 2006 UTC (6 years, 9 months ago) by tron
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base
Branch point for: rpaulo-netinet-merge-pcb, newlock2, abandoned-netbsd-4
Changes since 1.1: +93 -69 lines
Diff to previous 1.1 (colored)

Bluetooth fixes by Iain Hibbert:
- Update bthidev(4) to use property lists for configuration.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jun 19 15:44:45 2006 UTC (6 years, 11 months ago) by gdamore
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, chap-midi-nbase, chap-midi-base
Branch point for: yamt-pdpolicy, yamt-lazymbuf, gdamore-uart, chap-midi

Initial import of bluetooth stack on behalf of Iain Hibbert.  (plunky@,
NetBSD Foundation Membership still pending.)  This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>