3 * BlueZ - Bluetooth protocol stack for Linux
5 * Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com>
6 * Copyright (C) 2002-2008 Marcel Holtmann <marcel@holtmann.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
32 #include <sys/socket.h>
35 #define RFCOMM_DEFAULT_MTU 127
39 #define RFCOMM_CONN_TIMEOUT (HZ * 30)
40 #define RFCOMM_DISC_TIMEOUT (HZ * 20)
42 /* RFCOMM socket address */
44 sa_family_t rc_family;
49 /* RFCOMM socket options */
50 #define RFCOMM_CONNINFO 0x02
51 struct rfcomm_conninfo {
56 #define RFCOMM_LM 0x03
57 #define RFCOMM_LM_MASTER 0x0001
58 #define RFCOMM_LM_AUTH 0x0002
59 #define RFCOMM_LM_ENCRYPT 0x0004
60 #define RFCOMM_LM_TRUSTED 0x0008
61 #define RFCOMM_LM_RELIABLE 0x0010
62 #define RFCOMM_LM_SECURE 0x0020
64 /* RFCOMM TTY support */
65 #define RFCOMM_MAX_DEV 256
67 #define RFCOMMCREATEDEV _IOW('R', 200, int)
68 #define RFCOMMRELEASEDEV _IOW('R', 201, int)
69 #define RFCOMMGETDEVLIST _IOR('R', 210, int)
70 #define RFCOMMGETDEVINFO _IOR('R', 211, int)
72 struct rfcomm_dev_req {
79 #define RFCOMM_REUSE_DLC 0
80 #define RFCOMM_RELEASE_ONHUP 1
81 #define RFCOMM_HANGUP_NOW 2
82 #define RFCOMM_TTY_ATTACHED 3
84 struct rfcomm_dev_info {
93 struct rfcomm_dev_list_req {
95 struct rfcomm_dev_info dev_info[0];
102 #endif /* __RFCOMM_H */