3 * BlueZ - Bluetooth protocol stack for Linux
5 * Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com>
6 * Copyright (C) 2002-2010 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 /* RFCOMM socket address */
41 sa_family_t rc_family;
46 /* RFCOMM socket options */
47 #define RFCOMM_CONNINFO 0x02
48 struct rfcomm_conninfo {
53 #define RFCOMM_LM 0x03
54 #define RFCOMM_LM_MASTER 0x0001
55 #define RFCOMM_LM_AUTH 0x0002
56 #define RFCOMM_LM_ENCRYPT 0x0004
57 #define RFCOMM_LM_TRUSTED 0x0008
58 #define RFCOMM_LM_RELIABLE 0x0010
59 #define RFCOMM_LM_SECURE 0x0020
61 /* RFCOMM TTY support */
62 #define RFCOMM_MAX_DEV 256
64 #define RFCOMMCREATEDEV _IOW('R', 200, int)
65 #define RFCOMMRELEASEDEV _IOW('R', 201, int)
66 #define RFCOMMGETDEVLIST _IOR('R', 210, int)
67 #define RFCOMMGETDEVINFO _IOR('R', 211, int)
69 struct rfcomm_dev_req {
76 #define RFCOMM_REUSE_DLC 0
77 #define RFCOMM_RELEASE_ONHUP 1
78 #define RFCOMM_HANGUP_NOW 2
79 #define RFCOMM_TTY_ATTACHED 3
81 struct rfcomm_dev_info {
90 struct rfcomm_dev_list_req {
92 struct rfcomm_dev_info dev_info[0];
99 #endif /* __RFCOMM_H */