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