PageRenderTime 64ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/drivers/staging/ath6kl/include/common/gmboxif.h

https://bitbucket.org/wisechild/galaxy-nexus
C++ Header | 70 lines | 31 code | 14 blank | 25 comment | 0 complexity | 5721f81a17eb71d70f8a33c8c944d115 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
  1. //------------------------------------------------------------------------------
  2. // Copyright (c) 2009-2010 Atheros Corporation. All rights reserved.
  3. //
  4. //
  5. // Permission to use, copy, modify, and/or distribute this software for any
  6. // purpose with or without fee is hereby granted, provided that the above
  7. // copyright notice and this permission notice appear in all copies.
  8. //
  9. // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //------------------------------------------------------------------------------
  19. //==============================================================================
  20. // Author(s): ="Atheros"
  21. //==============================================================================
  22. #ifndef __GMBOXIF_H__
  23. #define __GMBOXIF_H__
  24. /* GMBOX interface definitions */
  25. #define AR6K_GMBOX_CREDIT_COUNTER 1 /* we use credit counter 1 to track credits */
  26. #define AR6K_GMBOX_CREDIT_SIZE_COUNTER 2 /* credit counter 2 is used to pass the size of each credit */
  27. /* HCI UART transport definitions when used over GMBOX interface */
  28. #define HCI_UART_COMMAND_PKT 0x01
  29. #define HCI_UART_ACL_PKT 0x02
  30. #define HCI_UART_SCO_PKT 0x03
  31. #define HCI_UART_EVENT_PKT 0x04
  32. /* definitions for BT HCI packets */
  33. typedef PREPACK struct {
  34. u16 Flags_ConnHandle;
  35. u16 Length;
  36. } POSTPACK BT_HCI_ACL_HEADER;
  37. typedef PREPACK struct {
  38. u16 Flags_ConnHandle;
  39. u8 Length;
  40. } POSTPACK BT_HCI_SCO_HEADER;
  41. typedef PREPACK struct {
  42. u16 OpCode;
  43. u8 ParamLength;
  44. } POSTPACK BT_HCI_COMMAND_HEADER;
  45. typedef PREPACK struct {
  46. u8 EventCode;
  47. u8 ParamLength;
  48. } POSTPACK BT_HCI_EVENT_HEADER;
  49. /* MBOX host interrupt signal assignments */
  50. #define MBOX_SIG_HCI_BRIDGE_MAX 8
  51. #define MBOX_SIG_HCI_BRIDGE_BT_ON 0
  52. #define MBOX_SIG_HCI_BRIDGE_BT_OFF 1
  53. #define MBOX_SIG_HCI_BRIDGE_BAUD_SET 2
  54. #define MBOX_SIG_HCI_BRIDGE_PWR_SAV_ON 3
  55. #define MBOX_SIG_HCI_BRIDGE_PWR_SAV_OFF 4
  56. #endif /* __GMBOXIF_H__ */