OpenGrok
Cross Reference: btattach.c
xref
: /
src
/
usr.sbin
/
btattach
/
btattach.c
Home
|
History
|
Annotate
|
Download
|
only in
btattach
History log of
/src/usr.sbin/btattach/btattach.c
Revision
Date
Author
Comments
1.16
07-Feb-2023
mlelstv
- Reconfigure port speed only when initial speed was different.
- Time out HCI commands instead of hanging forever.
- When bcm43xx reset fails, assume that firmware is already
running and start line discipline.
This allows to re-attach bcm43xx without reboot.
1.15
11-Aug-2017
jmcneill
Make the "bcm43xx" type use H4 transport and add a new "bcm43xx-3wire"
type for use with H5 transport. The naming of the types here matches
those used in a series of BlueZ patches from the Raspberry Pi foundation.
1.14
10-Aug-2017
nat
Add support for bcm 43xx devices using the btuart h5 protocol.
Currently It will only load 1 firmware image for rpi3.
To use change to the directory containing the firmware BCM4340A1.hcd.
Then issue: btattach -FPi 115200 bcm43xx /dev/ttydevice 921600.
Then you can use the bluetooth device btfive0.
This enables the embedded bluetooth controller on rpi3.
1.13
16-Jun-2015
christos
improve error messages (remove \n, use __func__, etc)
1.12
27-Aug-2011
joerg
Mark types as static and usage as dead.
1.11
09-Mar-2010
kiyohara
Remove white-spaces.
1.10
08-Mar-2010
plunky
use %zd for ssize_t argument
1.9
08-Mar-2010
plunky
fix compilation errors
1.8
08-Mar-2010
kiyohara
Add option 'test mode'(-t).
Can test your Bluetooth module via com-port.
This mode guess speed for bcsp(4) or btuart(4), if not respond.
1.7
08-Mar-2010
kiyohara
Add options 'no parity'(-P) and 'disable flow control'(-F).
Also default enable parity for bcsp.
1.6
17-Feb-2010
plunky
sort entries in structure
clarify init name type for CSR modules
1.5
06-Dec-2009
kiyohara
Support Infineon UniStone (PBA31308).
from Gumstix's bluez-utils-hciattach-pba31308.patch.
tested on Gumstix verdex-pro.
1.4
06-Dec-2009
kiyohara
Fix some bugs.
1. Remove O_NDELAY. Please block it. Or read() returns EAGAIN.
2. We want data size. header already read.
3. Call errx(). errno(2) unspecified at now.
1.3
15-Apr-2009
lukem
Fix -Wsign-compare issues.
(Use %u not %d for unsigned ints.)
1.2
21-Jul-2008
lukem
branches: 1.2.6;
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
1.1
15-Apr-2008
plunky
branches: 1.1.4;
some changes to serial bluetooth host controller interfaces
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
1.1.4.1
18-Sep-2008
wrstuden
Sync with wrstuden-revivesa-base-2.
1.2.6.1
13-May-2009
jym
Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Indexes created Tue Oct 14 21:09:58 GMT 2025