target_if_dfs.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
  3. *
  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. * @dfs_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. return &psoc->soc_cb.rx_ops.dfs_rx_ops;
  42. }