target_if_dfs.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Copyright (c) 2017-2018, 2020 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: target_if_dfs.h
  21. * This file contains dfs target interface
  22. */
  23. /**
  24. * target_if_register_dfs_tx_ops() - register dfs tx ops
  25. * @tx_ops: tx ops pointer
  26. *
  27. * Register dfs tx ops
  28. *
  29. * Return: QDF_STATUS
  30. */
  31. QDF_STATUS target_if_register_dfs_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops);
  32. /**
  33. * target_if_dfs_get_rx_ops() - Get dfs_rx_ops
  34. * @psoc: psoc handle.
  35. *
  36. * Return: dfs_rx_ops.
  37. */
  38. static inline struct wlan_lmac_if_dfs_rx_ops *
  39. target_if_dfs_get_rx_ops(struct wlan_objmgr_psoc *psoc)
  40. {
  41. struct wlan_lmac_if_rx_ops *rx_ops;
  42. rx_ops = wlan_psoc_get_lmac_if_rxops(psoc);
  43. if (!rx_ops) {
  44. target_if_err("rx_ops is NULL");
  45. return NULL;
  46. }
  47. return &rx_ops->dfs_rx_ops;
  48. }