Go to the documentation of this file.
29 #define RFCOMM_CONN_TIMEOUT (HZ * 30)
30 #define RFCOMM_DISC_TIMEOUT (HZ * 20)
31 #define RFCOMM_AUTH_TIMEOUT (HZ * 25)
32 #define RFCOMM_IDLE_TIMEOUT (HZ * 2)
34 #define RFCOMM_DEFAULT_MTU 127
35 #define RFCOMM_DEFAULT_CREDITS 7
37 #define RFCOMM_MAX_L2CAP_MTU 1013
38 #define RFCOMM_MAX_CREDITS 40
40 #define RFCOMM_SKB_HEAD_RESERVE 8
41 #define RFCOMM_SKB_TAIL_RESERVE 2
42 #define RFCOMM_SKB_RESERVE (RFCOMM_SKB_HEAD_RESERVE + RFCOMM_SKB_TAIL_RESERVE)
44 #define RFCOMM_SABM 0x2f
45 #define RFCOMM_DISC 0x43
46 #define RFCOMM_UA 0x63
47 #define RFCOMM_DM 0x0f
48 #define RFCOMM_UIH 0xef
50 #define RFCOMM_TEST 0x08
51 #define RFCOMM_FCON 0x28
52 #define RFCOMM_FCOFF 0x18
53 #define RFCOMM_MSC 0x38
54 #define RFCOMM_RPN 0x24
55 #define RFCOMM_RLS 0x14
56 #define RFCOMM_PN 0x20
57 #define RFCOMM_NSC 0x04
59 #define RFCOMM_V24_FC 0x02
60 #define RFCOMM_V24_RTC 0x04
61 #define RFCOMM_V24_RTR 0x08
62 #define RFCOMM_V24_IC 0x40
63 #define RFCOMM_V24_DV 0x80
65 #define RFCOMM_RPN_BR_2400 0x0
66 #define RFCOMM_RPN_BR_4800 0x1
67 #define RFCOMM_RPN_BR_7200 0x2
68 #define RFCOMM_RPN_BR_9600 0x3
69 #define RFCOMM_RPN_BR_19200 0x4
70 #define RFCOMM_RPN_BR_38400 0x5
71 #define RFCOMM_RPN_BR_57600 0x6
72 #define RFCOMM_RPN_BR_115200 0x7
73 #define RFCOMM_RPN_BR_230400 0x8
75 #define RFCOMM_RPN_DATA_5 0x0
76 #define RFCOMM_RPN_DATA_6 0x1
77 #define RFCOMM_RPN_DATA_7 0x2
78 #define RFCOMM_RPN_DATA_8 0x3
80 #define RFCOMM_RPN_STOP_1 0
81 #define RFCOMM_RPN_STOP_15 1
83 #define RFCOMM_RPN_PARITY_NONE 0x0
84 #define RFCOMM_RPN_PARITY_ODD 0x1
85 #define RFCOMM_RPN_PARITY_EVEN 0x3
86 #define RFCOMM_RPN_PARITY_MARK 0x5
87 #define RFCOMM_RPN_PARITY_SPACE 0x7
89 #define RFCOMM_RPN_FLOW_NONE 0x00
91 #define RFCOMM_RPN_XON_CHAR 0x11
92 #define RFCOMM_RPN_XOFF_CHAR 0x13
94 #define RFCOMM_RPN_PM_BITRATE 0x0001
95 #define RFCOMM_RPN_PM_DATA 0x0002
96 #define RFCOMM_RPN_PM_STOP 0x0004
97 #define RFCOMM_RPN_PM_PARITY 0x0008
98 #define RFCOMM_RPN_PM_PARITY_TYPE 0x0010
99 #define RFCOMM_RPN_PM_XON 0x0020
100 #define RFCOMM_RPN_PM_XOFF 0x0040
101 #define RFCOMM_RPN_PM_FLOW 0x3F00
103 #define RFCOMM_RPN_PM_ALL 0x3F7F
205 #define RFCOMM_RX_THROTTLED 0
206 #define RFCOMM_TX_THROTTLED 1
207 #define RFCOMM_TIMED_OUT 2
208 #define RFCOMM_MSC_PENDING 3
209 #define RFCOMM_SEC_PENDING 4
210 #define RFCOMM_AUTH_PENDING 5
211 #define RFCOMM_AUTH_ACCEPT 6
212 #define RFCOMM_AUTH_REJECT 7
213 #define RFCOMM_DEFER_SETUP 8
214 #define RFCOMM_ENC_DROP 9
217 #define RFCOMM_SCHED_WAKEUP 31
220 #define RFCOMM_MSCEX_TX 1
221 #define RFCOMM_MSCEX_RX 2
222 #define RFCOMM_MSCEX_OK (RFCOMM_MSCEX_TX + RFCOMM_MSCEX_RX)
225 #define RFCOMM_CFC_UNKNOWN -1
226 #define RFCOMM_CFC_DISABLED 0
227 #define RFCOMM_CFC_ENABLED RFCOMM_MAX_CREDITS
232 u8 parity,
u8 flow_ctrl_settings,
233 u8 xon_char,
u8 xoff_char,
u16 param_mask);
246 #define rfcomm_dlc_lock(d) spin_lock(&d->lock)
247 #define rfcomm_dlc_unlock(d) spin_unlock(&d->lock)
249 static inline void rfcomm_dlc_hold(
struct rfcomm_dlc *
d)
254 static inline void rfcomm_dlc_put(
struct rfcomm_dlc *
d)
263 static inline void rfcomm_dlc_throttle(
struct rfcomm_dlc *d)
269 static inline void rfcomm_dlc_unthrottle(
struct rfcomm_dlc *d)
291 #define RFCOMM_CONNINFO 0x02
297 #define RFCOMM_LM 0x03
298 #define RFCOMM_LM_MASTER 0x0001
299 #define RFCOMM_LM_AUTH 0x0002
300 #define RFCOMM_LM_ENCRYPT 0x0004
301 #define RFCOMM_LM_TRUSTED 0x0008
302 #define RFCOMM_LM_RELIABLE 0x0010
303 #define RFCOMM_LM_SECURE 0x0020
305 #define rfcomm_pi(sk) ((struct rfcomm_pinfo *) sk)
322 #define RFCOMM_MAX_DEV 256
324 #define RFCOMMCREATEDEV _IOW('R', 200, int)
325 #define RFCOMMRELEASEDEV _IOW('R', 201, int)
326 #define RFCOMMGETDEVLIST _IOR('R', 210, int)
327 #define RFCOMMGETDEVINFO _IOR('R', 211, int)
328 #define RFCOMMSTEALDLC _IOW('R', 220, int)
330 #define RFCOMM_REUSE_DLC 0
331 #define RFCOMM_RELEASE_ONHUP 1
332 #define RFCOMM_HANGUP_NOW 2
333 #define RFCOMM_TTY_ATTACHED 3
334 #define RFCOMM_TTY_RELEASED 4
360 #ifdef CONFIG_BT_RFCOMM_TTY