rsi_coex.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * Copyright (c) 2018 Redpine Signals Inc.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #ifndef __RSI_COEX_H__
  17. #define __RSI_COEX_H__
  18. #include "rsi_common.h"
  19. #ifdef CONFIG_RSI_COEX
  20. #define COMMON_CARD_READY_IND 0
  21. #define NUM_COEX_TX_QUEUES 5
  22. struct rsi_coex_ctrl_block {
  23. struct rsi_common *priv;
  24. struct sk_buff_head coex_tx_qs[NUM_COEX_TX_QUEUES];
  25. struct rsi_thread coex_tx_thread;
  26. };
  27. int rsi_coex_attach(struct rsi_common *common);
  28. void rsi_coex_detach(struct rsi_common *common);
  29. int rsi_coex_send_pkt(void *priv, struct sk_buff *skb, u8 proto_type);
  30. int rsi_coex_recv_pkt(struct rsi_common *common, u8 *msg);
  31. #endif
  32. #endif