target_if_ftm.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright (c) 2018 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: declare the ftm service data structure and apis
  21. */
  22. #ifndef _TARGET_IF_FTM_H_
  23. #define _TARGET_IF_FTM_H_
  24. #include <qdf_types.h>
  25. #include <qdf_status.h>
  26. #include <wlan_objmgr_psoc_obj.h>
  27. /**
  28. * target_if_ftm_register_tx_ops() - register ftm tx ops
  29. * @tx_ops: tx ops pointer
  30. *
  31. * Register ftm tx ops
  32. *
  33. * Return: QDF_STATUS
  34. */
  35. QDF_STATUS target_if_ftm_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops);
  36. /**
  37. * target_if_ftm_attach() - Register FW event handler
  38. * @psoc: psoc pointer
  39. *
  40. * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
  41. */
  42. QDF_STATUS
  43. target_if_ftm_attach(struct wlan_objmgr_psoc *psoc);
  44. /**
  45. * target_if_ftm_detach() - De-Register FW event handler
  46. * @psoc: psoc pointer
  47. *
  48. * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
  49. */
  50. QDF_STATUS
  51. target_if_ftm_detach(struct wlan_objmgr_psoc *psoc);
  52. /**
  53. * target_if_ftm_cmd_send() - Send WMI command for FTM requests
  54. * @pdev: pdev pointer
  55. * @buf: data to be sent to FW
  56. * @len: length of the data
  57. * @pdev_id: pdev id
  58. *
  59. * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
  60. */
  61. QDF_STATUS
  62. target_if_ftm_cmd_send(struct wlan_objmgr_pdev *pdev,
  63. uint8_t *buf, uint32_t len, uint8_t pdev_id);
  64. #endif /* _TARGET_IF_FTM_H_ */