device: Set disconnect timer to zero for fast disconnection
[platform/upstream/bluez.git] / monitor / tty.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 /*
3  *
4  *  BlueZ - Bluetooth protocol stack for Linux
5  *
6  *  Copyright (C) 2016  Intel Corporation
7  *
8  *
9  */
10
11 #include <stdint.h>
12
13 struct tty_hdr {
14         uint16_t data_len;
15         uint16_t opcode;
16         uint8_t  flags;
17         uint8_t  hdr_len;
18         uint8_t  ext_hdr[0];
19 } __attribute__ ((packed));
20
21 #define TTY_EXTHDR_COMMAND_DROPS  1
22 #define TTY_EXTHDR_EVENT_DROPS    2
23 #define TTY_EXTHDR_ACL_TX_DROPS   3
24 #define TTY_EXTHDR_ACL_RX_DROPS   4
25 #define TTY_EXTHDR_SCO_TX_DROPS   5
26 #define TTY_EXTHDR_SCO_RX_DROPS   6
27 #define TTY_EXTHDR_OTHER_DROPS    7
28 #define TTY_EXTHDR_TS32           8