Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) 2018 Redpine Signals Inc.
0003  *
0004  * Permission to use, copy, modify, and/or distribute this software for any
0005  * purpose with or without fee is hereby granted, provided that the above
0006  * copyright notice and this permission notice appear in all copies.
0007  *
0008  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
0009  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
0010  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
0011  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0012  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
0013  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
0014  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0015  */
0016 
0017 #ifndef __RSI_COEX_H__
0018 #define __RSI_COEX_H__
0019 
0020 #include "rsi_common.h"
0021 
0022 #ifdef CONFIG_RSI_COEX
0023 #define COMMON_CARD_READY_IND           0
0024 #define NUM_COEX_TX_QUEUES              5
0025 
0026 struct rsi_coex_ctrl_block {
0027     struct rsi_common *priv;
0028     struct sk_buff_head coex_tx_qs[NUM_COEX_TX_QUEUES];
0029     struct rsi_thread coex_tx_thread;
0030 };
0031 
0032 int rsi_coex_attach(struct rsi_common *common);
0033 void rsi_coex_detach(struct rsi_common *common);
0034 int rsi_coex_send_pkt(void *priv, struct sk_buff *skb, u8 proto_type);
0035 int rsi_coex_recv_pkt(struct rsi_common *common, u8 *msg);
0036 #endif
0037 #endif