GNU Linux-libre 4.14.265-gnu1
[releases.git] / drivers / staging / rtl8723bs / include / sdio_ops.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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 #ifndef __SDIO_OPS_H__
16 #define __SDIO_OPS_H__
17
18
19 #include <sdio_ops_linux.h>
20
21 extern void sdio_set_intf_ops(struct adapter *padapter, struct _io_ops *pops);
22
23 /* extern void sdio_func1cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem); */
24 /* extern void sdio_func1cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem); */
25 extern u8 SdioLocalCmd52Read1Byte(struct adapter *padapter, u32 addr);
26 extern void SdioLocalCmd52Write1Byte(struct adapter *padapter, u32 addr, u8 v);
27 extern s32 sdio_local_read(struct adapter *padapter, u32 addr, u32 cnt, u8 *pbuf);
28 extern s32 sdio_local_write(struct adapter *padapter, u32 addr, u32 cnt, u8 *pbuf);
29
30 u32 _sdio_read32(struct adapter *padapter, u32 addr);
31 s32 _sdio_write32(struct adapter *padapter, u32 addr, u32 val);
32
33 extern void sd_int_hdl(struct adapter *padapter);
34 extern u8 CheckIPSStatus(struct adapter *padapter);
35
36 #if defined(CONFIG_WOWLAN) || defined(CONFIG_AP_WOWLAN)
37 extern u8 RecvOnePkt(struct adapter *padapter, u32 size);
38 #endif /*  CONFIG_WOWLAN */
39 extern void InitInterrupt8723BSdio(struct adapter *padapter);
40 extern void InitSysInterrupt8723BSdio(struct adapter *padapter);
41 extern void EnableInterrupt8723BSdio(struct adapter *padapter);
42 extern void DisableInterrupt8723BSdio(struct adapter *padapter);
43 extern u8 HalQueryTxBufferStatus8723BSdio(struct adapter *padapter);
44 extern u8 HalQueryTxOQTBufferStatus8723BSdio(struct adapter *padapter);
45 #if defined(CONFIG_WOWLAN) || defined(CONFIG_AP_WOWLAN)
46 extern void ClearInterrupt8723BSdio(struct adapter *padapter);
47 #endif /* CONFIG_WOWLAN */
48
49 #endif /*  !__SDIO_OPS_H__ */