xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/include/sdio_ops.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2019 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 #ifndef __SDIO_OPS_H__
16 #define __SDIO_OPS_H__
17 
18 
19 #ifdef PLATFORM_LINUX
20 #include <sdio_ops_linux.h>
21 #endif
22 
23 void dump_sdio_card_info(void *sel, struct dvobj_priv *dvobj);
24 
25 u32 rtw_sdio_init(struct dvobj_priv *dvobj);
26 void rtw_sdio_deinit(struct dvobj_priv *dvobj);
27 int rtw_sdio_alloc_irq(struct dvobj_priv *dvobj);
28 void rtw_sdio_free_irq(struct dvobj_priv *dvobj);
29 u8 rtw_sdio_get_num_of_func(struct dvobj_priv *dvobj);
30 
31 
32 /**
33  * rtw_sdio_get_block_size() - Get block size of SDIO transfer
34  * @d		struct dvobj_priv*
35  *
36  * The unit of return value is byte.
37  */
rtw_sdio_get_block_size(struct dvobj_priv * d)38 static inline u32 rtw_sdio_get_block_size(struct dvobj_priv *d)
39 {
40 	return dvobj_to_sdio(d)->block_transfer_len;
41 }
42 #endif /* !__SDIO_OPS_H__ */
43