summaryrefslogtreecommitdiff
path: root/etc/bluetooth
diff options
context:
space:
mode:
authorgdamore <gdamore@NetBSD.org>2006-06-19 15:44:33 +0000
committergdamore <gdamore@NetBSD.org>2006-06-19 15:44:33 +0000
commita5c89047c05c5d03bdf7663f4585fb0bed64a924 (patch)
tree69f226b62ddfe2f9187d03b1f1f79cff67264727 /etc/bluetooth
parent052a8ad2ad25caabbef9124f0a7c9f0980e20beb (diff)
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.
Diffstat (limited to 'etc/bluetooth')
-rw-r--r--etc/bluetooth/Makefile7
-rw-r--r--etc/bluetooth/bluetooth.conf34
-rw-r--r--etc/bluetooth/hosts11
-rw-r--r--etc/bluetooth/protocols22
4 files changed, 74 insertions, 0 deletions
diff --git a/etc/bluetooth/Makefile b/etc/bluetooth/Makefile
new file mode 100644
index 00000000000..727bbd3a337
--- /dev/null
+++ b/etc/bluetooth/Makefile
@@ -0,0 +1,7 @@
+# $NetBSD: Makefile,v 1.1 2006/06/19 15:44:35 gdamore Exp $
+
+CONFIGFILES= bluetooth.conf hosts protocols
+FILESDIR= /etc/bluetooth
+
+.include <bsd.files.mk>
+.include <bsd.prog.mk>
diff --git a/etc/bluetooth/bluetooth.conf b/etc/bluetooth/bluetooth.conf
new file mode 100644
index 00000000000..9bd7c5a87a8
--- /dev/null
+++ b/etc/bluetooth/bluetooth.conf
@@ -0,0 +1,34 @@
+# $NetBSD: bluetooth.conf,v 1.1 2006/06/19 15:44:35 gdamore Exp $
+#
+# Bluetooth Remote Devices Configuration, see bluetooth.conf(5)
+#
+
+device {
+ bdaddr 00:07:a4:23:10:83;
+ name "Jabra Bluetooth Headset";
+ pin "0000";
+}
+
+# Example HID
+device {
+ bdaddr 00:50:f2:e5:68:84;
+ key 0xdeadbeef;
+ control_psm 0x0011;
+ interrupt_psm 0x0013;
+ reconnect_initiate false;
+ normally_connectable false;
+ hid_descriptor {
+ 0x05 0x01 0x09 0x02 0xa1 0x01 0x85 0x02
+ 0x09 0x01 0xa1 0x00 0x05 0x09 0x19 0x01
+ 0x29 0x05 0x15 0x00 0x25 0x01 0x75 0x01
+ 0x95 0x05 0x81 0x02 0x75 0x03 0x95 0x01
+ 0x81 0x01 0x05 0x01 0x09 0x30 0x09 0x31
+ 0x09 0x38 0x15 0x81 0x25 0x7f 0x75 0x08
+ 0x95 0x03 0x81 0x06 0xc0 0xc0 0x05 0x0c
+ 0x09 0x01 0xa1 0x01 0x85 0x03 0x05 0x01
+ 0x09 0x02 0xa1 0x02 0x06 0x00 0xff 0x15
+ 0x00 0x25 0x03 0x95 0x01 0x75 0x02 0x0a
+ 0x01 0xfe 0x81 0x02 0x75 0x06 0x81 0x01
+ 0xc0 0xc0
+ };
+}
diff --git a/etc/bluetooth/hosts b/etc/bluetooth/hosts
new file mode 100644
index 00000000000..b040ca08349
--- /dev/null
+++ b/etc/bluetooth/hosts
@@ -0,0 +1,11 @@
+# $NetBSD: hosts,v 1.1 2006/06/19 15:44:35 gdamore Exp $
+# $Id: hosts,v 1.1 2006/06/19 15:44:35 gdamore Exp $
+# $FreeBSD: /repoman/r/ncvs/src/etc/bluetooth/hosts,v 1.2 2005/11/10 19:09:22 emax Exp $
+#
+# Bluetooth Host Database
+#
+# This file should contain the Bluetooth addresses and aliases for hosts.
+#
+# BD_ADDR Name [ alias0 alias1 ... ]
+
+# 00:11:22:33:44:55 phone
diff --git a/etc/bluetooth/protocols b/etc/bluetooth/protocols
new file mode 100644
index 00000000000..90a03e52e00
--- /dev/null
+++ b/etc/bluetooth/protocols
@@ -0,0 +1,22 @@
+# $NetBSD: protocols,v 1.1 2006/06/19 15:44:35 gdamore Exp $
+# $Id: protocols,v 1.1 2006/06/19 15:44:35 gdamore Exp $
+# $FreeBSD: /repoman/r/ncvs/src/etc/bluetooth/protocols,v 1.2 2005/11/10 19:09:22 emax Exp $
+#
+# Bluetooth Protocol/Service Multiplexor (PSM) names and numbers
+#
+# See also
+# https://www.bluetooth.org/foundry/assignnumb/document/assigned_numbers
+#
+# Protocol PSM Alias Reference
+
+sdp 1 SDP # Service Discovery Protocol
+rfcomm 3 RFCOMM # RFCOMM with TS 07.10
+tcs-bin 5 TCS-BIN # Telephony Control Specification
+tcs-bin-cordless 7 TCS-BIN-CORDLESS # Telephony Control Specification
+bnep 15 BNEP # Bluetooth Network Encapsulation Protocol
+hid-control 17 HID-Control # Human Interface Device (control)
+hid-interrupt 19 HID-Interrupt # Human Interface Device (interrupt)
+upnp 21 UPnP # See ESDP, Bluetooth SIG
+avctp 23 AVCTP # Audio/Video Control Transport Protocol
+avdtp 25 AVDTP # Audio/Video Distribution Transport Protocol
+udi-c-plane 29 UDI-C-Plane # Unrestricted Digital Information Profile