162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * Copyright (c) 2018 Redpine Signals Inc.
362306a36Sopenharmony_ci *
462306a36Sopenharmony_ci * Permission to use, copy, modify, and/or distribute this software for any
562306a36Sopenharmony_ci * purpose with or without fee is hereby granted, provided that the above
662306a36Sopenharmony_ci * copyright notice and this permission notice appear in all copies.
762306a36Sopenharmony_ci *
862306a36Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
962306a36Sopenharmony_ci * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1062306a36Sopenharmony_ci * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1162306a36Sopenharmony_ci * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1262306a36Sopenharmony_ci * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1362306a36Sopenharmony_ci * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1462306a36Sopenharmony_ci * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1562306a36Sopenharmony_ci */
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#ifndef __RSI_COEX_H__
1862306a36Sopenharmony_ci#define __RSI_COEX_H__
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci#include "rsi_common.h"
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci#ifdef CONFIG_RSI_COEX
2362306a36Sopenharmony_ci#define COMMON_CARD_READY_IND           0
2462306a36Sopenharmony_ci#define NUM_COEX_TX_QUEUES              5
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_cistruct rsi_coex_ctrl_block {
2762306a36Sopenharmony_ci	struct rsi_common *priv;
2862306a36Sopenharmony_ci	struct sk_buff_head coex_tx_qs[NUM_COEX_TX_QUEUES];
2962306a36Sopenharmony_ci	struct rsi_thread coex_tx_thread;
3062306a36Sopenharmony_ci};
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ciint rsi_coex_attach(struct rsi_common *common);
3362306a36Sopenharmony_civoid rsi_coex_detach(struct rsi_common *common);
3462306a36Sopenharmony_ciint rsi_coex_send_pkt(void *priv, struct sk_buff *skb, u8 proto_type);
3562306a36Sopenharmony_ciint rsi_coex_recv_pkt(struct rsi_common *common, u8 *msg);
3662306a36Sopenharmony_ci#endif
3762306a36Sopenharmony_ci#endif
38