hciattach.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2003-2010 Marcel Holtmann <marcel@holtmann.org>
  7. *
  8. *
  9. */
  10. #include <termios.h>
  11. #ifndef N_HCI
  12. #define N_HCI 15
  13. #endif
  14. #define HCIUARTSETPROTO _IOW('U', 200, int)
  15. #define HCIUARTGETPROTO _IOR('U', 201, int)
  16. #define HCIUARTGETDEVICE _IOR('U', 202, int)
  17. #define HCIUARTSETFLAGS _IOW('U', 203, int)
  18. #define HCIUARTGETFLAGS _IOR('U', 204, int)
  19. #define HCI_UART_H4 0
  20. #define HCI_UART_BCSP 1
  21. #define HCI_UART_3WIRE 2
  22. #define HCI_UART_H4DS 3
  23. #define HCI_UART_LL 4
  24. #define HCI_UART_ATH3K 5
  25. #define HCI_UART_INTEL 6
  26. #define HCI_UART_BCM 7
  27. #define HCI_UART_QCA 8
  28. #define HCI_UART_AG6XX 9
  29. #define HCI_UART_NOKIA 10
  30. #define HCI_UART_MRVL 11
  31. #define HCI_UART_RAW_DEVICE 0
  32. #define HCI_UART_RESET_ON_INIT 1
  33. #define HCI_UART_CREATE_AMP 2
  34. #define HCI_UART_INIT_PENDING 3
  35. #define HCI_UART_EXT_CONFIG 4
  36. #define HCI_UART_VND_DETECT 5
  37. int read_hci_event(int fd, unsigned char *buf, int size);
  38. int set_speed(int fd, struct termios *ti, int speed);
  39. int uart_speed(int speed);
  40. int texas_init(int fd, int *speed, struct termios *ti);
  41. int texas_post(int fd, struct termios *ti);
  42. int texasalt_init(int fd, int speed, struct termios *ti);
  43. int stlc2500_init(int fd, bdaddr_t *bdaddr);
  44. int bgb2xx_init(int dd, bdaddr_t *bdaddr);
  45. int ath3k_init(int fd, int speed, int init_speed, char *bdaddr,
  46. struct termios *ti);
  47. int ath3k_post(int fd, int pm);
  48. int qualcomm_init(int fd, int speed, struct termios *ti, const char *bdaddr);
  49. int intel_init(int fd, int init_speed, int *speed, struct termios *ti);
  50. int bcm43xx_init(int fd, int def_speed, int speed, struct termios *ti,
  51. const char *bdaddr);