hc
2024-03-25 edb30157bad0c0001c32b854271ace01d3b9a16a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/******************************************************************************
 *
 * Copyright(c) 2013 - 2017 Realtek Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 *****************************************************************************/
#ifdef CONFIG_BTC
 
#ifndef __RTW_BTC_H__
#define __RTW_BTC_H__
 
#include <drv_types.h>
 
#define GET_STATUS_CODE_FROM_BT_MP_OPER_RET(RetCode)                (RetCode & 0x0F)
#define CHECK_STATUS_CODE_FROM_BT_MP_OPER_RET(RetCode, StatusCode)    (GET_STATUS_CODE_FROM_BT_MP_OPER_RET(RetCode) == StatusCode)
 
void rtw_btc_disp_btc_info(_adapter *, void* p_msgprn_hdl, u8 info_type);
void rtw_btc_set_dbg(_adapter *, u32 *pDbgModule);
u32 rtw_btc_get_dbg(_adapter *, u8 *pStrBuf, u32 bufSize);
 
#if 0
u16 rtw_btc_btreg_read(_adapter *padapter, u8 type, u16 addr, u32 *data);
u16 rtw_btc_btreg_write(_adapter *padapter, u8 type, u16 addr, u16 val);
#endif
 
#endif /* __RTW_BTC_H__ */
#endif /* CONFIG_BTC */