tty.h 609 B

12345678910111213141516171819202122232425262728
  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. #include <stdint.h>
  11. struct tty_hdr {
  12. uint16_t data_len;
  13. uint16_t opcode;
  14. uint8_t flags;
  15. uint8_t hdr_len;
  16. uint8_t ext_hdr[0];
  17. } __attribute__ ((packed));
  18. #define TTY_EXTHDR_COMMAND_DROPS 1
  19. #define TTY_EXTHDR_EVENT_DROPS 2
  20. #define TTY_EXTHDR_ACL_TX_DROPS 3
  21. #define TTY_EXTHDR_ACL_RX_DROPS 4
  22. #define TTY_EXTHDR_SCO_TX_DROPS 5
  23. #define TTY_EXTHDR_SCO_RX_DROPS 6
  24. #define TTY_EXTHDR_OTHER_DROPS 7
  25. #define TTY_EXTHDR_TS32 8