summaryrefslogtreecommitdiff
path: root/monitor/tty.h
blob: 87b3fd53c15026bb2dda931bc0a334b6c4b66bdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 *
 *  BlueZ - Bluetooth protocol stack for Linux
 *
 *  Copyright (C) 2016  Intel Corporation
 *
 *
 */

#include <stdint.h>

struct tty_hdr {
	uint16_t data_len;
	uint16_t opcode;
	uint8_t  flags;
	uint8_t  hdr_len;
	uint8_t  ext_hdr[0];
} __attribute__ ((packed));

#define TTY_EXTHDR_COMMAND_DROPS  1
#define TTY_EXTHDR_EVENT_DROPS    2
#define TTY_EXTHDR_ACL_TX_DROPS   3
#define TTY_EXTHDR_ACL_RX_DROPS   4
#define TTY_EXTHDR_SCO_TX_DROPS   5
#define TTY_EXTHDR_SCO_RX_DROPS   6
#define TTY_EXTHDR_OTHER_DROPS    7
#define TTY_EXTHDR_TS32           8