target_if_cfr_8074v2.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. #ifndef _TARGET_IF_CFR_8072V2_H_
  19. #define _TARGET_IF_CFR_8072V2_H_
  20. #define STREAMFS_MAX_SUBBUF_8S 8500
  21. #define STREAMFS_NUM_SUBBUF_8S 255
  22. /* Values used for computing number of tones */
  23. #define TONES_IN_20MHZ 256
  24. #define TONES_IN_40MHZ 512
  25. #define TONES_IN_80MHZ 1024
  26. #define TONES_IN_160MHZ 2048 /* 160 MHz isn't supported yet */
  27. #define TONES_INVALID 0
  28. /**
  29. * cfr_8074v2_init_pdev() - Inits cfr pdev and registers necessary handlers.
  30. * @psoc: pointer to psoc object
  31. * @pdev: pointer to pdev object
  32. *
  33. * Return: Registration status for necessary handlers
  34. */
  35. QDF_STATUS cfr_8074v2_init_pdev(
  36. struct wlan_objmgr_psoc *psoc,
  37. struct wlan_objmgr_pdev *pdev);
  38. /**
  39. * cfr_8074v2_deinit_pdev() - De-inits corresponding pdev and handlers.
  40. * @psoc: pointer to psoc object
  41. * @pdev: pointer to pdev object
  42. *
  43. * Return: De-registration status for necessary handlers
  44. */
  45. QDF_STATUS cfr_8074v2_deinit_pdev(
  46. struct wlan_objmgr_psoc *psoc,
  47. struct wlan_objmgr_pdev *pdev);
  48. /**
  49. * target_if_register_to_dbr() - Register to Direct DMA handler
  50. * @pdev: pointer to pdev object
  51. *
  52. * Return: Status
  53. */
  54. QDF_STATUS
  55. target_if_register_to_dbr(struct wlan_objmgr_pdev *pdev);
  56. /**
  57. * target_if_register_tx_completion_event_handler()
  58. * register TX completion handler
  59. * @pdev: pointer to pdev object
  60. *
  61. * Return: Status
  62. */
  63. QDF_STATUS
  64. target_if_register_tx_completion_event_handler(struct wlan_objmgr_psoc *psoc);
  65. /**
  66. * target_if_unregister_tx_completion_event_handler
  67. * unregister TX completion handler
  68. * @pdev: pointer to pdev object
  69. *
  70. * Return: Status
  71. */
  72. QDF_STATUS
  73. target_if_unregister_tx_completion_event_handler(struct wlan_objmgr_psoc *psoc);
  74. #endif