summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/bluetooth/include')
-rw-r--r--sys/netgraph/bluetooth/include/ng_bluetooth.h2
-rw-r--r--sys/netgraph/bluetooth/include/ng_btsocket.h19
2 files changed, 21 insertions, 0 deletions
diff --git a/sys/netgraph/bluetooth/include/ng_bluetooth.h b/sys/netgraph/bluetooth/include/ng_bluetooth.h
index fbfbea7..2b85fac 100644
--- a/sys/netgraph/bluetooth/include/ng_bluetooth.h
+++ b/sys/netgraph/bluetooth/include/ng_bluetooth.h
@@ -52,6 +52,7 @@ SYSCTL_DECL(_net_bluetooth);
SYSCTL_DECL(_net_bluetooth_hci);
SYSCTL_DECL(_net_bluetooth_l2cap);
SYSCTL_DECL(_net_bluetooth_rfcomm);
+SYSCTL_DECL(_net_bluetooth_sco);
#endif /* SYSCTL_DECL */
/*
@@ -221,6 +222,7 @@ u_int32_t bluetooth_hci_connect_timeout (void);
u_int32_t bluetooth_hci_max_neighbor_age (void);
u_int32_t bluetooth_l2cap_rtx_timeout (void);
u_int32_t bluetooth_l2cap_ertx_timeout (void);
+u_int32_t bluetooth_sco_rtx_timeout (void);
#endif /* _NETGRAPH_BLUETOOTH_H_ */
diff --git a/sys/netgraph/bluetooth/include/ng_btsocket.h b/sys/netgraph/bluetooth/include/ng_btsocket.h
index 7dc309a..6c3ce8d 100644
--- a/sys/netgraph/bluetooth/include/ng_btsocket.h
+++ b/sys/netgraph/bluetooth/include/ng_btsocket.h
@@ -41,6 +41,7 @@
#define BLUETOOTH_PROTO_HCI 134 /* HCI protocol number */
#define BLUETOOTH_PROTO_L2CAP 135 /* L2CAP protocol number */
#define BLUETOOTH_PROTO_RFCOMM 136 /* RFCOMM protocol number */
+#define BLUETOOTH_PROTO_SCO 137 /* SCO protocol number */
/*
* Bluetooth version of struct sockaddr for raw HCI sockets
@@ -200,6 +201,23 @@ struct ng_btsocket_hci_raw_node_list_names {
/*
* XXX FIXME: probably does not belong here
+ * Bluetooth version of struct sockaddr for SCO sockets (SEQPACKET)
+ */
+
+struct sockaddr_sco {
+ u_char sco_len; /* total length */
+ u_char sco_family; /* address family */
+ bdaddr_t sco_bdaddr; /* address */
+};
+
+/* SCO socket options */
+#define SOL_SCO 0x0209 /* socket options level */
+
+#define SO_SCO_MTU 1 /* get sockets mtu */
+#define SO_SCO_CONNINFO 2 /* get HCI connection handle */
+
+/*
+ * XXX FIXME: probably does not belong here
* Bluetooth version of struct sockaddr for L2CAP sockets (RAW and SEQPACKET)
*/
@@ -328,6 +346,7 @@ struct ng_btsocket_rfcomm_fc_info {
#define NG_BTSOCKET_HCI_RAW_NODE_TYPE "btsock_hci_raw"
#define NG_BTSOCKET_L2CAP_RAW_NODE_TYPE "btsock_l2c_raw"
#define NG_BTSOCKET_L2CAP_NODE_TYPE "btsock_l2c"
+#define NG_BTSOCKET_SCO_NODE_TYPE "btsock_sco"
/*
* Debug levels
OpenPOWER on IntegriCloud