net: wireless: rockchip_wlan: add rtl8723cs support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723cs / include / sdio_ops_linux.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  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17  *
18  *
19  ******************************************************************************/
20 #ifndef __SDIO_OPS_LINUX_H__
21 #define __SDIO_OPS_LINUX_H__
22
23 #ifndef RTW_HALMAC
24 u8 sd_f0_read8(struct intf_hdl *pintfhdl, u32 addr, s32 *err);
25 void sd_f0_write8(struct intf_hdl *pintfhdl, u32 addr, u8 v, s32 *err);
26
27 s32 _sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata);
28 s32 _sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata);
29 s32 sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata);
30 s32 sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata);
31
32 u8 _sd_read8(struct intf_hdl *pintfhdl, u32 addr, s32 *err);
33 u8 sd_read8(struct intf_hdl *pintfhdl, u32 addr, s32 *err);
34 u16 sd_read16(struct intf_hdl *pintfhdl, u32 addr, s32 *err);
35 u32 _sd_read32(struct intf_hdl *pintfhdl, u32 addr, s32 *err);
36 u32 sd_read32(struct intf_hdl *pintfhdl, u32 addr, s32 *err);
37 void sd_write8(struct intf_hdl *pintfhdl, u32 addr, u8 v, s32 *err);
38 void sd_write16(struct intf_hdl *pintfhdl, u32 addr, u16 v, s32 *err);
39 void _sd_write32(struct intf_hdl *pintfhdl, u32 addr, u32 v, s32 *err);
40 void sd_write32(struct intf_hdl *pintfhdl, u32 addr, u32 v, s32 *err);
41 #endif /* RTW_HALMAC */
42
43 s32 _sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata);
44 s32 sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata);
45 s32 _sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata);
46 s32 sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata);
47
48 void rtw_sdio_set_irq_thd(struct dvobj_priv *dvobj, _thread_hdl_ thd_hdl);
49 int __must_check rtw_sdio_raw_read(struct dvobj_priv *d, int addr,
50                                 void *buf, size_t len, bool fixed);
51 int __must_check rtw_sdio_raw_write(struct dvobj_priv *d, int addr,
52                                 void *buf, size_t len, bool fixed);
53 #endif