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.
This commit is contained in:
jmcneill 2017-08-11 11:54:08 +00:00
parent ac90edd392
commit 6ad4d0f8e5
2 changed files with 16 additions and 5 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: btattach.8,v 1.8 2014/03/18 18:20:46 riastradh Exp $
.\" $NetBSD: btattach.8,v 1.9 2017/08/11 11:54:08 jmcneill Exp $
.\"
.\" Copyright (c) 2007 KIYOHARA Takashi
.\" All rights reserved.
@ -24,7 +24,7 @@
.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd March 9, 2010
.Dd August 11, 2017
.Dt BTATTACH 8
.Os
.Sh NAME
@ -58,6 +58,10 @@ Supported types are:
.Bl -tag -compact -width ericssonxx -offset indent
.It Cm bcm2035
Broadcom BCM2035
.It Cm bcm43xx
Broadcom BCM43xx
.It Cm bcm43xx-3wire
Broadcom BCM43xx (3-wire)
.It Cm bcsp
Generic BCSP (BlueCore Serial Protocol)
.It Cm bgb2xx

View File

@ -1,4 +1,4 @@
/* $NetBSD: btattach.c,v 1.14 2017/08/10 13:34:29 nat Exp $ */
/* $NetBSD: btattach.c,v 1.15 2017/08/11 11:54:08 jmcneill Exp $ */
/*-
* Copyright (c) 2008 Iain Hibbert
@ -27,7 +27,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2008 Iain Hibbert. All rights reserved.");
__RCSID("$NetBSD: btattach.c,v 1.14 2017/08/10 13:34:29 nat Exp $");
__RCSID("$NetBSD: btattach.c,v 1.15 2017/08/11 11:54:08 jmcneill Exp $");
#include <sys/ioctl.h>
#include <sys/param.h>
@ -63,11 +63,18 @@ static const struct devtype types[] = {
},
{
.name = "bcm43xx",
.line = "bth5",
.line = "btuart",
.descr = "Broadcom BCM43xx",
.init = &init_bcm43xx,
.speed = B115200,
},
{
.name = "bcm43xx-3wire",
.line = "bth5",
.descr = "Broadcom BCM43xx (3-wire)",
.init = &init_bcm43xx,
.speed = B115200,
},
{
.name = "bcsp",
.line = "bcsp",