i2c: gpio: fault-injector: refactor incomplete transfer
[linux/fpc-iii.git] / drivers / net / wireless / rsi / rsi_coex.h
blob0fdc67f37a5624ec577fa16c48ffef57dd41a31e
1 /**
2 * Copyright (c) 2018 Redpine Signals Inc.
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.
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.
17 #ifndef __RSI_COEX_H__
18 #define __RSI_COEX_H__
20 #include "rsi_common.h"
22 #ifdef CONFIG_RSI_COEX
23 #define COMMON_CARD_READY_IND 0
24 #define NUM_COEX_TX_QUEUES 5
26 struct 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;
32 int rsi_coex_attach(struct rsi_common *common);
33 void rsi_coex_detach(struct rsi_common *common);
34 int rsi_coex_send_pkt(void *priv, struct sk_buff *skb, u8 proto_type);
35 int rsi_coex_recv_pkt(struct rsi_common *common, u8 *msg);
36 #endif
37 #endif