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
17#ifndef __RSI_COEX_H__
18#define __RSI_COEX_H__
19
20#include "rsi_common.h"
21
22#ifdef CONFIG_RSI_COEX
23#define COMMON_CARD_READY_IND 0
24#define NUM_COEX_TX_QUEUES 5
25
26struct rsi_coex_ctrl_block {
27 struct rsi_common *priv;
28 struct sk_buff_head coex_tx_qs[NUM_COEX_TX_QUEUES];
29 struct rsi_thread coex_tx_thread;
30};
31
32int rsi_coex_attach(struct rsi_common *common);
33void rsi_coex_detach(struct rsi_common *common);
34int rsi_coex_send_pkt(void *priv, struct sk_buff *skb, u8 proto_type);
35int rsi_coex_recv_pkt(struct rsi_common *common, u8 *msg);
36#endif
37#endif
38

source code of linux/drivers/net/wireless/rsi/rsi_coex.h